bisecting fixing commit since 97ab07e11fbf55c86c3758e07ab295028bf17f94 building syzkaller on cd626f3ba9f85027426d4fbed73e79e523e8e138 testing commit 97ab07e11fbf55c86c3758e07ab295028bf17f94 with gcc (GCC) 8.1.0 kernel signature: f57c2ebb8da709cea01a833594d74007e9944c584b8da568eaa259534488107e run #0: crashed: general protection fault in prepare_to_wait run #1: crashed: general protection fault in prepare_to_wait run #2: crashed: general protection fault in prepare_to_wait run #3: crashed: KASAN: use-after-free Read in lock_sock_nested run #4: crashed: general protection fault in prepare_to_wait run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK testing current HEAD 43d555d83c3f1fb8168367ca5b47c3a6570ca487 testing commit 43d555d83c3f1fb8168367ca5b47c3a6570ca487 with gcc (GCC) 8.1.0 kernel signature: cd2c806c5af8ec0df946ed5c90b419a56be9374e05c014c4840af939fbd30410 run #0: crashed: general protection fault in prepare_to_wait run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK reproducer seems to be flaky Reproducer flagged being flaky revisions tested: 2, total time: 39m43.042871512s (build: 16m54.342588828s, test: 21m59.460563796s) the crash still happens on HEAD commit msg: Linux 4.19.169 crash: general protection fault in prepare_to_wait 8021q: adding VLAN 0 to HW filter on device batadv0 IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 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: 6654 Comm: syz-executor.3 Not tainted 4.19.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__lock_acquire+0x1e0/0x4980 kernel/locking/lockdep.c:3294 Code: 28 00 00 00 0f 85 2a 30 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 28 32 00 00 49 81 7d 00 60 71 0b 89 0f 84 4a ff RSP: 0018:ffff8881e1927900 EFLAGS: 00010006 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000003 RSI: 0000000000000000 RDI: ffffffff88120000 RBP: ffff8881e1927af0 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000018 R14: ffff8881df658400 R15: 0000000000000000 FS: 00007fca3aeb9700(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fedecbd2db8 CR3: 00000001df638004 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x173/0x3d0 kernel/locking/lockdep.c:3907 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:152 prepare_to_wait+0x90/0x310 kernel/sched/wait.c:230 nr_accept+0x1b0/0x640 net/netrom/af_netrom.c:796 __sys_accept4+0x32b/0x6b0 net/socket.c:1589 __do_sys_accept net/socket.c:1630 [inline] __se_sys_accept net/socket.c:1627 [inline] __x64_sys_accept+0x70/0xb0 net/socket.c:1627 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4598f9 Code: 7d b7 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 4b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fca3aeb8c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002b RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004598f9 RDX: 0000000020000080 RSI: 0000000020000280 RDI: 0000000000000004 RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fca3aeb96d4 R13: 00000000004bf7c9 R14: 00000000004d11a0 R15: 00000000ffffffff Modules linked in: ---[ end trace 39066f90ef30a14d ]--- RIP: 0010:__lock_acquire+0x1e0/0x4980 kernel/locking/lockdep.c:3294 Code: 28 00 00 00 0f 85 2a 30 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 28 32 00 00 49 81 7d 00 60 71 0b 89 0f 84 4a ff RSP: 0018:ffff8881e1927900 EFLAGS: 00010006 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000003 RSI: 0000000000000000 RDI: ffffffff88120000 RBP: ffff8881e1927af0 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000018 R14: ffff8881df658400 R15: 0000000000000000 FS: 00007fca3aeb9700(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fedecbd2db8 CR3: 00000001df638004 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400