mac80211: fix txq queue related crashes
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 21 Jan 2016 13:23:07 +0000 (14:23 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 03:07:09 +0000 (23:07 -0400)
commit17e8cd1e540985cd11cc6f007867fa1679b8f866
tree1657245dd96a3c18bb84aca5bcaace6245c9d4b2
parent193517ef5a16dedb1ba9bca6a9e490780cdf3f3a
mac80211: fix txq queue related crashes

[ Upstream commit 2a58d42c1e018ad514d4e23fd33fb2ded95d3ee6 ]

The driver can access the queue simultanously
while mac80211 tears down the interface. Without
spinlock protection this could lead to corrupting
sk_buff_head and subsequently to an invalid
pointer dereference.

Fixes: ba8c3d6f16a1 ("mac80211: add an intermediate software queue implementation")
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/mac80211/iface.c