syzbot


WARNING in wiphy_register (4)

Status: fixed on 2019/05/27 12:48
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+8f91bd563bbff230d0ee@syzkaller.appspotmail.com
Fix commit: 45fcef8b727b mac80211_hwsim: calculate if_combination.max_interfaces
First crash: 2034d, last: 2005d
Cause bisection: failed (error log, bisect log)
  
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.0 00/89] 5.0.11-stable review 106 (106) 2019/05/03 11:48
[PATCH v2] mac80211_hwsim: calculate if_combination.max_interfaces 1 (1) 2019/03/29 07:56
[PATCH] mac80211_hwsim: calculate if_combination.max_interfaces 1 (1) 2019/03/23 12:43
WARNING in wiphy_register (4) 0 (1) 2019/03/15 23:42
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in wiphy_register (3) wireless syz 31 2079d 2109d 11/28 fixed on 2019/03/06 07:43
upstream WARNING in wiphy_register wireless C 15 2458d 2460d 4/28 fixed on 2018/01/22 13:19
upstream WARNING in wiphy_register (2) wireless C 8 2244d 2246d 10/28 fixed on 2018/09/11 03:32

Sample crash report:
netlink: 'syz-executor.5': attribute type 23 has an invalid length.
WARNING: CPU: 1 PID: 7527 at net/wireless/core.c:639 wiphy_verify_combinations net/wireless/core.c:639 [inline]
WARNING: CPU: 1 PID: 7527 at net/wireless/core.c:639 wiphy_register+0x2200/0x25f0 net/wireless/core.c:784
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 7527 Comm: syz-executor.5 Not tainted 5.0.0+ #98
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+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x2cb/0x65c kernel/panic.c:214
 __warn.cold+0x20/0x45 kernel/panic.c:571
 report_bug+0x263/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973
RIP: 0010:wiphy_verify_combinations net/wireless/core.c:639 [inline]
RIP: 0010:wiphy_register+0x2200/0x25f0 net/wireless/core.c:784
Code: 06 f6 de fa 0f 0b 41 bc ea ff ff ff e9 8b e2 ff ff e8 c4 aa b1 fa 48 8b 7c 24 60 e8 fa ee 16 fb e9 a6 de ff ff e8 e0 f5 de fa <0f> 0b 41 bc ea ff ff ff e9 65 e2 ff ff 48 89 df e8 db ee 16 fb e9
RSP: 0018:ffff88808b897190 EFLAGS: 00010293
RAX: ffff88808c448040 RBX: 0000000000000001 RCX: ffffffff869160af
RDX: 0000000000000000 RSI: ffffffff86916e50 RDI: 0000000000000004
RBP: ffff88808b8972c8 R08: ffff88808c448040 R09: ffffed10149cb1c1
R10: ffffed10149cb1c0 R11: ffff8880a4e58e05 R12: 0000000000000002
R13: 0000000000000002 R14: 0000000000000800 R15: ffff8880a4e5b974
 ieee80211_register_hw+0x1674/0x3c00 net/mac80211/main.c:1128
 mac80211_hwsim_new_radio+0x1f16/0x3de0 drivers/net/wireless/mac80211_hwsim.c:2929
 hwsim_new_radio_nl+0x9e3/0x1070 drivers/net/wireless/mac80211_hwsim.c:3477
 genl_family_rcv_msg+0x6e1/0xd90 net/netlink/genetlink.c:601
 genl_rcv_msg+0xca/0x16c net/netlink/genetlink.c:626
 netlink_rcv_skb+0x17a/0x460 net/netlink/af_netlink.c:2485
 genl_rcv+0x29/0x40 net/netlink/genetlink.c:637
 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline]
 netlink_unicast+0x536/0x720 net/netlink/af_netlink.c:1336
 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1925
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xdd/0x130 net/socket.c:632
 ___sys_sendmsg+0x806/0x930 net/socket.c:2137
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2175
 __do_sys_sendmsg net/socket.c:2184 [inline]
 __se_sys_sendmsg net/socket.c:2182 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2182
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458079
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5ae4523c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458079
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5ae45246d4
R13: 00000000004c564c R14: 00000000004d9520 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/03/15 07:41 net-next-old 3b319ee220a8 d72db19b .config console log report syz ci-upstream-net-kasan-gce
2019/04/13 18:59 net-next-old 5fa7d3f9d318 c402d8f1 .config console log report ci-upstream-net-kasan-gce
2019/03/15 07:26 net-next-old 3b319ee220a8 d72db19b .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.