]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't leave skb->next/prev pointing to stack
authorJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2020 09:20:23 +0000 (10:20 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2020 13:42:19 +0000 (14:42 +0100)
commit7cf236d238c875f0ff8baee735a5b577360568c1
treebbd6bff3ae4f34f4d2bc7cc7785de8006bfbf5d0
parent3ccc687fbed10e13bdb0b344b0832c767a1abc69
mac80211: don't leave skb->next/prev pointing to stack

In beacon protection, don't leave skb->next/prev pointing to the
on-stack list, even if that's actually harmless since we don't use
them again afterwards.

While at it, check that the SKB on the list is still the same, as
that's required here. If not, the encryption (protection) code is
buggy.

Fixes: f384b87c2b68 ("mac80211: Beacon protection using the new BIGTK (AP)")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200320102021.1be7823fc05e.Ia89fb79a0469d32137c9a04315a1d2dfc7b7d6f5@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c