wifi: mac80211: disable softirqs for queued frame handling
authorJohannes Berg <johannes.berg@intel.com>
Wed, 26 Jun 2024 07:15:59 +0000 (09:15 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Jun 2024 08:23:50 +0000 (10:23 +0200)
commit321028bc45f01edb9e57b0ae5c11c5c3600d00ca
tree6091ad591e28bd3e89fe979e2aef40855e0c9167
parentd1cba2ea8121e7fdbe1328cea782876b1dd80993
wifi: mac80211: disable softirqs for queued frame handling

As noticed by syzbot, calling ieee80211_handle_queued_frames()
(and actually handling frames there) requires softirqs to be
disabled, since we call into the RX code. Fix that in the case
of cleaning up frames left over during shutdown.

Fixes: 177c6ae9725d ("wifi: mac80211: handle tasklet frames before stopping")
Reported-by: syzbot+1d516edf1e74469ba5d3@syzkaller.appspotmail.com
Link: https://patch.msgid.link/20240626091559.cd6f08105a6e.I74778610a5ff2cf8680964698131099d2960352a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c
net/mac80211/util.c