bisecting fixing commit since d5beb3140f91b1c8a3d41b14d729aefa4dcc58bc building syzkaller on 1ab681a4bc3f87b09150fa23f9dd4e2c5f5c33cc testing commit d5beb3140f91b1c8a3d41b14d729aefa4dcc58bc with gcc (GCC) 8.1.0 kernel signature: 6e03f2415f657d002de3b767efb31f4f63811502e210d1b50f7a800765ceb9d8 all runs: crashed: WARNING: locking bug in selinux_netlbl_socket_connect testing current HEAD 58cf05f597b03a8212d9ecf2c79ee046d3ee8ad9 testing commit 58cf05f597b03a8212d9ecf2c79ee046d3ee8ad9 with gcc (GCC) 8.1.0 kernel signature: e2d9d142f465c844f93c26d79891b557427dbd43098b2426873c40295ab2d4ad run #0: crashed: WARNING: locking bug in ip6_datagram_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 ip6_datagram_connect run #4: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #5: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #6: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #7: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #8: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #9: crashed: WARNING: locking bug in selinux_netlbl_socket_connect revisions tested: 2, total time: 22m6.379127972s (build: 9m4.140719481s, test: 12m33.283116549s) the crash still happens on HEAD commit msg: Merge tag 'sound-fix-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound crash: WARNING: locking bug in selinux_netlbl_socket_connect ------------[ cut here ]------------ WARNING: CPU: 1 PID: 24543 at kernel/locking/lockdep.c:895 look_up_lock_class kernel/locking/lockdep.c:894 [inline] WARNING: CPU: 1 PID: 24543 at kernel/locking/lockdep.c:895 register_lock_class+0xb5/0x600 kernel/locking/lockdep.c:1242 Modules linked in: CPU: 1 PID: 24543 Comm: syz-executor.4 Not tainted 5.10.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:894 [inline] RIP: 0010:register_lock_class+0xb5/0x600 kernel/locking/lockdep.c:1242 Code: 00 4d 8b 3f 4d 85 ff 0f 84 90 00 00 00 49 3b 47 40 75 ee 48 8b 45 18 49 39 87 b0 00 00 00 74 0c 48 81 7d 00 20 04 68 86 74 02 <0f> 0b 85 db 0f 84 50 01 00 00 41 83 e4 01 0f 85 46 01 00 00 83 fb RSP: 0018:ffffc90003f4fc28 EFLAGS: 00010006 RAX: ffffffff84c298ba RBX: 0000000000000000 RCX: 0000000000000046 RDX: 0000000000000339 RSI: 0000000000000000 RDI: ffffffff87c043c0 RBP: ffff88812069a160 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff86ddfce0 FS: 00007fe7240f5700(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000052dc6c CR3: 0000000120729000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_acquire+0x7e/0x1f20 kernel/locking/lockdep.c:4711 lock_acquire+0xd0/0x3f0 kernel/locking/lockdep.c:5437 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:359 [inline] lock_sock_nested+0x2c/0x90 net/core/sock.c:3049 lock_sock include/net/sock.h:1594 [inline] selinux_netlbl_socket_connect+0x13/0x40 security/selinux/netlabel.c:607 security_socket_connect+0x25/0x40 security/security.c:2126 __sys_connect_file+0x32/0x70 net/socket.c:1831 __sys_connect+0x91/0xc0 net/socket.c:1852 __do_sys_connect net/socket.c:1862 [inline] __se_sys_connect net/socket.c:1859 [inline] __x64_sys_connect+0x11/0x20 net/socket.c:1859 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 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:00007fe7240f4c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000002400 RCX: 000000000045deb9 RDX: 000000000000001c RSI: 0000000020000080 RDI: 0000000000000005 RBP: 000000000118c008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bfd4 R13: 00007fff4d75710f R14: 00007fe7240f59c0 R15: 000000000118bfd4