From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Ricardo Leitner Subject: Re: net: lockdep warning in ip_mc_msfget (net/ipv4/igmp.c:2400) Date: Tue, 3 Nov 2015 09:21:09 -0200 Message-ID: <563898A5.9050200@gmail.com> References: <56377FC9.90601@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: "netdev@vger.kernel.org" , "David S. Miller" , LKML , syzkaller@googlegroups.com, Dmitry Vyukov To: Cong Wang , Sasha Levin Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Em 02-11-2015 22:38, Cong Wang escreveu: > On Mon, Nov 2, 2015 at 1:31 PM, Cong Wang wrote: >> >> Good catch! >> >> This is probably introduced by: >> >> commit baf606d9c9b12517e47e0d1370e8aa9f7323f210 >> Author: Marcelo Ricardo Leitner >> Date: Wed Mar 18 14:50:42 2015 -0300 >> >> ipv4,ipv6: grab rtnl before locking the socket Yes, that commit introduced this inverse order situation by not fixing the get path of it. >> I am thinking what is the right way to fix it... > > Please try the attached patch. > > Thanks! Patch LGTM, same design and covered all rtnl_lock()s I could find on get path now. Thanks! Marcelo