bisecting cause commit starting from 7d900724913cb293620a05c5a3134710db95d0d9 building syzkaller on bfeda1b1077c9ffe6f9597cbae4b6a5d747b4695 testing commit 7d900724913cb293620a05c5a3134710db95d0d9 with gcc (GCC) 10.2.1 20210217 kernel signature: fbf7e72505cdf5e7340330cdee7458ac5e9a9fa4ea9cc42fdceb2ecf68ec8807 all runs: crashed: WARNING in smk_set_cipso testing release v5.11 testing commit f40ddce88593482919761f74910f42f4b84c004b with gcc (GCC) 10.2.1 20210217 kernel signature: 44f58b074a2b4030a1bedf2f1cdddcbbe15c92ffea3b784ca4f9f31b88987f51 all runs: crashed: WARNING in smk_set_cipso testing release v5.10 testing commit 2c85ebc57b3e1817b6ce1a6b703928e113a90442 with gcc (GCC) 10.2.1 20210217 kernel signature: 4742733baa9bf82e241d783d026dc2511126290e27e7df12714b205c43255576 all runs: crashed: WARNING in smk_set_cipso testing release v5.9 testing commit bbf5c979011a099af5dc76498918ed7df445635b with gcc (GCC) 10.2.1 20210217 kernel signature: c5db40808f8354789d304b4248372764a0a9e3bd6067aa6a6a0663ace87ac3ea all runs: crashed: WARNING in smk_set_cipso testing release v5.8 testing commit bcf876870b95592b52519ed4aafcf9d95999bc9c with gcc (GCC) 8.4.1 20210217 kernel signature: 5d5db905a29e886d4efedddc7c045cb6d7fa040cd3d9de48e0aa78c1d3357e75 all runs: crashed: WARNING in smk_set_cipso testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 with gcc (GCC) 8.4.1 20210217 kernel signature: 694927f270c924473baa1645cf3e46211382cdeb91db268c2363cc6797b41fe8 all runs: crashed: WARNING in smk_set_cipso testing release v5.6 testing commit 7111951b8d4973bda27ff663f2cf18b663d15b48 with gcc (GCC) 8.4.1 20210217 kernel signature: 465f1dc5ded474a9ba5e43cca9cc1f09bb05d55f63916e1ebe569728cad5a636 all runs: crashed: WARNING in smk_set_cipso testing release v5.5 testing commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 with gcc (GCC) 8.4.1 20210217 kernel signature: f1d2a0134f8956f9ec716cd240a833897b5a62b5431e35e60d334d883749072c all runs: crashed: WARNING in smk_set_cipso testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.4.1 20210217 kernel signature: 3f14fbf3ee94b7ec709f4176de692fad28379a6cfdd4afa08aa82c70055fb1ab all runs: crashed: WARNING in smk_set_cipso testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.4.1 20210217 kernel signature: 457310f91ce51f11704650ffedc537752ec21d945a9ab917b17d3db488e81e9f all runs: crashed: WARNING in smk_set_cipso testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.4.1 20210217 kernel signature: d72b319b5c0a1755226290b310bc5da8fa78ef184a54efbf54bf35811920753a all runs: crashed: WARNING in smk_set_cipso testing release v5.1 testing commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd with gcc (GCC) 8.4.1 20210217 kernel signature: e18d60d4abca9aa170fd650ee96b5d20dd778a0c0c8601a1bf629f9523bff87b all runs: crashed: WARNING in smk_set_cipso testing release v5.0 testing commit 1c163f4c7b3f621efff9b28a47abb36f7378d783 with gcc (GCC) 8.4.1 20210217 kernel signature: f4ab1fd68d4038dbaccea33c38e3381f646886b0064dd3932478472b03b29136 all runs: crashed: WARNING in smk_set_cipso testing release v4.20 testing commit 8fe28cb58bcb235034b64cbbb7550a8a43fd88be with gcc (GCC) 8.4.1 20210217 kernel signature: a6f28927d7f0a627b48c56bf4d9d780422f1f86c717c3940f7eac8c2a8db4cbe all runs: crashed: WARNING in smk_set_cipso testing release v4.19 testing commit 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d with gcc (GCC) 8.4.1 20210217 kernel signature: f7366c12af5a5079b02938cc19e89f59629b82d097c7465075fa8bb041149f41 all runs: crashed: WARNING in smk_set_cipso testing release v4.18 testing commit 94710cac0ef4ee177a63b5227664b38c95bbf703 with gcc (GCC) 8.4.1 20210217 kernel signature: 33c8cbdbf57053139238d3ec43b6fe95b7cd70b42eb3ab1430ccda788f7fbf6e all runs: crashed: WARNING in smk_set_cipso 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] 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] revisions tested: 16, total time: 2h39m33.323761913s (build: 1h45m38.198684939s, test: 48m49.803093952s) the crash already happened on the oldest tested release commit msg: Linux 4.18 crash: WARNING in smk_set_cipso batman_adv: batadv0: Interface activated: batadv_slave_1 IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready WARNING: CPU: 1 PID: 9968 at mm/page_alloc.c:4065 __alloc_pages_slowpath mm/page_alloc.c:4065 [inline] WARNING: CPU: 1 PID: 9968 at mm/page_alloc.c:4065 __alloc_pages_nodemask+0x1ce1/0x2780 mm/page_alloc.c:4389 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 9968 Comm: syz-executor.3 Not tainted 4.18.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+0x15a/0x20d lib/dump_stack.c:113 panic+0x1c6/0x36b kernel/panic.c:184 __warn.cold.7+0x120/0x168 kernel/panic.c:536 report_bug+0x1a1/0x200 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] fixup_bug arch/x86/kernel/traps.c:173 [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:992 RIP: 0010:__alloc_pages_slowpath mm/page_alloc.c:4065 [inline] RIP: 0010:__alloc_pages_nodemask+0x1ce1/0x2780 mm/page_alloc.c:4389 Code: fd ff ff 85 c0 0f 85 d1 f7 ff ff c7 85 0c fe ff ff 00 00 00 00 e9 a8 ec ff ff f7 85 24 fe ff ff 00 02 00 00 0f 85 cd e6 ff ff <0f> 0b e9 c6 e6 ff ff 8b 9d 44 fe ff ff ba 10 00 00 00 48 8b 8d 28 RSP: 0018:ffff8800a11a7710 EFLAGS: 00010246 RAX: ffff8800a11a7938 RBX: 0000000000000000 RCX: ffff88013fffd1f0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006040c0 RBP: ffff8800a11a7960 R08: 0000000000000000 R09: 00000000000f5bd5 R10: ffffed0047fff27c R11: ffff88023fff93e7 R12: ffff8800a0cc4a40 R13: ffff88013fffd1c0 R14: 0000000000000000 R15: 00000000006040c0 alloc_pages_current+0xd6/0x1b0 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:492 [inline] kmalloc_order+0x1f/0x70 mm/slab_common.c:1183 kmalloc_order_trace+0x1f/0x1b0 mm/slab_common.c:1194 kmalloc_large include/linux/slab.h:447 [inline] __kmalloc_track_caller+0x2d9/0x360 mm/slub.c:4285 memdup_user_nul+0x28/0xb0 mm/util.c:245 smk_set_cipso.isra.10+0x113/0x540 security/smack/smackfs.c:887 smk_write_cipso2+0x17/0x20 security/smack/smackfs.c:1034 __vfs_write+0xe3/0x880 fs/read_write.c:485 vfs_write+0x150/0x4f0 fs/read_write.c:549 ksys_write+0xcd/0x1b0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:607 do_syscall_64+0xda/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x466459 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:00007fc438554188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000000f0ff7f RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007fff59ba886f R14: 00007fc438554300 R15: 0000000000022000 Kernel Offset: disabled Rebooting in 86400 seconds..