[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1476971226.7065.5.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Thu, 20 Oct 2016 06:47:06 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: netdev@...r.kernel.org, sploving1@...il.com,
Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
Subject: Re: [Patch net v2] ipv6: fix a potential deadlock in
do_ipv6_setsockopt()
On Wed, 2016-10-19 at 23:35 -0700, Cong Wang wrote:
> Baozeng reported this deadlock case:
...
> +
> +void ipv6_sock_mc_close(struct sock *sk)
> +{
> + struct ipv6_pinfo *np = inet6_sk(sk);
> +
> + if (!rcu_access_pointer(np->ipv6_mc_list))
> + return;
I wonder if rcu_dereference_protected(..., lockdep_sock_is_held(sk))
could be used instead, to get lockdep support ?
> + rtnl_lock();
> + __ipv6_sock_mc_close(sk);
> rtnl_unlock();
> }
>
Thanks !
Powered by blists - more mailing lists