syzbot


WARNING in ieee80211_link_info_change_notify

Status: upstream: reported C repro on 2022/06/26 17:07
Reported-by: syzbot+bce2ca140cc00578ed07@syzkaller.appspotmail.com
Fix commit: 591e73ee3f73 wifi: mac80211: properly skip link info driver update
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: 54d, last: now

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in drv_bss_info_changed (log)
Repro: C syz .config

Sample crash report:
------------[ cut here ]------------
wlan1: Failed check-sdata-in-driver check, flags: 0x4
WARNING: CPU: 1 PID: 3604 at net/mac80211/driver-ops.h:189 drv_link_info_changed net/mac80211/driver-ops.h:189 [inline]
WARNING: CPU: 1 PID: 3604 at net/mac80211/driver-ops.h:189 ieee80211_link_info_change_notify+0x635/0x730 net/mac80211/main.c:284
Modules linked in:
CPU: 1 PID: 3604 Comm: syz-executor354 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:drv_link_info_changed net/mac80211/driver-ops.h:189 [inline]
RIP: 0010:ieee80211_link_info_change_notify+0x635/0x730 net/mac80211/main.c:284
Code: ab e8 08 00 00 48 85 ed 0f 84 a3 00 00 00 e8 b2 4f bb f8 e8 ad 4f bb f8 8b 14 24 48 89 ee 48 c7 c7 40 b2 f3 8a e8 45 d5 74 00 <0f> 0b e9 35 fb ff ff e8 8f 4f bb f8 e8 ba c1 b9 00 31 ff 41 89 c6
RSP: 0018:ffffc9000307f520 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff88807f2f0c80 RCX: 0000000000000000
RDX: ffff88802059d7c0 RSI: ffffffff81610608 RDI: fffff5200060fe96
RBP: ffff88807f2f0000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000001 R12: 0000000002000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88807a188de0
FS:  0000555555ee3300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe6b6d3e98 CR3: 0000000020b29000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ieee80211_set_mcast_rate+0x39/0x40 net/mac80211/cfg.c:2716
 rdev_set_mcast_rate net/wireless/rdev-ops.h:1222 [inline]
 nl80211_set_mcast_rate+0x312/0x610 net/wireless/nl80211.c:11044
 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:0x7fc2e30d2269
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 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:00007ffe6b6d3eb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007fc2e30d2269
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000c00000000 R09: 0000000c00000000
R10: 0000000c00000000 R11: 0000000000000246 R12: 000000000000c7f9
R13: 00007ffe6b6d3f20 R14: 00007ffe6b6d3f10 R15: 00007ffe6b6d3edc
 </TASK>

Crashes (49):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/07/16 09:11 linux-next cb71b93c2dc3 95cb00d1 .config log report syz C WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/06/22 20:09 linux-next ac0ba5454ca8 0fc5c330 .config log report syz C WARNING in ieee80211_link_info_change_notify
ci-upstream-kasan-gce-smack-root 2022/08/14 17:19 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-kasan-gce 2022/08/14 09:22 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-kasan-gce 2022/08/13 18:47 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-qemu-upstream 2022/08/13 16:02 upstream 69dac8e431af 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-kasan-gce-smack-root 2022/08/13 06:13 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-kasan-gce 2022/08/13 03:49 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-qemu-upstream 2022/08/12 18:39 upstream c3adefb5baf3 402cd70d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-kasan-gce-root 2022/08/12 00:09 upstream 7ebfc85e2cd7 787ed7e0 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-kasan-gce-386 2022/08/15 23:44 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-qemu-upstream-386 2022/08/14 02:46 upstream f6eb0fed6a39 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-kasan-gce-386 2022/08/13 05:11 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-kasan-gce-386 2022/08/12 10:28 upstream 7ebfc85e2cd7 402cd70d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-net-this-kasan-gce 2022/08/13 15:59 net 777885673122 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-net-this-kasan-gce 2022/08/09 07:08 net b8c3bf0ed2ed da700653 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-net-kasan-gce 2022/08/16 01:31 net-next 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-net-kasan-gce 2022/08/14 00:27 net-next 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/08/14 21:35 linux-next 6c8f479764eb 8dfcaa3d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/08/10 23:44 linux-next 6c8f479764eb a6201f11 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/08/08 23:59 linux-next ca688bff68bc da700653 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/08/08 11:26 linux-next ca688bff68bc 88e3a122 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/08/06 14:59 linux-next cb71b93c2dc3 88e3a122 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/08/06 00:17 linux-next cb71b93c2dc3 e853abd9 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/08/02 19:51 linux-next cb71b93c2dc3 1c9013ac .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/29 15:50 linux-next cb71b93c2dc3 fef302b1 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/29 06:41 linux-next cb71b93c2dc3 fb95c74d .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/27 09:55 linux-next cb71b93c2dc3 da9d0366 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/23 01:03 linux-next cb71b93c2dc3 22343af4 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/22 01:10 linux-next cb71b93c2dc3 5e6028b9 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/21 00:47 linux-next cb71b93c2dc3 88cb1383 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/18 22:34 linux-next cb71b93c2dc3 ff988920 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/16 06:17 linux-next cb71b93c2dc3 95cb00d1 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/15 22:10 linux-next cb71b93c2dc3 95cb00d1 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/13 15:23 linux-next cb71b93c2dc3 5d921b08 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/10 22:57 linux-next cb71b93c2dc3 b5765a15 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/08 16:08 linux-next cb71b93c2dc3 b5765a15 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/08 08:34 linux-next cb71b93c2dc3 bff65f44 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/08 06:36 linux-next cb71b93c2dc3 bff65f44 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/07 05:39 linux-next cb71b93c2dc3 bff65f44 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/05 09:33 linux-next cb71b93c2dc3 bff65f44 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/07/03 07:52 linux-next cb71b93c2dc3 1434eec0 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/06/28 15:12 linux-next cb71b93c2dc3 ef82eb2c .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/06/28 12:02 linux-next aab35c3d5112 ef82eb2c .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/06/27 22:07 linux-next aab35c3d5112 ef82eb2c .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/06/25 03:15 linux-next 2f9cb3d3bd73 a371c43c .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/06/22 22:58 linux-next ac0ba5454ca8 912f5df7 .config log report info WARNING in ieee80211_link_info_change_notify
ci-upstream-linux-next-kasan-gce-root 2022/06/22 16:57 linux-next ac0ba5454ca8 0fc5c330 .config log report info WARNING in ieee80211_link_info_change_notify