bisecting fixing commit since 31acccdc877486a649a86d37725a15175fcd5ed6 building syzkaller on 77a55c8ea6070a9a88715db4c17e9612a7f99b21 testing commit 31acccdc877486a649a86d37725a15175fcd5ed6 with gcc (GCC) 8.1.0 kernel signature: e0e5a59461bf2082a7a4bc2ac475c9caa091ef9f85eb8d848f8cb66d10a2aa15 all runs: crashed: WARNING: locking bug in inet_autobind testing current HEAD 13d2ce42de8cb98ff952f8de6307f896203854c2 testing commit 13d2ce42de8cb98ff952f8de6307f896203854c2 with gcc (GCC) 8.1.0 kernel signature: bb143b3b7b2f4abc5e995657b45c5dddff74f1e9d2965957312caa086b131598 run #0: crashed: WARNING: locking bug in inet_autobind run #1: crashed: WARNING: locking bug in inet_autobind run #2: crashed: WARNING: locking bug in inet_autobind run #3: crashed: WARNING: locking bug in inet_autobind run #4: crashed: WARNING: locking bug in inet_autobind run #5: crashed: WARNING: locking bug in inet_autobind run #6: crashed: WARNING: locking bug in inet_autobind run #7: crashed: WARNING: locking bug in inet_autobind run #8: crashed: WARNING: locking bug in inet_autobind run #9: OK revisions tested: 2, total time: 40m47.606443723s (build: 24m11.565407517s, test: 15m54.817004862s) the crash still happens on HEAD commit msg: Linux 4.19.163 crash: WARNING: locking bug in inet_autobind WARNING: CPU: 0 PID: 28963 at kernel/locking/lockdep.c:698 arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline] WARNING: CPU: 0 PID: 28963 at kernel/locking/lockdep.c:698 look_up_lock_class kernel/locking/lockdep.c:689 [inline] WARNING: CPU: 0 PID: 28963 at kernel/locking/lockdep.c:698 register_lock_class+0x97a/0x1b10 kernel/locking/lockdep.c:748 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 28963 Comm: syz-executor.4 Not tainted 4.19.163-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+0x17c/0x22a lib/dump_stack.c:118 panic+0x1cd/0x375 kernel/panic.c:186 __warn.cold.7+0x1b/0x3e kernel/panic.c:541 report_bug+0x1a4/0x200 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] do_error_trap+0x200/0x350 arch/x86/kernel/traps.c:296 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038 RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:698 [inline] RIP: 0010:register_lock_class+0x97a/0x1b10 kernel/locking/lockdep.c:748 Code: 89 cf 44 89 95 60 ff ff ff e8 22 17 47 00 44 8b 95 60 ff ff ff 48 c7 c1 e0 56 ad 8b 4c 8b 8d 68 ff ff ff e9 26 f7 ff ff 0f 0b <0f> 0b e9 6e f9 ff ff 49 8d 46 01 4d 69 f6 50 01 00 00 48 89 05 8d RSP: 0018:ffff8881dce37948 EFLAGS: 00010087 RAX: 0000000000000004 RBX: ffffffff8b665e10 RCX: 0000000000000003 RDX: 1ffffffff175aadc RSI: 0000000000000000 RDI: ffff8881dfec2878 RBP: ffff8881dce37a20 R08: 0000000000000000 R09: ffff8881dfec2860 R10: 0000000000000000 R11: ffff8881dce37e1b R12: 1ffff1103b9c6f33 R13: 0000000000000000 R14: ffffffff88f24820 R15: ffffffff88dde480 __lock_acquire+0x1a0/0x47c0 kernel/locking/lockdep.c:3303 lock_acquire+0x180/0x3a0 kernel/locking/lockdep.c:3907 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:168 spin_lock_bh include/linux/spinlock.h:334 [inline] lock_sock_nested+0x3a/0x100 net/core/sock.c:2864 lock_sock include/net/sock.h:1510 [inline] inet_autobind+0x13/0x160 net/ipv4/af_inet.c:179 inet_dgram_connect+0x1db/0x270 net/ipv4/af_inet.c:569 __sys_connect+0x20d/0x2d0 net/socket.c:1663 __do_sys_connect net/socket.c:1674 [inline] __se_sys_connect net/socket.c:1671 [inline] __x64_sys_connect+0x6e/0xb0 net/socket.c:1671 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45deb9 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:00007fbcfaf47c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000002400 RCX: 000000000045deb9 RDX: 000000000000001c RSI: 0000000020000080 RDI: 0000000000000004 RBP: 000000000118c008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bfd4 R13: 00007ffc7bd1e4af R14: 00007fbcfaf489c0 R15: 000000000118bfd4 Kernel Offset: disabled Rebooting in 86400 seconds..