Re: [Patch net] ipv6: fix a potential deadlock in do_ipv6_setsockopt()

2016-10-19 Thread Cong Wang
On Wed, Oct 19, 2016 at 4:38 PM, Eric Dumazet wrote: >> diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c >> index 46ad699..b8c8d20 100644 >> --- a/net/ipv6/af_inet6.c >> +++ b/net/ipv6/af_inet6.c >> @@ -414,7 +414,9 @@ int inet6_release(struct socket *sock) >>

Re: [Patch net] ipv6: fix a potential deadlock in do_ipv6_setsockopt()

2016-10-19 Thread Eric Dumazet
On Wed, 2016-10-19 at 11:20 -0700, Cong Wang wrote: > Baozeng reported this deadlock case: > >CPU0CPU1 > > lock([ 165.136033] sk_lock-AF_INET6); >lock([ 165.136033] rtnl_mutex); >

[Patch net] ipv6: fix a potential deadlock in do_ipv6_setsockopt()

2016-10-19 Thread Cong Wang
Baozeng reported this deadlock case: CPU0CPU1 lock([ 165.136033] sk_lock-AF_INET6); lock([ 165.136033] rtnl_mutex); lock([ 165.136033] sk_lock-AF_INET6); lock([