kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:763 [inline] slab_alloc_node mm/slab.c:3237 [inline] __kmem_cache_alloc_node+0x163/0x460 mm/slab.c:3521 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0x49/0x90 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] tomoyo_realpath_from_path+0xb9/0x710 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x241/0x580 security/tomoyo/file.c:723 security_file_ioctl+0x72/0xb0 security/security.c:2647 __do_sys_ioctl fs/ioctl.c:865 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0xbb/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b ------------[ cut here ]------------ kernel BUG at include/linux/page-flags.h:314! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 24501 Comm: syz-executor.5 Not tainted 6.7.0-rc4-syzkaller-00039-g9ace34a8e446 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:folio_flags+0x1b9/0x1f0 include/linux/page-flags.h:314 Code: 41 83 e4 01 44 89 e6 e8 b5 91 b0 ff 45 84 e4 0f 85 c8 fe ff ff e8 77 96 b0 ff 48 c7 c6 80 59 da 8a 48 89 ef e8 98 f8 ee ff 90 <0f> 0b e8 c0 79 06 00 e9 6a fe ff ff 48 89 ef e8 b3 79 06 00 eb b6 RSP: 0018:ffffc90004567208 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffc90004567068 RDX: ffff88803bba4080 RSI: ffffffff81d5e9f8 RDI: ffffffff8b2ee5e0 RBP: ffffea0000aad100 R08: 0000000000000000 R09: fffffbfff1e30e52 R10: ffffffff8f187297 R11: 0000000000000000 R12: 0000000000000000 R13: ffffea0000aaccc0 R14: ffffea0000aad100 R15: 000000000002ab44 FS: 00007fa8d1aa16c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7b72b76198 CR3: 000000006af62000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_test_hugetlb include/linux/page-flags.h:854 [inline] PageHuge+0x215/0x2b0 mm/hugetlb.c:2166 isolate_migratepages_block+0x61b/0x4a60 mm/compaction.c:949 isolate_migratepages mm/compaction.c:2052 [inline] compact_zone+0x18ef/0x3f80 mm/compaction.c:2508 compact_node+0x13e/0x1e0 mm/compaction.c:2829 compact_nodes mm/compaction.c:2842 [inline] sysctl_compaction_handler mm/compaction.c:2888 [inline] sysctl_compaction_handler+0x11b/0x1c0 mm/compaction.c:2875 proc_sys_call_handler+0x4c6/0x6f0 fs/proc/proc_sysctl.c:600 call_write_iter include/linux/fs.h:2020 [inline] do_iter_readv_writev+0x21e/0x3c0 fs/read_write.c:735 do_iter_write+0x17f/0x7f0 fs/read_write.c:860 vfs_iter_write+0x7a/0xb0 fs/read_write.c:901 iter_file_splice_write+0x698/0xc00 fs/splice.c:736 do_splice_from fs/splice.c:933 [inline] direct_splice_actor+0x118/0x180 fs/splice.c:1142 splice_direct_to_actor+0x347/0xa30 fs/splice.c:1088 do_splice_direct+0x1af/0x280 fs/splice.c:1194 do_sendfile+0xb3e/0x1310 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1316 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x155/0x220 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fa8d0c7cba9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa8d1aa10c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fa8d0d9bf80 RCX: 00007fa8d0c7cba9 RDX: 00000000200000c0 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00007fa8d0cc847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa8d0d9bf80 R15: 00007ffccb18ea88 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_flags+0x1b9/0x1f0 include/linux/page-flags.h:314 Code: 41 83 e4 01 44 89 e6 e8 b5 91 b0 ff 45 84 e4 0f 85 c8 fe ff ff e8 77 96 b0 ff 48 c7 c6 80 59 da 8a 48 89 ef e8 98 f8 ee ff 90 <0f> 0b e8 c0 79 06 00 e9 6a fe ff ff 48 89 ef e8 b3 79 06 00 eb b6 RSP: 0018:ffffc90004567208 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffc90004567068 RDX: ffff88803bba4080 RSI: ffffffff81d5e9f8 RDI: ffffffff8b2ee5e0 RBP: ffffea0000aad100 R08: 0000000000000000 R09: fffffbfff1e30e52 R10: ffffffff8f187297 R11: 0000000000000000 R12: 0000000000000000 R13: ffffea0000aaccc0 R14: ffffea0000aad100 R15: 000000000002ab44 FS: 00007fa8d1aa16c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32123000 CR3: 000000006af62000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400