Re: [PATCH net] bridge: fix br_stp_set_bridge_priority race conditions

2015-06-18 Thread David Miller
From: Nikolay Aleksandrov ra...@blackwall.org Date: Mon, 15 Jun 2015 20:28:51 +0300 After the -set() spinlocks were removed br_stp_set_bridge_priority was left running without any protection when used via sysfs. It can race with port add/del and could result in use-after-free cases and

[PATCH net] bridge: fix br_stp_set_bridge_priority race conditions

2015-06-15 Thread Nikolay Aleksandrov
After the -set() spinlocks were removed br_stp_set_bridge_priority was left running without any protection when used via sysfs. It can race with port add/del and could result in use-after-free cases and corrupted lists. Tested by running port add/del in a loop with stp enabled while setting