Re: [PATCH] bridge: Fix potential deadlock on br->multicast_lock

From: David Miller
Date: Mon Nov 14 2011 - 00:39:25 EST


From: Andrew Vagin <avagin@xxxxxxxxxx>
Date: Thu, 10 Nov 2011 18:48:03 +0300

> multicast_lock is taken in softirq context, so we should use
> spin_lock_bh() in userspace.
>
> call-chain in softirq context:
> run_timer_softirq()
> br_multicast_query_expired()
>
> call-chain in userspace:
> sysfs_write_file()
> store_multicast_snooping()
> br_multicast_toggle()
>
> Signed-off-by: Andrew Vagin <avagin@xxxxxxxxxx>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/