general protection fault in ieee80211_chanctx_num_assigned

9 views
Skip to first unread message

syzbot

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

syzbot found the following issue on:

HEAD commit: 5b7a52cd Linux 4.14.202
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10cffeef900000
kernel config: https://syzkaller.appspot.com/x/.config?x=fa386e02ca459165
dashboard link: https://syzkaller.appspot.com/bug?extid=96b1721cf702f39913f5
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15f5fc18500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=149de9b4500000

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

IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 8023 Comm: syz-executor037 Not tainted 4.14.202-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88809562c280 task.stack: ffff8880a2f38000
RIP: 0010:ieee80211_chanctx_num_assigned+0xa5/0x120 net/mac80211/chan.c:20
RSP: 0018:ffff8880a2f3f4a8 EFLAGS: 00010a02
RAX: 1bd5a00000000020 RBX: deacfffffffff920 RCX: 1ffffffff1279ee0
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: dead000000000100
RBP: ffff8880b2c19220 R08: 0000000000000000 R09: 0000000000040582
R10: ffff88809562cbd0 R11: ffff88809562c280 R12: 0000000000000002
R13: dffffc0000000000 R14: ffff8880b2c19200 R15: 0000000000000000
FS: 0000000001cd5880(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0427df7520 CR3: 00000000a9913000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ieee80211_assign_vif_chanctx+0x65e/0x1370 net/mac80211/chan.c:676
__ieee80211_vif_release_channel+0x1ef/0x3f0 net/mac80211/chan.c:1543
ieee80211_vif_release_channel+0xef/0x1f0 net/mac80211/chan.c:1757
ieee80211_ibss_disconnect+0x527/0xd40 net/mac80211/ibss.c:744
ieee80211_ibss_leave+0x12/0xd8 net/mac80211/ibss.c:1858
rdev_leave_ibss net/wireless/rdev-ops.h:531 [inline]
__cfg80211_leave_ibss+0x14c/0x6d0 net/wireless/ibss.c:217
cfg80211_leave_ibss+0x54/0x70 net/wireless/ibss.c:234
cfg80211_change_iface+0x791/0x13d0 net/wireless/util.c:1028
nl80211_set_interface+0x588/0x760 net/wireless/nl80211.c:2926
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:0x4421a9
RSP: 002b:00007ffe8d1f4808 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004421a9
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 000000306e616c77 R08: 00000000004002e0 R09: 00000000004002e0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402d10
R13: 0000000000402da0 R14: 0000000000000000 R15: 0000000000000000
Code: 98 20 f8 ff ff 48 39 c5 74 3b 49 bd 00 00 00 00 00 fc ff df e8 cd ff 7b fa 48 8d bb e0 07 00 00 41 83 c4 01 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 75 5d 48 8b 83 e0 07 00 00 48 8d 98 20 f8 ff ff
RIP: ieee80211_chanctx_num_assigned+0xa5/0x120 net/mac80211/chan.c:20 RSP: ffff8880a2f3f4a8
---[ end trace e4372337d2da5309 ]---


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Nov 5, 2020, 8:59:17 PM11/5/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: b94de4d1 Linux 4.19.155
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15334546500000
kernel config: https://syzkaller.appspot.com/x/.config?x=252047157acf1cb1
dashboard link: https://syzkaller.appspot.com/bug?extid=af62dba66f56bd01287e
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12f36e2a500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15824746500000

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

IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8171 Comm: syz-executor737 Not tainted 4.19.155-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ieee80211_chanctx_num_assigned+0xb1/0x130 net/mac80211/chan.c:20
Code: 08 f8 ff ff 48 39 c5 74 3b 49 bd 00 00 00 00 00 fc ff df e8 d1 d4 9f f9 48 8d bb f8 07 00 00 41 83 c4 01 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 75 61 48 8b 83 f8 07 00 00 48 8d 98 08 f8 ff ff 48
RSP: 0018:ffff8880b2c173e8 EFLAGS: 00010a02
RAX: 1bd5a00000000020 RBX: deacfffffffff908 RCX: ffffffff87c4fa1b
RDX: 0000000000000000 RSI: ffffffff87c4f9bf RDI: dead000000000100
RBP: ffff8880b4dabb20 R08: ffff8880ab871700 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000002
R13: dffffc0000000000 R14: ffff8880b4dabb00 R15: 0000000000000000
FS: 0000000000845880(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f693e3d1520 CR3: 00000000a11b3000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ieee80211_assign_vif_chanctx+0x73c/0x1590 net/mac80211/chan.c:676
__ieee80211_vif_release_channel+0x22f/0x420 net/mac80211/chan.c:1543
ieee80211_vif_release_channel+0x10a/0x1e0 net/mac80211/chan.c:1757
ieee80211_ibss_disconnect+0x5a0/0xe40 net/mac80211/ibss.c:744
ieee80211_ibss_leave+0x12/0xd8 net/mac80211/ibss.c:1858
rdev_leave_ibss net/wireless/rdev-ops.h:531 [inline]
__cfg80211_leave_ibss+0x191/0x7c0 net/wireless/ibss.c:206
cfg80211_leave_ibss+0x54/0x70 net/wireless/ibss.c:224
cfg80211_change_iface+0x925/0x1530 net/wireless/util.c:916
nl80211_set_interface+0x661/0x830 net/wireless/nl80211.c:3205
genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
genl_rcv_msg+0xbf/0x160 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+0x6bb/0xc40 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 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/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4421a9
Code: e8 4c ff 02 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 db 06 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc27e991f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004421a9
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 000000306e616c77 R08: 00000000004002e0 R09: 00000000004002e0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402d10
R13: 0000000000402da0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace a17ab972c16e5f19 ]---
RIP: 0010:ieee80211_chanctx_num_assigned+0xb1/0x130 net/mac80211/chan.c:20
Code: 08 f8 ff ff 48 39 c5 74 3b 49 bd 00 00 00 00 00 fc ff df e8 d1 d4 9f f9 48 8d bb f8 07 00 00 41 83 c4 01 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 75 61 48 8b 83 f8 07 00 00 48 8d 98 08 f8 ff ff 48
RSP: 0018:ffff8880b2c173e8 EFLAGS: 00010a02
RAX: 1bd5a00000000020 RBX: deacfffffffff908 RCX: ffffffff87c4fa1b
RDX: 0000000000000000 RSI: ffffffff87c4f9bf RDI: dead000000000100
RBP: ffff8880b4dabb20 R08: ffff8880ab871700 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000002
R13: dffffc0000000000 R14: ffff8880b4dabb00 R15: 0000000000000000
FS: 0000000000845880(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f693e3d1520 CR3: 00000000a11b3000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


Reply all
Reply to author
Forward
0 new messages