* Re: [syzbot] [wireless?] WARNING in ieee80211_ocb_rx_no_sta (2)
@ 2025-12-16 3:11 Moon Hee Lee
2025-12-16 3:33 ` syzbot
0 siblings, 1 reply; 3+ messages in thread
From: Moon Hee Lee @ 2025-12-16 3:11 UTC (permalink / raw)
To: syzbot+b364457b2d1d4e4a3054, linux-kernel, syzkaller-bugs,
Johannes Berg, linux-wireless, netdev
[-- Attachment #1: Type: text/plain, Size: 10 bytes --]
#syz test
[-- Attachment #2: 0001-mac80211-ocb-skip-rx_no_sta-when-interface-is-not-jo.patch --]
[-- Type: application/octet-stream, Size: 1117 bytes --]
From 2422775a0cdc504028b1980d181968d282a69832 Mon Sep 17 00:00:00 2001
From: Moon Hee Lee <moonhee.lee.ca@gmail.com>
Date: Mon, 15 Dec 2025 15:37:50 -0800
Subject: [PATCH] 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
Signed-off-by: Moon Hee Lee <moonhee.lee.ca@gmail.com>
---
net/mac80211/ocb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/mac80211/ocb.c b/net/mac80211/ocb.c
index a5d4358f122a..ebb4f4d88c23 100644
--- a/net/mac80211/ocb.c
+++ b/net/mac80211/ocb.c
@@ -47,6 +47,9 @@ void ieee80211_ocb_rx_no_sta(struct ieee80211_sub_if_data *sdata,
struct sta_info *sta;
int band;
+ if (!ifocb->joined)
+ return;
+
/* XXX: Consider removing the least recently used entry and
* allow new one to be added.
*/
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [syzbot] [wireless?] WARNING in ieee80211_ocb_rx_no_sta (2)
2025-12-16 3:11 [syzbot] [wireless?] WARNING in ieee80211_ocb_rx_no_sta (2) Moon Hee Lee
@ 2025-12-16 3:33 ` syzbot
2025-12-16 3:59 ` [PATCH] mac80211: ocb: skip rx_no_sta when interface is not joined Moon Hee Lee
0 siblings, 1 reply; 3+ messages in thread
From: syzbot @ 2025-12-16 3:33 UTC (permalink / raw)
To: johannes, linux-kernel, linux-wireless, moonhee.lee.ca, netdev,
syzkaller-bugs
Hello,
syzbot has tested the proposed patch and the reproducer did not trigger any issue:
Reported-by: syzbot+b364457b2d1d4e4a3054@syzkaller.appspotmail.com
Tested-by: syzbot+b364457b2d1d4e4a3054@syzkaller.appspotmail.com
Tested on:
commit: 8f0b4cce Linux 6.19-rc1
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=112b29b4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=72e765d013fc99c
dashboard link: https://syzkaller.appspot.com/bug?extid=b364457b2d1d4e4a3054
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=108cad92580000
Note: testing is done by a robot and is best-effort only.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] mac80211: ocb: skip rx_no_sta when interface is not joined
2025-12-16 3:33 ` syzbot
@ 2025-12-16 3:59 ` Moon Hee Lee
0 siblings, 0 replies; 3+ messages in thread
From: Moon Hee Lee @ 2025-12-16 3:59 UTC (permalink / raw)
To: johannes
Cc: linux-wireless, linux-kernel, syzbot+b364457b2d1d4e4a3054,
netdev, syzkaller-bugs, Moon Hee Lee
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>
---
net/mac80211/ocb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/mac80211/ocb.c b/net/mac80211/ocb.c
index a5d4358f122a..ebb4f4d88c23 100644
--- a/net/mac80211/ocb.c
+++ b/net/mac80211/ocb.c
@@ -47,6 +47,9 @@ void ieee80211_ocb_rx_no_sta(struct ieee80211_sub_if_data *sdata,
struct sta_info *sta;
int band;
+ if (!ifocb->joined)
+ return;
+
/* XXX: Consider removing the least recently used entry and
* allow new one to be added.
*/
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-12-16 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-16 3:11 [syzbot] [wireless?] WARNING in ieee80211_ocb_rx_no_sta (2) Moon Hee Lee
2025-12-16 3:33 ` syzbot
2025-12-16 3:59 ` [PATCH] mac80211: ocb: skip rx_no_sta when interface is not joined Moon Hee Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®