From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] bridge: netlink: fix slave_changelink/br_setport race conditions Date: Sun, 26 Jul 2015 16:28:27 -0700 (PDT) Message-ID: <20150726.162827.595252911514712549.davem@davemloft.net> References: <1437563020-23506-1-git-send-email-razor@blackwall.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, bridge@lists.linux-foundation.org, jiri@resnulli.us, nikolay@cumulusnetworks.com To: razor@blackwall.org Return-path: In-Reply-To: <1437563020-23506-1-git-send-email-razor@blackwall.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bridge-bounces@lists.linux-foundation.org Errors-To: bridge-bounces@lists.linux-foundation.org List-Id: netdev.vger.kernel.org From: Nikolay Aleksandrov Date: Wed, 22 Jul 2015 13:03:40 +0200 > From: Nikolay Aleksandrov > > Since slave_changelink support was added there have been a few race > conditions when using br_setport() since some of the port functions it > uses require the bridge lock. It is very easy to trigger a lockup due to > some internal spin_lock() usage without bh disabled, also it's possible to > get the bridge into an inconsistent state. > > Signed-off-by: Nikolay Aleksandrov > Fixes: 3ac636b8591c ("bridge: implement rtnl_link_ops->slave_changelink") Applied and queued up for -stable, thanks.