process_one_work+0x902/0x1a30 kernel/workqueue.c:3254 process_scheduled_works kernel/workqueue.c:3335 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3416 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:244 ------------[ cut here ]------------ kernel BUG at include/linux/page-flags.h:315! invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 PID: 42 Comm: kcompactd0 Not tainted 6.9.0-rc3-syzkaller-00023-g2c71fdf02a95 #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 21 ea a9 ff 45 84 e4 0f 85 c4 fe ff ff e8 93 ef a9 ff 48 c7 c6 20 f0 1a 8b 48 89 ef e8 34 2d ed ff 90 <0f> 0b e8 9c 6b 06 00 e9 66 fe ff ff 48 89 ef e8 8f 6b 06 00 eb b6 RSP: 0018:ffffc9000068f7f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffc9000068f6a0 RDX: ffff888018872440 RSI: ffffffff81e4667c RDI: ffffffff8b6f0a60 RBP: ffffea000048c000 R08: 0000000000000000 R09: fffffbfff1f3aaea R10: ffffffff8f9d5757 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000012340 R14: ffffea000048d000 R15: ffffc9000068fbe8 FS: 0000000000000000(0000) GS:ffff88802c200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f743b020 CR3: 000000005062a000 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+0x4a2/0x4fa0 mm/compaction.c:1004 isolate_migratepages mm/compaction.c:2182 [inline] compact_zone+0x1a5c/0x4280 mm/compaction.c:2629 compact_node+0x1a2/0x2d0 mm/compaction.c:2923 kcompactd+0x76e/0xde0 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:244 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 21 ea a9 ff 45 84 e4 0f 85 c4 fe ff ff e8 93 ef a9 ff 48 c7 c6 20 f0 1a 8b 48 89 ef e8 34 2d ed ff 90 <0f> 0b e8 9c 6b 06 00 e9 66 fe ff ff 48 89 ef e8 8f 6b 06 00 eb b6 RSP: 0018:ffffc9000068f7f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffc9000068f6a0 RDX: ffff888018872440 RSI: ffffffff81e4667c RDI: ffffffff8b6f0a60 RBP: ffffea000048c000 R08: 0000000000000000 R09: fffffbfff1f3aaea R10: ffffffff8f9d5757 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000012340 R14: ffffea000048d000 R15: ffffc9000068fbe8 FS: 0000000000000000(0000) GS:ffff88802c200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f748b000 CR3: 000000006358a000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400