]> 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)
commit85a840867059c741ab806cf74d96dc89fd4aa619
treeeb8cbea2692bad427ad6af964e7e938810a3c1ca
parentf77bf854d55003064c4793c240df66228fc62384
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: cae169a206f3 ("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