call_read_iter include/linux/fs.h:2102 [inline] new_sync_read fs/read_write.c:395 [inline] vfs_read+0x9fd/0xb80 fs/read_write.c:476 ksys_read+0x1f8/0x260 fs/read_write.c:619 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 ------------[ cut here ]------------ kernel BUG at include/linux/page-flags.h:315! invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 3 PID: 43 Comm: kcompactd0 Not tainted 6.8.0-syzkaller-11136-g66a27abac311 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:const_folio_flags+0x1bd/0x1f0 include/linux/page-flags.h:315 Code: 41 83 e4 01 44 89 e6 e8 b1 1c aa ff 45 84 e4 0f 85 c4 fe ff ff e8 23 22 aa ff 48 c7 c6 a0 ea 1a 8b 48 89 ef e8 34 33 ed ff 90 <0f> 0b e8 ac 69 06 00 e9 66 fe ff ff 48 89 ef e8 9f 69 06 00 eb b6 RSP: 0018:ffffc9000069f7f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffc9000069f6a0 RDX: ffff88801880a440 RSI: ffffffff81e3a56c RDI: ffffffff8b6e8320 RBP: ffffea00009ea400 R08: 0000000000000000 R09: fffffbfff1f3c022 R10: ffffffff8f9e0117 R11: 1ffffffff1af7ea9 R12: 0000000000000000 R13: ffffea00009ea4c0 R14: 0000000000027a93 R15: ffffc9000069fbe8 FS: 0000000000000000(0000) GS:ffff88802c500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558424131330 CR3: 000000000d57a000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_test_hugetlb include/linux/page-flags.h:875 [inline] PageHuge+0x219/0x2b0 mm/hugetlb.c:2174 isolate_migratepages_block+0x4a0/0x50b0 mm/compaction.c:1004 isolate_migratepages mm/compaction.c:2182 [inline] compact_zone+0x1a5c/0x41c0 mm/compaction.c:2629 compact_node+0x1a2/0x2d0 mm/compaction.c:2923 kcompactd+0x73c/0xdb0 mm/compaction.c:3221 kthread+0x2c1/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:const_folio_flags+0x1bd/0x1f0 include/linux/page-flags.h:315 Code: 41 83 e4 01 44 89 e6 e8 b1 1c aa ff 45 84 e4 0f 85 c4 fe ff ff e8 23 22 aa ff 48 c7 c6 a0 ea 1a 8b 48 89 ef e8 34 33 ed ff 90 <0f> 0b e8 ac 69 06 00 e9 66 fe ff ff 48 89 ef e8 9f 69 06 00 eb b6 RSP: 0018:ffffc9000069f7f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffc9000069f6a0 RDX: ffff88801880a440 RSI: ffffffff81e3a56c RDI: ffffffff8b6e8320 RBP: ffffea00009ea400 R08: 0000000000000000 R09: fffffbfff1f3c022 R10: ffffffff8f9e0117 R11: 1ffffffff1af7ea9 R12: 0000000000000000 R13: ffffea00009ea4c0 R14: 0000000000027a93 R15: ffffc9000069fbe8 FS: 0000000000000000(0000) GS:ffff88802c400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000b464a0 CR3: 000000001aac2000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400