Re: [PATCH net] bridge: netlink: fix slave_changelink/br_setport race conditions

2015-07-26 Thread David Miller
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

Re: [PATCH net] bridge: netlink: fix slave_changelink/br_setport race conditions

2015-07-22 Thread Jiri Pirko
Wed, Jul 22, 2015 at 01:03:40PM CEST, ra...@blackwall.org wrote: >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 loc

[PATCH net] bridge: netlink: fix slave_changelink/br_setport race conditions

2015-07-22 Thread Nikolay Aleksandrov
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 i