]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mac80211: fix txq queue related crashes
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 21 Jan 2016 13:23:07 +0000 (14:23 +0100)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:22:01 +0000 (17:22 -0500)
commit40acbab577bcf279cc84ea5a8cc0f633a66470ec
tree70e93cd6b32b9b7807316bfb8480826fb998b7a2
parente363fc6b1436119d2e339c868bc7523adef28a6b
mac80211: fix txq queue related crashes

Orabug: 25308062

[ 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>
(cherry picked from commit 17e8cd1e540985cd11cc6f007867fa1679b8f866)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
net/mac80211/iface.c