[v5.15] WARNING in ieee80211_start_next_roc

0 views
Skip to first unread message

syzbot

unread,
Mar 14, 2023, 6:47:50 AM3/14/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2ddbd0f967b3 Linux 5.15.102
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1380d90cc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=fec083380faceb1e
dashboard link: https://syzkaller.appspot.com/bug?extid=c2d6ba33d43f64f85b45
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/156d2aa91f3c/disk-2ddbd0f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f0e97f5be5fb/vmlinux-2ddbd0f9.xz
kernel image: https://storage.googleapis.com/syzbot-assets/20d0a55a041d/bzImage-2ddbd0f9.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+c2d6ba...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 1 PID: 5189 at net/mac80211/offchannel.c:401 ieee80211_start_next_roc+0x1a3/0x210
Modules linked in:
CPU: 1 PID: 5189 Comm: syz-executor.4 Not tainted 5.15.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:ieee80211_start_next_roc+0x1a3/0x210 net/mac80211/offchannel.c:401
Code: 23 33 c0 f7 4c 89 f7 48 89 de 48 89 c2 5b 41 5c 41 5e 41 5f e9 9e 71 0d 00 e8 89 c9 d1 f7 0f 0b e9 d6 fe ff ff e8 7d c9 d1 f7 <0f> 0b e9 1f ff ff ff 48 c7 c1 44 bb e3 8d 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc90004897268 EFLAGS: 00010283
RAX: ffffffff89aeb103 RBX: 0000000000000001 RCX: 0000000000040000
RDX: ffffc9000c836000 RSI: 0000000000001f07 RDI: 0000000000001f08
RBP: 0000000000000000 R08: ffffffff89aeb06a R09: ffffed100d6f5254
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88804f0b8da0 R14: ffff88804f0b8da0 R15: ffff888023b241a0
FS: 00007f6738795700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7c0bd6c000 CR3: 0000000079a84000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ieee80211_scan_cancel+0x146/0x690 net/mac80211/scan.c:1304
ieee80211_do_stop+0x15b/0x1ce0 net/mac80211/iface.c:384
ieee80211_runtime_change_iftype net/mac80211/iface.c:1701 [inline]
ieee80211_if_change_type+0x447/0x9f0 net/mac80211/iface.c:1739
ieee80211_change_iface+0x57/0x430 net/mac80211/cfg.c:160
rdev_change_virtual_intf net/wireless/rdev-ops.h:69 [inline]
cfg80211_change_iface+0x89e/0x1110 net/wireless/util.c:1074
nl80211_set_interface+0x5f8/0x890 net/wireless/nl80211.c:3945
genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline]
genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
genl_rcv_msg+0xfbd/0x14a0 net/netlink/genetlink.c:792
netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2533
genl_rcv+0x24/0x40 net/netlink/genetlink.c:803
netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1952
sock_sendmsg_nosec net/socket.c:704 [inline]
sock_sendmsg net/socket.c:724 [inline]
__sys_sendto+0x564/0x720 net/socket.c:2039
__do_sys_sendto net/socket.c:2051 [inline]
__se_sys_sendto net/socket.c:2047 [inline]
__x64_sys_sendto+0xda/0xf0 net/socket.c:2047
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f673a1d512c
Code: fa fa ff ff 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 20 fb ff ff 48 8b
RSP: 002b:00007f6738793f60 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f67387940d0 RCX: 00007f673a1d512c
RDX: 0000000000000024 RSI: 00007f6738794120 RDI: 0000000000000006
RBP: 0000000000000000 R08: 00007f6738793fb4 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f6738794120 R14: 0000000000000006 R15: 0000000000000000
</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 syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Mar 15, 2023, 7:49:49 PM3/15/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 2ddbd0f967b3 Linux 5.15.102
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=140feca4c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=fec083380faceb1e
dashboard link: https://syzkaller.appspot.com/bug?extid=c2d6ba33d43f64f85b45
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=134b2b1ac80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12d5de2ac80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/156d2aa91f3c/disk-2ddbd0f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f0e97f5be5fb/vmlinux-2ddbd0f9.xz
kernel image: https://storage.googleapis.com/syzbot-assets/20d0a55a041d/bzImage-2ddbd0f9.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+c2d6ba...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 1 PID: 3853 at net/mac80211/offchannel.c:401 ieee80211_start_next_roc+0x1a3/0x210
Modules linked in:
CPU: 1 PID: 3853 Comm: syz-executor268 Not tainted 5.15.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:ieee80211_start_next_roc+0x1a3/0x210 net/mac80211/offchannel.c:401
Code: 23 33 c0 f7 4c 89 f7 48 89 de 48 89 c2 5b 41 5c 41 5e 41 5f e9 9e 71 0d 00 e8 89 c9 d1 f7 0f 0b e9 d6 fe ff ff e8 7d c9 d1 f7 <0f> 0b e9 1f ff ff ff 48 c7 c1 44 bb e3 8d 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc900035aefc8 EFLAGS: 00010293
RAX: ffffffff89aeb103 RBX: 0000000000000001 RCX: ffff88807887d700
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff89aeb06a R09: ffffed1003a40a54
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88801d8c0da0 R14: ffff88801d8c0da0 R15: ffff88801e186120
FS: 00005555572df300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000200 CR3: 0000000078864000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ieee80211_scan_cancel+0x146/0x690 net/mac80211/scan.c:1304
ieee80211_do_stop+0x15b/0x1ce0 net/mac80211/iface.c:384
ieee80211_runtime_change_iftype net/mac80211/iface.c:1701 [inline]
ieee80211_if_change_type+0x447/0x9f0 net/mac80211/iface.c:1739
ieee80211_change_iface+0x57/0x430 net/mac80211/cfg.c:160
rdev_change_virtual_intf net/wireless/rdev-ops.h:69 [inline]
cfg80211_change_iface+0x89e/0x1110 net/wireless/util.c:1074
nl80211_set_interface+0x5f8/0x890 net/wireless/nl80211.c:3945
genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline]
genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
genl_rcv_msg+0xfbd/0x14a0 net/netlink/genetlink.c:792
netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2533
genl_rcv+0x24/0x40 net/netlink/genetlink.c:803
netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1952
sock_sendmsg_nosec net/socket.c:704 [inline]
sock_sendmsg net/socket.c:724 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
__sys_sendmsg net/socket.c:2495 [inline]
__do_sys_sendmsg net/socket.c:2504 [inline]
__se_sys_sendmsg+0x19a/0x260 net/socket.c:2502
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f7d76656059
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc8a8d0a88 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007f7d76656059
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000d598
R13: 00007ffc8a8d0a9c R14: 00007ffc8a8d0ab0 R15: 00007ffc8a8d0aa0
</TASK>

