From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 29 Dec 2013 16:53:30 -0800 From: Stephen Hemminger Message-ID: <20131229165330.14b1337f@nehalam.linuxnetplumber.net> In-Reply-To: <20131228223732.GA30591@cumulusnetworks.com> References: <20131228223732.GA30591@cumulusnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] [PATCH 1/1] bridge/br_multicast: use spin_lock_bh() in br_multicast_set_hash_max() List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Curt Brune Cc: bridge@lists.linux-foundation.org, Shrijeet Mukherjee On Sat, 28 Dec 2013 14:37:32 -0800 Curt Brune wrote: > br_multicast_set_hash_max() is called from process context in > net/bridge/br_sysfs_br.c by the sysfs store_hash_max() function. > > br_multicast_set_hash_max() calls spin_lock(&br->multicast_lock), > which can deadlock the CPU if a softirq that also tries to take the > same lock interrupts br_multicast_set_hash_max() while the lock is > held . This can happen quite easily when any of the bridge multicast > timers expire, which try to take the same lock. Running lockdep should catch these kind of things without having to do stress tests.