]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix non RCU-safe sta_list manipulation
authorArik Nemtsov <arik@wizery.com>
Sun, 3 Jun 2012 20:32:32 +0000 (23:32 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Jun 2012 19:26:54 +0000 (15:26 -0400)
commit61a775408733f08221cb4d31196c5307f394071c
treeab62bbcb9bb3ea3009bcc15c445e9477da7128c5
parentc01db9df72c42fe3d648dbd0b5e717cc1d371d9f
mac80211: fix non RCU-safe sta_list manipulation

sta_info_cleanup locks the sta_list using rcu_read_lock however
the delete operation isn't rcu safe. A race between sta_info_cleanup
timer being called and a STA being removed can occur which leads
to a panic while traversing sta_list. Fix this by switching to the
RCU-safe versions.

Cc: stable@vger.kernel.org
Reported-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/sta_info.c