syzbot

unread,
Mar 16, 2023, 8:33:49 AM3/16/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6449a0ba6843 Linux 6.1.19
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14400b1ac80000
kernel config: https://syzkaller.appspot.com/x/.config?x=75eadb21ef1208e4
dashboard link: https://syzkaller.appspot.com/bug?extid=1389ba95c0bb5e9df1f6
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10bf4406c80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=139411e2c80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/dc227ecd3e21/disk-6449a0ba.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1d08e21b50c2/vmlinux-6449a0ba.xz
kernel image: https://storage.googleapis.com/syzbot-assets/71a43f2c4d2c/Image-6449a0ba.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1389ba...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 1 PID: 4311 at net/mac80211/offchannel.c:403 ieee80211_start_next_roc+0x1bc/0x204 net/mac80211/offchannel.c:403
Modules linked in:
CPU: 1 PID: 4311 Comm: syz-executor103 Not tainted 6.1.19-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ieee80211_start_next_roc+0x1bc/0x204 net/mac80211/offchannel.c:403
lr : ieee80211_start_next_roc+0x1bc/0x204 net/mac80211/offchannel.c:403
sp : ffff80001dba6f50
x29: ffff80001dba6f50 x28: 0000000000000001 x27: dfff800000000000
x26: ffff0000d9c03000 x25: ffff0000ce9eac70 x24: ffff0000ce9eab48
x23: ffff0000ce9a55a0 x22: ffff0000ca3cf000 x21: dfff800000000000
x20: 0000000000000001 x19: ffff0000ce9e8e00 x18: 1fffe000368b4376
x17: ffff80001572d000 x16: ffff800008503bb4 x15: 0000000000000000
x14: 1ffff00002ae60b0 x13: dfff800000000000 x12: 0000000000000001
x11: ff80800011aea7a4 x10: 0000000000000000 x9 : ffff800011aea7a4
x8 : ffff0000ccc89b40 x7 : ffff800011b0c124 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000123237f0
x2 : 0000000000000000 x1 : 0000000000000001 x0 : 0000000000000000
Call trace:
ieee80211_start_next_roc+0x1bc/0x204 net/mac80211/offchannel.c:403
__ieee80211_scan_completed+0x7d0/0xc28 net/mac80211/scan.c:509
ieee80211_scan_cancel+0xf0/0x894 net/mac80211/scan.c:1308
ieee80211_do_stop+0x148/0x197c net/mac80211/iface.c:461
ieee80211_runtime_change_iftype net/mac80211/iface.c:1905 [inline]
ieee80211_if_change_type+0x478/0xcf4 net/mac80211/iface.c:1943
ieee80211_change_iface+0x6c/0x418 net/mac80211/cfg.c:217
rdev_change_virtual_intf net/wireless/rdev-ops.h:74 [inline]
cfg80211_change_iface+0x928/0x1344 net/wireless/util.c:1084
nl80211_set_interface+0x3f8/0x6f0 net/wireless/nl80211.c:4169
genl_family_rcv_msg_doit net/netlink/genetlink.c:756 [inline]
genl_family_rcv_msg net/netlink/genetlink.c:833 [inline]
genl_rcv_msg+0x948/0xc2c net/netlink/genetlink.c:850
netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2550
genl_rcv+0x38/0x50 net/netlink/genetlink.c:861
netlink_unicast_kernel net/netlink/af_netlink.c:1328 [inline]
netlink_unicast+0x660/0x8d4 net/netlink/af_netlink.c:1354
netlink_sendmsg+0x834/0xb18 net/netlink/af_netlink.c:1931
sock_sendmsg_nosec net/socket.c:716 [inline]
sock_sendmsg net/socket.c:736 [inline]
__sys_sendto+0x3b4/0x504 net/socket.c:2117
__do_sys_sendto net/socket.c:2129 [inline]
__se_sys_sendto net/socket.c:2125 [inline]
__arm64_sys_sendto+0xd8/0xf8 net/socket.c:2125
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 2598
hardirqs last enabled at (2597): [<ffff800012332a3c>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last enabled at (2597): [<ffff800012332a3c>] _raw_spin_unlock_irqrestore+0x48/0xac kernel/locking/spinlock.c:194
hardirqs last disabled at (2598): [<ffff80001224fad4>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (2594): [<ffff800011a9ad4c>] spin_unlock_bh include/linux/spinlock.h:395 [inline]
softirqs last enabled at (2594): [<ffff800011a9ad4c>] ieee80211_configure_filter+0x7f0/0x181c net/mac80211/main.c:74
softirqs last disabled at (2592): [<ffff800011a9a958>] spin_lock_bh include/linux/spinlock.h:355 [inline]
softirqs last disabled at (2592): [<ffff800011a9a958>] ieee80211_configure_filter+0x3fc/0x181c net/mac80211/main.c:70
---[ end trace 0000000000000000 ]---


---
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 syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Nov 11, 2023, 10:50:04 AM11/11/23
to syzkaller...@googlegroups.com
syzbot suspects this issue could be fixed by backporting the following commit:

commit 97c19e42b264e6b71a9ff9deea04c19f621805b9
git tree: upstream
Author: Johannes Berg <johann...@intel.com>
Date: Mon Aug 28 11:59:42 2023 +0000

wifi: mac80211: move offchannel works to wiphy work

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=12be15e4e80000
kernel config: https://syzkaller.appspot.com/x/.config?x=f749f501f45a424b
dashboard link: https://syzkaller.appspot.com/bug?extid=1389ba95c0bb5e9df1f6
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=136ec844280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16527958280000


Please keep in mind that other backports might be required as well.

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
Jan 2, 2024, 12:18:06 PMJan 2
to syzkaller...@googlegroups.com
syzbot suspects this issue could be fixed by backporting the following commit:

commit 35027c790970c40a5093550af7c9f1c77de182b4
git tree: upstream
Author: Pedro Tammela <pcta...@mojatatu.com>
Date: Tue Oct 17 15:23:09 2023 +0000

selftests: tc-testing: move auxiliary scripts to a dedicated folder

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1560b431e80000
kernel config: https://syzkaller.appspot.com/x/.config?x=6f83fab0469f5de7
dashboard link: https://syzkaller.appspot.com/bug?extid=c2d6ba33d43f64f85b45
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=125e5f85c80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10d8ac95c80000
Reply all
Reply to author
Forward
0 new messages