bisecting fixing commit since f97c81dc6ca5996560b3944064f63fc87eb18d00 building syzkaller on d96e88f3207d7ac7ad65e13b896f702ad04c46f7 testing commit f97c81dc6ca5996560b3944064f63fc87eb18d00 with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #1: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #2: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #3: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK testing current HEAD 7d194c2100ad2a6dded545887d02754948ca5241 testing commit 7d194c2100ad2a6dded545887d02754948ca5241 with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in selinux_netlbl_socket_connect 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 revisions tested: 2, total time: 32m57.907328175s (build: 11m41.521355089s, test: 19m55.319916835s) the crash still happens on HEAD crash: WARNING: locking bug in selinux_netlbl_socket_connect ------------[ cut here ]------------ WARNING: CPU: 0 PID: 17680 at kernel/locking/lockdep.c:841 look_up_lock_class kernel/locking/lockdep.c:840 [inline] WARNING: CPU: 0 PID: 17680 at kernel/locking/lockdep.c:841 register_lock_class+0x296/0x22d0 kernel/locking/lockdep.c:1185 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 17680 Comm: syz-executor.2 Not tainted 5.4.0-rc4 #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+0x113/0x167 lib/dump_stack.c:113 panic+0x22a/0x4e3 kernel/panic.c:221 __warn.cold.11+0x25/0x30 kernel/panic.c:582 report_bug+0x1b0/0x270 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:179 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:291 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1028 RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:840 [inline] RIP: 0010:register_lock_class+0x296/0x22d0 kernel/locking/lockdep.c:1185 Code: 7d ab 08 74 27 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 80 3c 02 00 0f 85 be 16 00 00 49 81 3c 24 a0 e5 54 89 74 02 <0f> 0b 45 85 c0 0f 84 67 03 00 00 41 83 e1 01 0f 85 5d 03 00 00 41 RSP: 0018:ffff88807e7b79e8 EFLAGS: 00010006 RAX: dffffc0000000000 RBX: ffffffff89c9dfe0 RCX: 1ffff1100fcf6f47 RDX: 1ffff1101419dd1c RSI: 1ffffffff13fa41c RDI: ffff8880a0cee8f8 RBP: ffff88807e7b7ac0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffff88809878a600 R12: ffff8880a0cee8e0 R13: 0000000000000003 R14: 0000000000000000 R15: ffffffff87cddf60 __lock_acquire+0xff/0x4ef0 kernel/locking/lockdep.c:3837 lock_acquire+0x194/0x410 kernel/locking/lockdep.c:4487 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:343 [inline] lock_sock_nested+0x3a/0x100 net/core/sock.c:2938 lock_sock include/net/sock.h:1527 [inline] selinux_netlbl_socket_connect+0x16/0xa0 security/selinux/netlabel.c:607 selinux_socket_connect+0x4a/0x60 security/selinux/hooks.c:4791 security_socket_connect+0x4a/0x90 security/security.c:1998 __sys_connect+0x163/0x2d0 net/socket.c:1824 __do_sys_connect net/socket.c:1839 [inline] __se_sys_connect net/socket.c:1836 [inline] __x64_sys_connect+0x6e/0xb0 net/socket.c:1836 do_syscall_64+0xca/0x5d0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459a09 Code: fd 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa10bae7c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459a09 RDX: 000000000000001c RSI: 0000000020000080 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa10bae86d4 R13: 00000000004bff42 R14: 00000000004d1eb0 R15: 00000000ffffffff Kernel Offset: disabled Rebooting in 86400 seconds..