syzbot


general protection fault in ieee80211_chanctx_num_assigned

Status: upstream: reported C repro on 2020/11/06 01:59
Reported-by: syzbot+af62dba66f56bd01287e@syzkaller.appspotmail.com
First crash: 1254d, last: 539d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ieee80211_chanctx_num_assigned wireless C inconclusive done 15 851d 1285d 20/26 fixed on 2022/05/13 11:13
linux-4.14 general protection fault in ieee80211_chanctx_num_assigned C error 4 635d 1264d 0/1 upstream: reported C repro on 2020/10/27 05:11
Fix bisection attempts (11)
Created Duration User Patch Repo Result
2021/10/23 06:29 11m bisect fix linux-4.19.y error job log (0)
2021/09/22 12:19 30m bisect fix linux-4.19.y job log (0) log
2021/08/23 11:08 31m bisect fix linux-4.19.y job log (0) log
2021/07/24 10:36 29m bisect fix linux-4.19.y job log (0) log
2021/06/24 09:47 23m bisect fix linux-4.19.y job log (0) log
2021/05/25 03:12 26m bisect fix linux-4.19.y job log (0) log
2021/04/25 02:07 28m bisect fix linux-4.19.y job log (0) log
2021/03/25 17:17 22m bisect fix linux-4.19.y job log (0) log
2021/02/23 16:54 23m bisect fix linux-4.19.y job log (0) log
2021/01/21 03:02 23m bisect fix linux-4.19.y job log (0) log
2020/12/22 02:37 24m bisect fix linux-4.19.y job log (0) log

Sample crash report:
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: 0 PID: 8137 Comm: syz-executor284 Not tainted 4.19.158-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 41 a1 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:ffff888093de73e8 EFLAGS: 00010a02
RAX: 1bd5a00000000020 RBX: deacfffffffff908 RCX: ffffffff87c52f1b
RDX: 0000000000000000 RSI: ffffffff87c52ebf RDI: dead000000000100
RBP: ffff8880a4684920 R08: ffff8880ab4bd800 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000002
R13: dffffc0000000000 R14: ffff8880a4684900 R15: 0000000000000000
FS:  0000000001380880(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd5e5e4f930 CR3: 000000009f1ee000 CR4: 00000000001406f0
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:0x441f29
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:00007fff33ca2748 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441f29
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 00000000000082d9 R08: 00000000004002e0 R09: 00000000004002e0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402a90
R13: 0000000000402b20 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 995abdc11a925b4d ]---
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 41 a1 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:ffff888093de73e8 EFLAGS: 00010a02
RAX: 1bd5a00000000020 RBX: deacfffffffff908 RCX: ffffffff87c52f1b
RDX: 0000000000000000 RSI: ffffffff87c52ebf RDI: dead000000000100
RBP: ffff8880a4684920 R08: ffff8880ab4bd800 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000002
R13: dffffc0000000000 R14: ffff8880a4684900 R15: 0000000000000000
FS:  0000000001380880(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd5e5e4f930 CR3: 000000009f1ee000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/22 02:37 linux-4.19.y 2c746135a12e 0d27f508 .config console log report syz C ci2-linux-4-19
2020/11/12 03:15 linux-4.19.y 31acccdc8774 cca87986 .config console log report syz C ci2-linux-4-19
2020/11/06 12:06 linux-4.19.y b94de4d19498 cba33199 .config console log report syz C ci2-linux-4-19
2020/11/06 01:58 linux-4.19.y b94de4d19498 cba33199 .config console log report syz C ci2-linux-4-19
2022/10/22 08:37 linux-4.19.y 3f8a27f9e27b c0b80a55 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
2022/10/21 16:05 linux-4.19.y 3f8a27f9e27b 63e790dd .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
2022/10/21 09:42 linux-4.19.y 3f8a27f9e27b 63e790dd .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
2022/10/21 03:01 linux-4.19.y 3f8a27f9e27b a0fd4dab .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
2022/10/20 22:09 linux-4.19.y 3f8a27f9e27b a0fd4dab .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
2022/10/19 15:06 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
2022/10/19 06:37 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
2022/10/18 13:13 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
2022/10/18 12:11 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
2022/10/17 17:14 linux-4.19.y 3f8a27f9e27b 94744d21 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
2022/10/17 16:22 linux-4.19.y 3f8a27f9e27b 94744d21 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in ieee80211_chanctx_num_assigned
* Struck through repros no longer work on HEAD.