Re: [Patch net] ipv4: fix a deadlock in ip_ra_control

2017-04-17 Thread David Miller
From: Cong Wang Date: Wed, 12 Apr 2017 12:32:13 -0700 > Similar to commit 87e9f0315952 > ("ipv4: fix a potential deadlock in mcast getsockopt() path"), > there is a deadlock scenario for IP_ROUTER_ALERT too: > >CPU0CPU1 >

[Patch net] ipv4: fix a deadlock in ip_ra_control

2017-04-12 Thread Cong Wang
Similar to commit 87e9f0315952 ("ipv4: fix a potential deadlock in mcast getsockopt() path"), there is a deadlock scenario for IP_ROUTER_ALERT too: CPU0CPU1 lock(rtnl_mutex); lock(sk_lock-AF_INET);