[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHA+R7MFz10YGTR8hD=N0s9FBD5N=p+Qu3_F0GJO0Tv-4STu+A@mail.gmail.com>
Date: Tue, 2 Sep 2014 16:29:14 -0700
From: Cong Wang <cwang@...pensource.com>
To: Hannes Frederic Sowa <hannes@...essinduktion.org>
Cc: Cong Wang <xiyou.wangcong@...il.com>,
netdev <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>,
Sabrina Dubroca <sd@...asysnail.net>
Subject: Re: [Patch net] ipv6: fix rtnl lock assertion failure in ipv6_sock_ac_join()
On Tue, Sep 2, 2014 at 2:29 PM, Hannes Frederic Sowa
<hannes@...essinduktion.org> wrote:
> Hi Cong,
>
> On Di, 2014-09-02 at 11:07 -0700, Cong Wang wrote:
>> @@ -198,7 +198,7 @@ void ipv6_sock_ac_close(struct sock *sk)
>> spin_unlock_bh(&ipv6_sk_ac_lock);
>>
>> prev_index = 0;
>> - rcu_read_lock();
>> + rtnl_lock();
>> while (pac) {
>> struct ipv6_ac_socklist *next = pac->acl_next;
>>
>> @@ -211,7 +211,7 @@ void ipv6_sock_ac_close(struct sock *sk)
>> sock_kfree_s(sk, pac, sizeof(*pac));
>> pac = next;
>> }
>> - rcu_read_unlock();
>> + rtnl_unlock();
>> }
>>
>
> Nit:
> You forgot to convert a dev_get_by_index_rcu to __dev_get_by_index in
> ipv6_sock_ac_close.
>
Good catch! Will update this patch together with "Fixes:" tag.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists