syzbot


WARNING in wdev_chandef

Status: upstream: reported on 2022/06/25 13:22
Reported-by: syzbot+b4e9aa0f32ffd9902442@syzkaller.appspotmail.com
Fix commit: 206bbcf76121 wifi: nl80211: hold wdev mutex for tid config
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-gce-leak 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-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64 ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386]
First crash: 55d, last: 9d11h

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 24027 at net/wireless/chan.c:1436 wdev_chandef+0x164/0x1a0 net/wireless/chan.c:1436
Modules linked in:
CPU: 0 PID: 24027 Comm: syz-executor.5 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:wdev_chandef+0x164/0x1a0 net/wireless/chan.c:1436
Code: f8 48 8d bb b0 00 00 00 be ff ff ff ff e8 14 4e c5 00 31 ff 89 c5 89 c6 e8 e9 d9 c6 f8 85 ed 0f 85 f7 fe ff ff e8 0c dd c6 f8 <0f> 0b e9 eb fe ff ff 48 c7 c7 8c 2a bd 8d e8 c9 e1 12 f9 e9 c3 fe
RSP: 0018:ffffc900038ef2f0 EFLAGS: 00010216
RAX: 000000000000047e RBX: ffff888074600c90 RCX: ffffc9000cb82000
RDX: 0000000000040000 RSI: ffffffff88b3da04 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000004 R15: 0000000000000004
FS:  00007f40fe970700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d42b000 CR3: 00000000208d8000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 he_get_txmcsmap net/wireless/nl80211.c:4894 [inline]
 nl80211_parse_tx_bitrate_mask.isra.0+0x3e8/0x2460 net/wireless/nl80211.c:4994
 parse_tid_conf net/wireless/nl80211.c:15379 [inline]
 nl80211_set_tid_config+0x142c/0x1820 net/wireless/nl80211.c:15444
 genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:731
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
 genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:792
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2501
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:734
 ____sys_sendmsg+0x6eb/0x810 net/socket.c:2485
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2539
 __sys_sendmsg net/socket.c:2568 [inline]
 __do_sys_sendmsg net/socket.c:2577 [inline]
 __se_sys_sendmsg net/socket.c:2575 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2575
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f40fd889279
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f40fe970168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f40fd99bf80 RCX: 00007f40fd889279
RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000003
RBP: 00007f40fd8e3189 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc1bd1a82f R14: 00007f40fe970300 R15: 0000000000022000
 </TASK>

Crashes (12):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/08/06 14:47 linux-next cb71b93c2dc3 88e3a122 .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/07/26 16:09 linux-next cb71b93c2dc3 34795c51 .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/07/26 09:50 linux-next cb71b93c2dc3 34795c51 .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/07/24 05:59 linux-next cb71b93c2dc3 22343af4 .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/07/22 14:16 linux-next cb71b93c2dc3 22343af4 .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/07/21 00:00 linux-next cb71b93c2dc3 88cb1383 .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/07/20 03:29 linux-next cb71b93c2dc3 775344bc .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/07/12 17:28 linux-next cb71b93c2dc3 d91dd8ea .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/07/07 11:51 linux-next cb71b93c2dc3 bff65f44 .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/07/01 05:21 linux-next cb71b93c2dc3 1434eec0 .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/06/28 14:17 linux-next cb71b93c2dc3 ef82eb2c .config log report info WARNING in wdev_chandef
ci-upstream-linux-next-kasan-gce-root 2022/06/21 13:19 linux-next 34d1d36073ea 0fc5c330 .config log report info WARNING in wdev_chandef