]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mac80211: ocb: skip rx_no_sta when interface is not joined
authorMoon Hee Lee <moonhee.lee.ca@gmail.com>
Tue, 16 Dec 2025 03:59:32 +0000 (19:59 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Dec 2025 09:33:14 +0000 (10:33 +0100)
commitff4071c60018a668249dc6a2df7d16330543540e
treed43cdf44e4b56a15b41fe5ac4e5700fbb9ee238c
parenta519be2f5d958c5804f2cfd68f1f384291271fab
wifi: mac80211: ocb: skip rx_no_sta when interface is not joined

ieee80211_ocb_rx_no_sta() assumes a valid channel context, which is only
present after JOIN_OCB.

RX may run before JOIN_OCB is executed, in which case the OCB interface
is not operational. Skip RX peer handling when the interface is not
joined to avoid warnings in the RX path.

Reported-by: syzbot+b364457b2d1d4e4a3054@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=b364457b2d1d4e4a3054
Tested-by: syzbot+b364457b2d1d4e4a3054@syzkaller.appspotmail.com
Signed-off-by: Moon Hee Lee <moonhee.lee.ca@gmail.com>
Link: https://patch.msgid.link/20251216035932.18332-1-moonhee.lee.ca@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ocb.c