syzbot


WARNING in _ieee80211_change_chanctx

Status: upstream: reported on 2024/04/29 09:29
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+bc0f5b92cc7091f45fb6@syzkaller.appspotmail.com
Fix commit: wifi: nl80211: disallow setting special AP channel widths
Patched on: [ci-upstream-bpf-next-kasan-gce ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci2-upstream-net-next-test-gce], missing on: [ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 58d, last: 11d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] wifi: nl80211: disallow setting special AP channel widths 1 (1) 2024/05/15 12:16
[syzbot] [wireless?] WARNING in _ieee80211_change_chanctx 0 (1) 2024/04/29 09:29

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3146 at net/mac80211/chan.c:501 _ieee80211_change_chanctx+0x363/0x11c0 net/mac80211/chan.c:501
Modules linked in:
CPU: 0 PID: 3146 Comm: syz-executor.2 Not tainted 6.9.0-rc5-syzkaller-00042-ge88c4cfcb7b8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:_ieee80211_change_chanctx+0x363/0x11c0 net/mac80211/chan.c:501
Code: 0f 8e 1a 0c 00 00 8b 7b 08 48 c7 c6 00 e3 4f 8c 49 89 fc e8 5f d5 33 f7 41 83 fc 05 76 0f 41 83 fc 0d 74 09 e8 0e da 33 f7 90 <0f> 0b 90 e8 05 da 33 f7 48 8b 74 24 10 ba 01 00 00 00 48 8b 3c 24
RSP: 0018:ffffc90003376e20 EFLAGS: 00010287
RAX: 0000000000001a65 RBX: ffffc90003376fd0 RCX: ffffc90004012000
RDX: 0000000000040000 RSI: ffffffff8a59e842 RDI: 0000000000000005
RBP: ffff88807b6f80b6 R08: 0000000000000005 R09: 000000000000000d
R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000006
R13: 0000000000000000 R14: ffff88805de532f8 R15: ffff88807b6f8000
FS:  00007f75cdf286c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d823000 CR3: 0000000040486000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000003
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ieee80211_change_chanctx net/mac80211/chan.c:547 [inline]
 ieee80211_recalc_chanctx_chantype+0x69c/0x870 net/mac80211/chan.c:773
 ieee80211_link_change_chanreq+0x7aa/0xd70 net/mac80211/chan.c:1920
 ieee80211_set_ap_chanwidth+0x181/0x320 net/mac80211/cfg.c:4343
 rdev_set_ap_chanwidth net/wireless/rdev-ops.h:1136 [inline]
 __nl80211_set_channel+0x4cb/0x990 net/wireless/nl80211.c:3418
 nl80211_set_wiphy+0xcc8/0x2d00 net/wireless/nl80211.c:3575
 genl_family_rcv_msg_doit+0x202/0x2f0 net/netlink/genetlink.c:1113
 genl_family_rcv_msg net/netlink/genetlink.c:1193 [inline]
 genl_rcv_msg+0x565/0x800 net/netlink/genetlink.c:1208
 netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2559
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1217
 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline]
 netlink_unicast+0x542/0x820 net/netlink/af_netlink.c:1361
 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1905
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 ____sys_sendmsg+0xab5/0xc90 net/socket.c:2584
 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2638
 __sys_sendmsg+0x117/0x1f0 net/socket.c:2667
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f75cd27dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f75cdf280c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f75cd3abf80 RCX: 00007f75cd27dea9
RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000004
RBP: 00007f75cd2ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f75cd3abf80 R15: 00007ffd05dbb2b8
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/25 09:25 upstream e88c4cfcb7b8 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in _ieee80211_change_chanctx
2024/06/11 04:50 net 36534d3c5453 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in _ieee80211_change_chanctx
2024/06/06 06:35 net f8f0de9d58d9 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in _ieee80211_change_chanctx
* Struck through repros no longer work on HEAD.