syzbot


general protection fault in ieee80211_chanctx_num_assigned

Status: upstream: reported C repro on 2020/10/27 05:11
Reported-by: syzbot+96b1721cf702f39913f5@syzkaller.appspotmail.com
First crash: 1516d, last: 888d
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 1103d 1537d 20/28 fixed on 2022/05/13 11:13
linux-4.19 general protection fault in ieee80211_chanctx_num_assigned C error 15 791d 1506d 0/1 upstream: reported C repro on 2020/11/06 01:59
Last patch testing requests (8)
Created Duration User Patch Repo Result
2023/03/02 09:32 13m retest repro linux-4.14.y report log
2023/03/02 08:32 11m retest repro linux-4.14.y report log
2023/03/02 07:32 12m retest repro linux-4.14.y report log
2023/03/02 06:32 11m retest repro linux-4.14.y report log
2022/11/11 11:30 10m retest repro linux-4.14.y report log
2022/11/11 10:30 13m retest repro linux-4.14.y report log
2022/11/11 09:30 10m retest repro linux-4.14.y report log
2022/11/11 08:30 9m retest repro linux-4.14.y report log
Fix bisection attempts (23)
Created Duration User Patch Repo Result
2022/08/16 21:29 10m bisect fix linux-4.14.y error job log
2022/07/17 20:49 26m bisect fix linux-4.14.y OK (0) job log log
2022/06/17 20:16 32m bisect fix linux-4.14.y OK (0) job log log
2022/05/18 18:09 24m bisect fix linux-4.14.y OK (0) job log log
2022/04/18 16:19 25m bisect fix linux-4.14.y OK (0) job log log
2022/03/19 15:32 27m bisect fix linux-4.14.y OK (0) job log log
2022/02/17 14:57 25m bisect fix linux-4.14.y OK (0) job log log
2022/01/18 14:27 29m bisect fix linux-4.14.y OK (0) job log log
2021/12/19 13:54 27m bisect fix linux-4.14.y OK (0) job log log
2021/11/19 13:31 22m bisect fix linux-4.14.y OK (0) job log log
2021/10/20 13:09 22m bisect fix linux-4.14.y OK (0) job log log
2021/09/20 12:41 27m bisect fix linux-4.14.y OK (0) job log log
2021/08/21 12:18 22m bisect fix linux-4.14.y OK (0) job log log
2021/07/22 11:08 1h10m bisect fix linux-4.14.y OK (0) job log log
2021/06/22 09:31 26m bisect fix linux-4.14.y OK (0) job log log
2021/05/22 17:14 29m bisect fix linux-4.14.y OK (0) job log log
2021/04/22 15:35 21m bisect fix linux-4.14.y OK (0) job log log
2021/03/23 14:54 21m bisect fix linux-4.14.y OK (0) job log log
2021/02/21 10:23 22m bisect fix linux-4.14.y OK (0) job log log
2021/02/18 05:43 18m bisect fix linux-4.14.y error job log
2021/02/06 16:22 0m bisect fix linux-4.14.y error job log
2021/01/07 15:59 22m bisect fix linux-4.14.y OK (0) job log log
2020/12/08 15:36 23m bisect fix linux-4.14.y OK (0) job log 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
Modules linked in:
CPU: 0 PID: 8022 Comm: syz-executor026 Not tainted 4.14.204-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880b2ebc300 task.stack: ffff8880955b0000
RIP: 0010:ieee80211_chanctx_num_assigned+0xa5/0x120 net/mac80211/chan.c:20
RSP: 0018:ffff8880955b74a8 EFLAGS: 00010a02
RAX: 1bd5a00000000020 RBX: deacfffffffff920 RCX: 1ffffffff1279f18
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: dead000000000100
RBP: ffff8880b0f1b020 R08: 0000000000000000 R09: 0000000000040589
R10: ffff8880b2ebcc50 R11: ffff8880b2ebc300 R12: 0000000000000002
R13: dffffc0000000000 R14: ffff8880b0f1b000 R15: 0000000000000000
FS:  0000000002562880(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4d1d5e7210 CR3: 00000000995b3000 CR4: 00000000001406f0
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:2929
 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:0x441f29
RSP: 002b:00007ffc5aafb9f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441f29
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 0000000000007131 R08: 00000000004002e0 R09: 00000000004002e0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402a90
R13: 0000000000402b20 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 8d cd 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: ffff8880955b74a8
---[ end trace b82d94e37ab537f4 ]---

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/08 15:25 linux-4.14.y 6b6446efedb2 cba33199 .config console log report syz C ci2-linux-4-14
2020/10/31 15:40 linux-4.14.y 2b7915014161 8bc4594f .config console log report syz C ci2-linux-4-14
2020/10/27 19:46 linux-4.14.y 5b7a52cd2eef 94942294 .config console log report syz C ci2-linux-4-14
2020/10/27 05:10 linux-4.14.y 5b7a52cd2eef 8b3eaf58 .config console log report syz C ci2-linux-4-14
* Struck through repros no longer work on HEAD.