bisecting cause commit starting from 4773acf3d4b50768bf08e9e97a204819e9ea0895 building syzkaller on 98682e5e2aefc9aad61354f4f3ac93be96002a2a testing commit 4773acf3d4b50768bf08e9e97a204819e9ea0895 with gcc (GCC) 10.2.1 20210217 kernel signature: 237011d55a8c5e309138bd80c3bd109c6ff03aa19620fab17e80eb0ebbb68204 all runs: crashed: WARNING in netlbl_cipsov4_add testing release v5.10 testing commit 2c85ebc57b3e1817b6ce1a6b703928e113a90442 with gcc (GCC) 10.2.1 20210217 kernel signature: 5f141e4ae086409e6817ce9d751cdfb7d552f8adb2d1ef3d6d87c18b4d1705fb all runs: crashed: WARNING in netlbl_cipsov4_add testing release v5.9 testing commit bbf5c979011a099af5dc76498918ed7df445635b with gcc (GCC) 10.2.1 20210217 kernel signature: e2e25caecac98c53dcc4037f7b7493ea80c7d8d6d1cace370152d06c198de71a all runs: crashed: WARNING in netlbl_cipsov4_add testing release v5.8 testing commit bcf876870b95592b52519ed4aafcf9d95999bc9c with gcc (GCC) 8.4.1 20210217 kernel signature: ebe503c532ccb3d1993aaef10f6bc2c8917bfe36c5635f4b67af9fe784be5408 all runs: crashed: WARNING in netlbl_cipsov4_add testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 with gcc (GCC) 8.4.1 20210217 kernel signature: 165c15419a41e1841f9e545c62b09764973faab07fd5dccba1741f2663589c9d all runs: crashed: WARNING in netlbl_cipsov4_add testing release v5.6 testing commit 7111951b8d4973bda27ff663f2cf18b663d15b48 with gcc (GCC) 8.4.1 20210217 kernel signature: 607b4d24bcd728fbbe58a31c361ba4de45c143eca8bdba2156ec671aa076d031 all runs: crashed: WARNING in netlbl_cipsov4_add testing release v5.5 testing commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 with gcc (GCC) 8.4.1 20210217 kernel signature: e3ea87a5cdcdc7a07a9f946f111325bc11fa802083fed683a999bd100237afe1 all runs: crashed: WARNING in netlbl_cipsov4_add testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.4.1 20210217 kernel signature: f9022fc8d1dc65754e8233407bdf81707e0e8782cdd07acb2c7e239e71fb8aa7 all runs: crashed: WARNING in netlbl_cipsov4_add testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.4.1 20210217 kernel signature: 9afac535adde0aac0bcb75468d72a58c44fc9c4c934ca98816eb18219faa432f 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: 95e3a7b0c5596d76463e8444a88f95ba032a1d51c5f84f3c540b7cdf423cdc2b 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: 47a06d801aff7f156d428698f81afec1369d9e079c1c4a17567fef5c07d0993c 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: 578a73029469ae44402e2122661a7e001f2ba2c2a5423c2fb05026dfdc39875d 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: ba316b35c42b5509c8b06205234023ba86dcc5248df87184ffaf98d21a299102 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: c072f87f68ad363a0df6c7eab99dec78302957e7abf0e85f7f4b8b3ce94cc5e6 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: fee7879d057df26dc4f6185ca8043bb87c3a04f122c14281cc5c61583d64474e all runs: boot failed: can't ssh into the instance testing release v4.17 testing commit 29dcea88779c856c7dc92040a0c01233263101d4 with gcc (GCC) 8.4.1 20210217 failed to run ["make" "-j" "64" "ARCH=x86_64" "CC=/syzkaller/shared/bisect_bin/gcc-8.1.0/bin/gcc" "bzImage"]: exit status 2 testing release v4.16 testing commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda 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] 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] elf.c:135:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:140: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] 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] elf.c:134:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:139: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] 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] 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] 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] 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.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] pager.c:33: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.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] revisions tested: 15, total time: 3h27m5.613124839s (build: 1h40m23.312165169s, test: 1h37m58.072095124s) the crash already happened on the oldest tested release commit msg: Linux 5.4 crash: WARNING in netlbl_cipsov4_add ------------[ cut here ]------------ WARNING: CPU: 1 PID: 10751 at mm/page_alloc.c:4738 __alloc_pages_nodemask+0x57f/0x820 mm/page_alloc.c:4738 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 10751 Comm: syz-executor.3 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:__alloc_pages_nodemask+0x57f/0x820 mm/page_alloc.c:4738 Code: 7e 0f 85 8f fd ff ff e8 4f 58 6c ff e9 85 fd ff ff 48 89 cf e8 72 78 f4 ff e9 73 fc ff ff 81 e7 00 20 00 00 0f 85 3c fe ff ff <0f> 0b e9 35 fe ff ff 0f 0b 48 c7 c7 c0 a7 23 8a e8 9c b5 ef 01 0f RSP: 0018:ffff88808b5274d8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 1ffff110116a4ecb RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000015 RDI: 0000000000000000 RBP: 1ffff110116a4e9f R08: dffffc0000000000 R09: ffffffff88990883 R10: dffffc0000000000 R11: ffff88808b5277d8 R12: 00000001e995e424 R13: 0000000000000015 R14: ffff88808b527678 R15: 0000000000000015 alloc_pages include/linux/gfp.h:532 [inline] kmalloc_order+0x21/0xc0 mm/slab_common.c:1304 kmalloc_order_trace+0x18/0x150 mm/slab_common.c:1320 kmalloc_array include/linux/slab.h:618 [inline] kcalloc include/linux/slab.h:629 [inline] netlbl_cipsov4_add_std net/netlabel/netlabel_cipso_v4.c:188 [inline] netlbl_cipsov4_add+0x5b5/0x2328 net/netlabel/netlabel_cipso_v4.c:416 genl_family_rcv_msg+0x5ff/0xf40 net/netlink/genetlink.c:629 genl_rcv_msg+0xb3/0x160 net/netlink/genetlink.c:654 netlink_rcv_skb+0x119/0x340 net/netlink/af_netlink.c:2477 genl_rcv+0x1f/0x30 net/netlink/genetlink.c:665 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x3fc/0x5c0 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x71e/0xb70 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:657 ___sys_sendmsg+0x653/0x950 net/socket.c:2311 __sys_sendmsg+0xce/0x170 net/socket.c:2356 do_syscall_64+0x8e/0x4e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465d99 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:00007ff98056a188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465d99 RDX: 0000000000004904 RSI: 0000000020000140 RDI: 0000000000000004 RBP: 00000000004bcf27 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffd3b22042f R14: 00007ff98056a300 R15: 0000000000022000 Kernel Offset: disabled Rebooting in 86400 seconds..