syzbot


WARNING in ieee80211_s1g_channel_width

Status: fixed on 2020/11/16 12:12
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+92715a0eccd6c881bc32@syzkaller.appspotmail.com
Fix commit: c1cd35c60601 cfg80211: only allow S1G channels on S1G band
First crash: 1298d, last: 1297d
Cause bisection: introduced by (bisect log) :
commit 11b34737b18a70c74d5cf13ee58d36e95879013c
Author: Thomas Pedersen <thomas@adapt-ip.com>
Date: Tue Sep 8 19:03:06 2020 +0000

  nl80211: support setting S1G channels

Crash: WARNING in ieee80211_s1g_channel_width (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] cfg80211: only allow S1G channels on S1G band 1 (1) 2020/10/05 16:51
WARNING in ieee80211_s1g_channel_width 0 (1) 2020/10/05 08:48

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6864 at net/wireless/util.c:117 ieee80211_s1g_channel_width+0x51/0x180 net/wireless/util.c:117
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 6864 Comm: syz-executor803 Not tainted 5.9.0-rc6-syzkaller #0
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+0x198/0x1fd lib/dump_stack.c:118
 panic+0x382/0x7fb kernel/panic.c:231
 __warn.cold+0x20/0x4b kernel/panic.c:600
 report_bug+0x1bd/0x210 lib/bug.c:198
 handle_bug+0x38/0x90 arch/x86/kernel/traps.c:234
 exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:254
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:536
RIP: 0010:ieee80211_s1g_channel_width+0x51/0x180 net/wireless/util.c:117
Code: ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 34 01 00 00 8b 2b bf 04 00 00 00 89 ee e8 59 13 c1 f9 83 fd 04 74 19 e8 ef 16 c1 f9 <0f> 0b 45 31 e4 e8 e5 16 c1 f9 44 89 e0 5b 5d 41 5c 41 5d c3 e8 d6
RSP: 0018:ffffc900044172d0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8882179037d0 RCX: ffffffff87b570b7
RDX: ffff88808dc361c0 RSI: ffffffff87b570c1 RDI: 0000000000000005
RBP: 0000000000000001 R08: 0000000000000001 R09: ffffc900044173f8
R10: 0000000000000004 R11: 1ffffffff19a4e5d R12: 0000000000000000
R13: 000000000000148c R14: 0000000000000000 R15: ffffc90004417404
 cfg80211_chandef_valid+0x222/0xc30 net/wireless/chan.c:227
 nl80211_parse_chandef+0x5ed/0xdf0 net/wireless/nl80211.c:2979
 __nl80211_set_channel+0x2e3/0x860 net/wireless/nl80211.c:3016
 nl80211_set_wiphy+0xa6c/0x2d40 net/wireless/nl80211.c:3189
 genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:739
 genl_family_rcv_msg net/netlink/genetlink.c:783 [inline]
 genl_rcv_msg+0x518/0x940 net/netlink/genetlink.c:800
 netlink_rcv_skb+0x15a/0x430 net/netlink/af_netlink.c:2489
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:811
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:671
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2353
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2407
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2440
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x440979
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 5b 11 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc9e2880d8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440979
RDX: 0000000000000000 RSI: 0000000020001f40 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000008 R09: 00000000004002c8
R10: 0000000000000026 R11: 0000000000000246 R12: 0000000000401f60
R13: 0000000000401ff0 R14: 0000000000000000 R15: 0000000000000000
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
2020/10/03 21:31 net-next-old 678cdd496708 2653fa43 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/05 04:25 net-next-old f5083d0cee08 5ef9c291 .config console log report info ci-upstream-net-kasan-gce
2020/10/03 21:17 net-next-old 678cdd496708 2653fa43 .config console log report info ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.