syzbot


WARNING in wiphy_register (2)

Status: fixed on 2018/09/11 03:32
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+2a12f11c306afe871c1f@syzkaller.appspotmail.com
Fix commit: 484004339d45 mac80211_hwsim: require at least one channel
First crash: 2077d, last: 2071d
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 4.14 00/94] 4.14.75-stable review 102 (102) 2018/10/10 07:42
[PATCH 4.18 000/168] 4.18.13-stable review 180 (180) 2018/10/10 05:52
[PATCH AUTOSEL 4.14 01/36] mac80211: Run TXQ teardown code before de-registering interfaces 36 (36) 2018/09/24 14:49
[PATCH AUTOSEL 4.18 01/76] mac80211: Run TXQ teardown code before de-registering interfaces 75 (75) 2018/09/24 14:48
[PATCH] mac80211_hwsim: require at least one channel 1 (1) 2018/08/15 16:19
[PATCH] mac80211_hwsim: require at least one channel 1 (1) 2018/08/15 16:19
WARNING in wiphy_register (2) 1 (1) 2018/08/15 16:00
WARNING in wiphy_register (2) 0 (1) 2018/08/15 16:00
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in wiphy_register (3) wireless syz 31 1906d 1937d 11/26 fixed on 2019/03/06 07:43
upstream WARNING in wiphy_register (4) wireless syz error 3 1832d 1861d 12/26 fixed on 2019/05/27 12:48
upstream WARNING in wiphy_register wireless C 15 2285d 2287d 4/26 fixed on 2018/01/22 13:19

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
urandom_read: 2 callbacks suppressed
random: sshd: uninitialized urandom read (32 bytes read)
netlink: 'syz-executor219': attribute type 9 has an invalid length.
WARNING: CPU: 1 PID: 4398 at net/wireless/core.c:550 wiphy_verify_combinations net/wireless/core.c:550 [inline]
WARNING: CPU: 1 PID: 4398 at net/wireless/core.c:550 wiphy_register+0x12c1/0x2510 net/wireless/core.c:741
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 4398 Comm: syz-executor219 Not tainted 4.18.0-rc8+ #184
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
 panic+0x238/0x4e7 kernel/panic.c:184
 __warn.cold.8+0x163/0x1ba kernel/panic.c:536
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992
RIP: 0010:wiphy_verify_combinations net/wireless/core.c:550 [inline]
RIP: 0010:wiphy_register+0x12c1/0x2510 net/wireless/core.c:741
Code: 74 08 3c 01 0f 8e c5 10 00 00 66 45 89 67 30 e9 18 f9 ff ff e8 40 00 4c fb 0f 0b bb ea ff ff ff e9 f5 f3 ff ff e8 2f 00 4c fb <0f> 0b bb ea ff ff ff e9 e4 f3 ff ff e8 1e 00 4c fb 0f 0b bb ea ff 
RSP: 0018:ffff8801aecf6e60 EFLAGS: 00010293
RAX: ffff8801b03a4440 RBX: 0000000000000000 RCX: ffffffff86301238
RDX: 0000000000000000 RSI: ffffffff86301821 RDI: 0000000000000005
RBP: ffff8801aecf7000 R08: ffff8801b03a4440 R09: ffffed0036a2c11c
R10: ffffed0036a2c11c R11: ffff8801b51608e5 R12: ffff8801b51632bc
R13: ffffffff87838ae0 R14: dffffc0000000000 R15: ffff8801b51608e0
 ieee80211_register_hw+0x13d5/0x35e0 net/mac80211/main.c:1050
 mac80211_hwsim_new_radio+0x1db8/0x33b0 drivers/net/wireless/mac80211_hwsim.c:2772
 hwsim_new_radio_nl+0x7c0/0xa80 drivers/net/wireless/mac80211_hwsim.c:3247
 genl_family_rcv_msg+0x8a3/0x1140 net/netlink/genetlink.c:601
 genl_rcv_msg+0xc6/0x168 net/netlink/genetlink.c:626
 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2455
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:637
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x5a0/0x760 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0xa18/0xfd0 net/netlink/af_netlink.c:1908
 sock_sendmsg_nosec net/socket.c:642 [inline]
 sock_sendmsg+0xd5/0x120 net/socket.c:652
 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2126
 __sys_sendmsg+0x11d/0x290 net/socket.c:2164
 __do_sys_sendmsg net/socket.c:2173 [inline]
 __se_sys_sendmsg net/socket.c:2171 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2171
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4402c9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007fff8f687c88 EFLAGS: 00000213 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004402c9
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401b50
R13: 0000000000401be0 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/12 05:42 upstream ec0c96714e7d 7a88b141 .config console log report syz C ci-upstream-kasan-gce
2018/08/12 05:28 upstream ec0c96714e7d 7a88b141 .config console log report syz C ci-upstream-kasan-gce-root
2018/08/12 05:42 upstream ec0c96714e7d 7a88b141 .config console log report syz C ci-upstream-kasan-gce-386
2018/08/12 05:40 net-old d472b3a6cf63 7a88b141 .config console log report syz C ci-upstream-net-this-kasan-gce
2018/08/12 05:42 net-next-old 78cbac647e61 7a88b141 .config console log report syz C ci-upstream-net-kasan-gce
2018/08/17 04:16 linux-next 3070c752f222 9ccc1d45 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/12 07:10 https://github.com/google/kmsan.git master 0cc51dc9a291 7a88b141 .config console log report syz C ci-upstream-kmsan-gce
2018/08/12 03:50 upstream ec0c96714e7d 7a88b141 .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.