]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: track only QoS data frames for admission control
authorJohannes Berg <johannes.berg@intel.com>
Mon, 22 Nov 2021 11:47:40 +0000 (12:47 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Nov 2021 10:35:20 +0000 (11:35 +0100)
commitc30242257a4b02aa66e5b8c9d28aea8f908e819c
treeeb8cbea2692bad427ad6af964e7e938810a3c1ca
parent3c98b9589f0f16b4050cd84308e8ac5527f247bb
mac80211: track only QoS data frames for admission control

For admission control, obviously all of that only works for
QoS data frames, otherwise we cannot even access the QoS
field in the header.

Syzbot reported (see below) an uninitialized value here due
to a status of a non-QoS nullfunc packet, which isn't even
long enough to contain the QoS header.

Fix this to only do anything for QoS data packets.

Reported-by: syzbot+614e82b88a1a4973e534@syzkaller.appspotmail.com
Fixes: 67a357e38558 ("mac80211: add WMM admission control support")
Link: https://lore.kernel.org/r/20211122124737.dad29e65902a.Ieb04587afacb27c14e0de93ec1bfbefb238cc2a0@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c