WARNING in cfg80211_connect

11 views
Skip to first unread message

syzbot

unread,
Oct 1, 2020, 5:38:17 AM10/1/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 10ad6cfd Linux 4.19.148
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11959737900000
kernel config: https://syzkaller.appspot.com/x/.config?x=f12430879510f963
dashboard link: https://syzkaller.appspot.com/bug?extid=074132c5f0efd1b87943
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+074132...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 1 PID: 10853 at net/wireless/sme.c:533 cfg80211_sme_connect net/wireless/sme.c:533 [inline]
WARNING: CPU: 1 PID: 10853 at net/wireless/sme.c:533 cfg80211_connect.cold+0x29/0xb9 net/wireless/sme.c:1220
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 10853 Comm: syz-executor.4 Not tainted 4.19.148-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+0x22c/0x33e lib/dump_stack.c:118
panic+0x2ac/0x565 kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1e1/0x330 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:cfg80211_sme_connect net/wireless/sme.c:533 [inline]
RIP: 0010:cfg80211_connect.cold+0x29/0xb9 net/wireless/sme.c:1220
Code: ff e8 dd 45 30 fa 48 c7 c7 c0 96 cc 88 e8 00 c1 19 fa 0f 0b e9 1e db ff ff e8 c5 45 30 fa 48 c7 c7 c0 96 cc 88 e8 e8 c0 19 fa <0f> 0b 41 bc 8d ff ff ff e9 da d5 ff ff e8 a7 45 30 fa 41 0f b6 f6
RSP: 0018:ffff88808a807370 EFLAGS: 00010286
RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 000000000000c573 RSI: ffffffff815b523f RDI: ffffed1011500e60
RBP: ffffffff88cdc920 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88808a807510
R13: ffff88808d1d4f38 R14: ffff88808d1d4f10 R15: 0000000000000006
nl80211_connect+0x1422/0x20a0 net/wireless/nl80211.c:9568
genl_family_rcv_msg+0x6bf/0xd50 net/netlink/genetlink.c:602
genl_rcv_msg+0xdf/0x1b0 net/netlink/genetlink.c:627
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x717/0xcc0 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc7/0x130 net/socket.c:632
___sys_sendmsg+0x7bb/0x8f0 net/socket.c:2115
__sys_sendmsg net/socket.c:2153 [inline]
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45dd99
Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f95954b7c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002be80 RCX: 000000000045dd99
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 000000000118c008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bfd4
R13: 00007fffac79a2af R14: 00007f95954b89c0 R15: 000000000118bfd4
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Oct 1, 2020, 5:45:20 AM10/1/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: cbfa1702 Linux 4.14.198
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=166794cb900000
kernel config: https://syzkaller.appspot.com/x/.config?x=3990958d85b55e59
dashboard link: https://syzkaller.appspot.com/bug?extid=b351ca235d590b372f17
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b351ca...@syzkaller.appspotmail.com

XFS (loop3): Invalid superblock magic number
BTRFS error (device loop4): unsupported checksum algorithm 2
BTRFS error (device loop4): superblock checksum mismatch
------------[ cut here ]------------
WARNING: CPU: 0 PID: 12868 at net/wireless/sme.c:533 cfg80211_sme_connect net/wireless/sme.c:533 [inline]
WARNING: CPU: 0 PID: 12868 at net/wireless/sme.c:533 cfg80211_connect+0x1856/0x2120 net/wireless/sme.c:1141
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 12868 Comm: syz-executor.0 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
ieee80211 phy4: mac80211_hwsim_configure_filter
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x283 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x4b kernel/panic.c:547
hwsim sw_scan_complete
report_bug+0x208/0x249 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
ieee80211 phy4: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static)
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:cfg80211_sme_connect net/wireless/sme.c:533 [inline]
RIP: 0010:cfg80211_connect+0x1856/0x2120 net/wireless/sme.c:1141
RSP: 0018:ffff88805776f448 EFLAGS: 00010216
RAX: 0000000000040000 RBX: ffff88809b029710 RCX: ffffc9000667c000
RDX: 00000000000007c7 RSI: ffffffff85fa3456 RDI: ffffffff874b1b38
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1013605302
R10: ffff88809b029815 R11: ffff888050c221c0 R12: ffff88805776f5c0
R13: ffffffff874b1a00 R14: ffff88809b029838 R15: ffff88809b029810
nl80211_connect+0x1379/0x1cd0 net/wireless/nl80211.c:9107
genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600
genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
genl_rcv+0x24/0x40 net/netlink/genetlink.c:636
netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45dd99
RSP: 002b:00007fd958e16c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002be80 RCX: 000000000045dd99
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c
R13: 00007ffe0b796a0f R14: 00007fd958e179c0 R15: 000000000118bf2c

syzbot

unread,
Oct 1, 2020, 7:36:16 AM10/1/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 10ad6cfd Linux 4.19.148
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12d2446d900000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1021b62f900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1438c683900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+074132...@syzkaller.appspotmail.com

wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6542 at net/wireless/sme.c:533 cfg80211_sme_connect net/wireless/sme.c:533 [inline]
WARNING: CPU: 1 PID: 6542 at net/wireless/sme.c:533 cfg80211_connect.cold+0x29/0xb9 net/wireless/sme.c:1220
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 6542 Comm: syz-executor397 Not tainted 4.19.148-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+0x22c/0x33e lib/dump_stack.c:118
panic+0x2ac/0x565 kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1e1/0x330 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:cfg80211_sme_connect net/wireless/sme.c:533 [inline]
RIP: 0010:cfg80211_connect.cold+0x29/0xb9 net/wireless/sme.c:1220
Code: ff e8 dd 45 30 fa 48 c7 c7 c0 96 cc 88 e8 00 c1 19 fa 0f 0b e9 1e db ff ff e8 c5 45 30 fa 48 c7 c7 c0 96 cc 88 e8 e8 c0 19 fa <0f> 0b 41 bc 8d ff ff ff e9 da d5 ff ff e8 a7 45 30 fa 41 0f b6 f6
RSP: 0018:ffff8880a3f1f370 EFLAGS: 00010286
RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815b523f RDI: ffffed10147e3e60
RBP: ffffffff88cdc920 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880a3f1f510
R13: ffff88808499ddb8 R14: ffff88808499dd90 R15: 0000000000000006
nl80211_connect+0x1422/0x20a0 net/wireless/nl80211.c:9568
genl_family_rcv_msg+0x6bf/0xd50 net/netlink/genetlink.c:602
genl_rcv_msg+0xdf/0x1b0 net/netlink/genetlink.c:627
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x717/0xcc0 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc7/0x130 net/socket.c:632
___sys_sendmsg+0x7bb/0x8f0 net/socket.c:2115
__sys_sendmsg net/socket.c:2153 [inline]
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x442139
Code: e8 ac 00 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 7b 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe9c394178 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000442139
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000001d00000000 R09: 0000001d00000000
R10: 0000001d00000000 R11: 0000000000000246 R12: 000000000000b213
R13: 0000000000000000 R14: 000000000000000c R15: 0000000000000004

syzbot

unread,
Oct 1, 2020, 8:43:24 AM10/1/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: cbfa1702 Linux 4.14.198
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=135d11bd900000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1339b1bd900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1273155b900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b351ca...@syzkaller.appspotmail.com

IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6385 at net/wireless/sme.c:533 cfg80211_sme_connect net/wireless/sme.c:533 [inline]
WARNING: CPU: 1 PID: 6385 at net/wireless/sme.c:533 cfg80211_connect+0x1856/0x2120 net/wireless/sme.c:1141
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 6385 Comm: syz-executor362 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x283 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x4b kernel/panic.c:547
report_bug+0x208/0x249 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:cfg80211_sme_connect net/wireless/sme.c:533 [inline]
RIP: 0010:cfg80211_connect+0x1856/0x2120 net/wireless/sme.c:1141
RSP: 0018:ffff88808543f448 EFLAGS: 00010297
RAX: ffff888096cfe2c0 RBX: ffff88808c3b63d0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff88809f91e026 RDI: ffffffff874b1b38
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1011876c9a
R10: ffff88808c3b64d5 R11: ffff888096cfe2c0 R12: ffff88808543f5c0
R13: ffffffff874b1a00 R14: ffff88808c3b64f8 R15: ffff88808c3b64d0
nl80211_connect+0x1379/0x1cd0 net/wireless/nl80211.c:9107
genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600
genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
genl_rcv+0x24/0x40 net/netlink/genetlink.c:636
netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x442139
RSP: 002b:00007ffe64152188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000442139
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000001300000000 R09: 0000001300000000
R10: 0000001300000000 R11: 0000000000000246 R12: 000000000000841c
R13: 0000000000000000 R14: 000000000000000c R15: 0000000000000004

syzbot

unread,
Apr 28, 2021, 4:42:08 PM4/28/21
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit bd7b29fb365e7880dad175908bb05428b4c000ea
Author: Du Cheng <duch...@gmail.com>
Date: Wed Apr 7 16:27:56 2021 +0000

cfg80211: remove WARN_ON() in cfg80211_sme_connect

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=176e5315d00000
start commit: 87335852 Linux 4.14.209
git tree: linux-4.14.y
kernel config: https://syzkaller.appspot.com/x/.config?x=a932ed2a762225b
dashboard link: https://syzkaller.appspot.com/bug?extid=b351ca235d590b372f17
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=161b1045500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11e21ce9500000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: cfg80211: remove WARN_ON() in cfg80211_sme_connect

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
May 13, 2021, 10:36:07 PM5/13/21
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit ee1a5262eb01fc347de97b0d3e0bc0e6f83ad8e1
Author: Du Cheng <duch...@gmail.com>
Date: Wed Apr 7 16:27:56 2021 +0000

cfg80211: remove WARN_ON() in cfg80211_sme_connect

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10457811d00000
start commit: 830a059c Linux 4.19.186
git tree: linux-4.19.y
kernel config: https://syzkaller.appspot.com/x/.config?x=7415cc95f9edb7b9
dashboard link: https://syzkaller.appspot.com/bug?extid=074132c5f0efd1b87943
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=134a7229d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1089bcc5d00000
Reply all
Reply to author
Forward
0 new messages