bisecting cause commit starting from d5beb3140f91b1c8a3d41b14d729aefa4dcc58bc building syzkaller on 1ab681a4bc3f87b09150fa23f9dd4e2c5f5c33cc testing commit d5beb3140f91b1c8a3d41b14d729aefa4dcc58bc with gcc (GCC) 10.2.1 20210217 kernel signature: abdedd669e875595a2fb90c1ceed01f3517945ccf84663a9eef88db8b5743cd1 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 inet_autobind run #3: crashed: WARNING: locking bug in selinux_netlbl_socket_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 inet_autobind run #8: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #9: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #10: crashed: WARNING: locking bug in inet_autobind run #11: crashed: WARNING: locking bug in inet_autobind run #12: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #13: crashed: WARNING: locking bug in ip6_datagram_connect run #14: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #15: crashed: WARNING: locking bug in ip6_datagram_connect run #16: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #17: OK run #18: OK run #19: OK testing release v5.9 testing commit bbf5c979011a099af5dc76498918ed7df445635b with gcc (GCC) 10.2.1 20210217 kernel signature: f02381bc8508f6f91f869ded65a62af42c0ba5cace52082998c54100c5066f8e run #0: crashed: WARNING: locking bug in inet_autobind run #1: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #2: crashed: WARNING: locking bug in inet_autobind run #3: crashed: WARNING: locking bug in ip6_datagram_connect run #4: crashed: WARNING: locking bug in ip6_datagram_connect run #5: crashed: WARNING: locking bug in ip6_datagram_connect run #6: crashed: WARNING: locking bug in ip6_datagram_connect run #7: crashed: WARNING: locking bug in inet_autobind run #8: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #9: OK testing release v5.8 testing commit bcf876870b95592b52519ed4aafcf9d95999bc9c with gcc (GCC) 8.4.1 20210217 kernel signature: 0429bd1d3713a76640a492e003590b050458668674de1694234bb410b138f3b5 run #0: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #1: crashed: WARNING: locking bug in ip6_datagram_connect run #2: crashed: WARNING: locking bug in ip6_datagram_connect run #3: crashed: WARNING: locking bug in selinux_netlbl_socket_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 inet_autobind run #9: OK testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 with gcc (GCC) 8.4.1 20210217 kernel signature: ff837d93373e7d4100e5b313e585055985ba6d479e41931fc6d3ce134866fa6e 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: crashed: WARNING: locking bug in ip6_datagram_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 inet_autobind run #8: OK run #9: OK testing release v5.6 testing commit 7111951b8d4973bda27ff663f2cf18b663d15b48 with gcc (GCC) 8.4.1 20210217 kernel signature: acdbb60baaf3fbdc7197757ff6b00e8fb61542b2da7ba1a2ccca58aff3d94b3f run #0: crashed: WARNING: locking bug in ip6_datagram_connect run #1: crashed: WARNING: locking bug in inet_autobind run #2: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #3: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #4: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK testing release v5.5 testing commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 with gcc (GCC) 8.4.1 20210217 kernel signature: 0b8c1ebb20c123d31958511d1b3589bee69b7b343a68d6dd2a81af456f689194 run #0: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #1: crashed: WARNING: locking bug in inet_autobind run #2: crashed: WARNING: locking bug in ip6_datagram_connect 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 testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.4.1 20210217 kernel signature: 5208de00feabab81097a906c69f88cafdff1fdc39589de0f15bae7e46a8a7371 run #0: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #1: crashed: WARNING: locking bug in ip6_datagram_connect run #2: crashed: WARNING: locking bug in ip6_datagram_connect run #3: crashed: WARNING: locking bug in ip6_datagram_connect run #4: crashed: WARNING: locking bug in ip6_datagram_connect run #5: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #6: crashed: WARNING: locking bug in ip6_datagram_connect run #7: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #8: crashed: WARNING: locking bug in ip6_datagram_connect run #9: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #10: crashed: WARNING: locking bug in ip6_datagram_connect run #11: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #12: crashed: WARNING: locking bug in ip6_datagram_connect run #13: crashed: WARNING: locking bug in inet_autobind run #14: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #15: crashed: WARNING: locking bug in ip6_datagram_connect run #16: crashed: WARNING: locking bug in selinux_netlbl_socket_connect run #17: crashed: WARNING: locking bug in inet_autobind run #18: OK run #19: OK testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.4.1 20210217 kernel signature: 8d963542b786e106a5937cd8e8a5b9d910b23c6d16a4a58a3759f822f39f397a all runs: boot failed: BUG: spinlock bad magic in nf_connlabels_get testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.4.1 20210217 kernel signature: c2ebabc80898388dbd46cff9d6876c7c4642a23adaad398c43696efbdcf9ca8a all runs: boot failed: can't ssh into the instance testing release v5.1 testing commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd with gcc (GCC) 8.4.1 20210217 kernel signature: 836dce2f3df9f95b400d080611edf23f0ace2070248e8382bda0da576d862b88 all runs: boot failed: can't ssh into the instance testing release v5.0 testing commit 1c163f4c7b3f621efff9b28a47abb36f7378d783 with gcc (GCC) 8.4.1 20210217 kernel signature: 31bcf510395e2bf93a99a06a4abc5f877c44a8971f2a9a7068cba12534b972be all runs: boot failed: can't ssh into the instance testing release v4.20 testing commit 8fe28cb58bcb235034b64cbbb7550a8a43fd88be with gcc (GCC) 8.4.1 20210217 kernel signature: 96b6d158ccc773db3e55b4a93c21325befe1d01fafca2c6ff8ccbecef5a0cc1a all runs: boot failed: can't ssh into the instance testing release v4.19 testing commit 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d with gcc (GCC) 8.4.1 20210217 kernel signature: 825a47b007b16006f7ed7a4bc2da6df910df554296535012ebb3195d7171ab2f all runs: boot failed: can't ssh into the instance testing release v4.18 testing commit 94710cac0ef4ee177a63b5227664b38c95bbf703 with gcc (GCC) 8.4.1 20210217 kernel signature: 793ea81863db3c2ad9177d2a4c32e56e6c1ac2794697aff54632549b8a8ef3b3 all runs: boot failed: can't ssh into the instance testing release v4.17 testing commit 29dcea88779c856c7dc92040a0c01233263101d4 with gcc (GCC) 8.4.1 20210217 ./security/selinux/include/classmap.h:247:2: error: #error New address family defined, please update secclass_map. testing release v4.16 testing commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda with gcc (GCC) 8.4.1 20210217 ./security/selinux/include/classmap.h:247:2: error: #error New address family defined, please update secclass_map. orc_dump.c:106:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] orc_dump.c:111:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] elf.c:135:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:140:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] testing release v4.15 testing commit d8a5b80568a9cb66810e75b182018e9edb68e8ff with gcc (GCC) 8.4.1 20210217 orc_dump.c:106:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] orc_dump.c:111:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:36:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:135:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:140:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] ./security/selinux/include/classmap.h:247:2: error: #error New address family defined, please update secclass_map. testing release v4.14 testing commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4 with gcc (GCC) 8.4.1 20210217 orc_dump.c:105:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] orc_dump.c:110:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:36:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:134:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:139:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] ./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map. testing release v4.13 testing commit 569dbb88e80deb68974ef6fdd6a13edb9d686261 with gcc (GCC) 8.4.1 20210217 pager.c:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:144:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:149:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] ./security/selinux/include/classmap.h:242:2: error: #error New address family defined, please update secclass_map. testing release v4.12 testing commit 6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c with gcc (GCC) 8.4.1 20210217 pager.c:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:141:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:146:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] ./security/selinux/include/classmap.h:238:2: error: #error New address family defined, please update secclass_map. testing release v4.11 testing commit a351e9b9fc24e982ec2f0e76379a49826036da12 with gcc (GCC) 7.5.0 elf.c:141:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:146:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] testing release v4.10 testing commit c470abd4fde40ea6a0846a2beab642a578c0b8cd with gcc (GCC) 5.5.0 tools/include/linux/log2.h:19:1: error: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Werror=attributes] pager.c:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:129:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:134:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] testing release v4.9 testing commit 69973b830859bc6529a7a0468ba0d80ee5117826 with gcc (GCC) 5.5.0 tools/include/linux/log2.h:19:1: error: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Werror=attributes] elf.c:129:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:134:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] testing release v4.8 testing commit c8d2bc9bc39ebea8437fd974fdbc21847bb897a3 with gcc (GCC) 5.5.0 tools/include/linux/log2.h:19:1: error: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Werror=attributes] elf.c:129:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:134:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:33:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] testing release v4.7 testing commit 523d939ef98fd712632d93a5a2b588e477a7565e with gcc (GCC) 5.5.0 tools/include/linux/log2.h:19:1: error: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Werror=attributes] elf.c:122:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:127:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:33:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] testing release v4.6 testing commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a with gcc (GCC) 5.5.0 tools/include/linux/log2.h:19:1: error: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Werror=attributes] pager.c:33:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] Reproducer flagged being flaky revisions tested: 14, total time: 3h40m41.102296542s (build: 1h16m16.293852233s, test: 2h20m38.229179238s) the crash already happened on the oldest tested release commit msg: Linux 5.4 crash: WARNING: locking bug in inet_autobind ------------[ cut here ]------------ WARNING: CPU: 1 PID: 21413 at kernel/locking/lockdep.c:841 look_up_lock_class kernel/locking/lockdep.c:840 [inline] WARNING: CPU: 1 PID: 21413 at kernel/locking/lockdep.c:841 register_lock_class+0x299/0x16d0 kernel/locking/lockdep.c:1185 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 21413 Comm: syz-executor.5 Not tainted 5.4.0-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+0x96/0xe0 lib/dump_stack.c:118 panic+0x2a1/0x52a kernel/panic.c:221 __warn.cold.10+0x25/0x25 kernel/panic.c:582 report_bug+0x1aa/0x260 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:179 [inline] fixup_bug arch/x86/kernel/traps.c:174 [inline] do_error_trap+0x12d/0x1e0 arch/x86/kernel/traps.c:272 do_invalid_op+0x31/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+0x299/0x16d0 kernel/locking/lockdep.c:1185 Code: 2d 38 da 0c 74 26 48 b8 00 00 00 00 00 fc ff df 48 89 ca 48 c1 ea 03 80 3c 02 00 0f 85 4a 0f 00 00 48 81 39 e0 15 81 8d 74 02 <0f> 0b 45 85 e4 0f 84 08 01 00 00 f6 04 24 01 0f 85 fe 00 00 00 41 RSP: 0018:ffff8880aa797a70 EFLAGS: 00010006 RAX: dffffc0000000000 RBX: ffffffff8df68a80 RCX: ffff8880a5eb68a0 RDX: 1ffff11014bd6d14 RSI: ffffffff8928a940 RDI: ffff8880a5eb68b8 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: ffff888097836500 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff893f4460 R15: 1ffff110154f2f57 __lock_acquire+0x105/0x4550 kernel/locking/lockdep.c:3837 lock_acquire+0x12e/0x360 kernel/locking/lockdep.c:4487 __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:343 [inline] lock_sock_nested+0x35/0xf0 net/core/sock.c:2938 lock_sock include/net/sock.h:1527 [inline] inet_autobind+0xe/0x150 net/ipv4/af_inet.c:179 inet_dgram_connect+0x1da/0x270 net/ipv4/af_inet.c:569 __sys_connect+0x1ef/0x270 net/socket.c:1828 __do_sys_connect net/socket.c:1839 [inline] __se_sys_connect net/socket.c:1836 [inline] __x64_sys_connect+0x6a/0xb0 net/socket.c:1836 do_syscall_64+0x8e/0x4e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465889 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe756a2c188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000055bfa8 RCX: 0000000000465889 RDX: 000000000000001c RSI: 0000000020000080 RDI: 0000000000000005 RBP: 00000000004af68d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bfa8 R13: 00007fffe6615e1f R14: 00007fe756a2c300 R15: 0000000000022000 Kernel Offset: disabled Rebooting in 86400 seconds..