* [syzbot] [wireless?] WARNING in ieee80211_ocb_rx_no_sta (2)
@ 2025-11-24 2:14 syzbot
0 siblings, 0 replies; 3+ messages in thread
From: syzbot @ 2025-11-24 2:14 UTC (permalink / raw)
To: johannes, linux-kernel, linux-wireless, netdev, syzkaller-bugs
Hello,
syzbot found the following issue on:
HEAD commit: 23cb64fb7625 Merge tag 'soc-fixes-6.18-3' of git://git.ker..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=179e0514580000
kernel config: https://syzkaller.appspot.com/x/.config?x=a1db0fea040c2a9f
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
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11de1742580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12ad1e0a580000
Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-23cb64fb.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f456267fe311/vmlinux-23cb64fb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/cbc9bf9bce21/bzImage-23cb64fb.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b364457b2d1d4e4a3054@syzkaller.appspotmail.com
------------[ cut here ]------------
WARNING: CPU: 0 PID: 15 at net/mac80211/ocb.c:63 ieee80211_ocb_rx_no_sta+0x511/0x5d0 net/mac80211/ocb.c:63
Modules linked in:
CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:ieee80211_ocb_rx_no_sta+0x511/0x5d0 net/mac80211/ocb.c:63
Code: 48 0a 00 00 48 c7 c7 40 88 8a 8c 48 89 de 4c 89 fa 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 85 25 4c f6 e8 00 a7 e4 f6 90 <0f> 0b 90 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 b9 00 00 00
RSP: 0018:ffffc9000041f470 EFLAGS: 00010246
RAX: ffffffff8adb6c60 RBX: ffff8880596e0d80 RCX: ffff88801ab1c900
RDX: 0000000000000100 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8adb6809
R10: 000000000000000c R11: 0000000000000100 R12: ffffffff8adb6809
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88804464b40a
FS: 0000000000000000(0000) GS:ffff88808d730000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561f9cf3b950 CR3: 000000004130f000 CR4: 0000000000352ef0
Call Trace:
<TASK>
ieee80211_accept_frame net/mac80211/rx.c:4432 [inline]
ieee80211_prepare_and_rx_handle+0x2555/0x6770 net/mac80211/rx.c:4994
__ieee80211_rx_handle_packet net/mac80211/rx.c:5304 [inline]
ieee80211_rx_list+0x2294/0x2c10 net/mac80211/rx.c:5451
ieee80211_rx_napi+0x1a8/0x3d0 net/mac80211/rx.c:5474
ieee80211_rx include/net/mac80211.h:5214 [inline]
ieee80211_handle_queued_frames+0xe8/0x1f0 net/mac80211/main.c:453
tasklet_action_common+0x36c/0x580 kernel/softirq.c:925
handle_softirqs+0x286/0x870 kernel/softirq.c:622
run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1063
smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:160
kthread+0x711/0x8a0 kernel/kthread.c:463
ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
</TASK>
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
^ 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 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 related [flat|nested] 3+ messages in thread
* 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, 0 replies; 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
end of thread, other threads:[~2025-12-16 3:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-24 2:14 [syzbot] [wireless?] WARNING in ieee80211_ocb_rx_no_sta (2) syzbot
-- strict thread matches above, loose matches on Subject: below --
2025-12-16 3:11 Moon Hee Lee
2025-12-16 3:33 ` syzbot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).