From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] ipv6: addrconf: break critical section in addrconf_verify_rtnl() Date: Mon, 29 Jan 2018 14:24:31 -0500 (EST) Message-ID: <20180129.142431.368786370257576620.davem@davemloft.net> References: <20180123180127.GA1765@splinter> <1516732983.3715.6.camel@gmail.com> <1517011843.3715.68.camel@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: idosch@idosch.org, hkallweit1@gmail.com, netdev@vger.kernel.org To: eric.dumazet@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:48506 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751402AbeA2TYc (ORCPT ); Mon, 29 Jan 2018 14:24:32 -0500 In-Reply-To: <1517011843.3715.68.camel@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Fri, 26 Jan 2018 16:10:43 -0800 > From: Eric Dumazet > > Heiner reported a lockdep splat [1] > > This is caused by attempting GFP_KERNEL allocation while RCU lock is > held and BH blocked. > > We believe that addrconf_verify_rtnl() could run for a long period, > so instead of using GFP_ATOMIC here as Ido suggested, we should break > the critical section and restart it after the allocation. > > > [1] ... > Fixes: f3d9832e56c4 ("ipv6: addrconf: cleanup locking in ipv6_add_addr") > Signed-off-by: Eric Dumazet > Reported-by: Heiner Kallweit Applied and queued up for v4.15 -stable, thanks.