__do_compat_sys_ioctl+0x259/0x2b0 fs/ioctl.c:1007 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e ------------[ cut here ]------------ kernel BUG at mm/z3fold.c:1293! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 2 UID: 0 PID: 44 Comm: kcompactd0 Not tainted 6.12.0-rc3-syzkaller-00420-g715ca9dd687f #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:z3fold_page_migrate+0xea1/0x12d0 mm/z3fold.c:1293 Code: b0 93 ff 48 c7 c6 20 4d 5d 8b 48 89 ef e8 67 69 d9 ff 90 0f 0b e8 5f b0 93 ff 48 c7 c6 80 4d 5d 8b 48 89 ef e8 50 69 d9 ff 90 <0f> 0b e8 48 b0 93 ff 49 8b 6c 24 08 31 ff 48 89 eb 83 e3 01 48 89 RSP: 0018:ffffc900006af458 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88801e598000 RSI: ffffffff81f90980 RDI: ffff88801e598444 RBP: ffffea00007c5180 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff901ce54f R11: 0000000000000000 R12: ffffea000091b440 R13: ffffffff8b5d5560 R14: ffffea00007c51a8 R15: ffffea00007c5198 FS: 0000000000000000(0000) GS:ffff88802b600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f7336890 CR3: 0000000021cd0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 00000000e08e000c DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: move_to_new_folio+0x449/0x700 mm/migrate.c:1077 migrate_folio_move mm/migrate.c:1366 [inline] migrate_pages_batch+0x206a/0x31b0 mm/migrate.c:1897 migrate_pages_sync+0x4c9/0x8f0 mm/migrate.c:1990 migrate_pages+0x19ee/0x21f0 mm/migrate.c:2072 compact_zone+0x1f68/0x4280 mm/compaction.c:2641 kcompactd_do_work+0x2da/0xa20 mm/compaction.c:3087 kcompactd+0x8d7/0xde0 mm/compaction.c:3186 kthread+0x2c1/0x3a0 kernel/kthread.c:389 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:z3fold_page_migrate+0xea1/0x12d0 mm/z3fold.c:1293 Code: b0 93 ff 48 c7 c6 20 4d 5d 8b 48 89 ef e8 67 69 d9 ff 90 0f 0b e8 5f b0 93 ff 48 c7 c6 80 4d 5d 8b 48 89 ef e8 50 69 d9 ff 90 <0f> 0b e8 48 b0 93 ff 49 8b 6c 24 08 31 ff 48 89 eb 83 e3 01 48 89 RSP: 0018:ffffc900006af458 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88801e598000 RSI: ffffffff81f90980 RDI: ffff88801e598444 RBP: ffffea00007c5180 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff901ce54f R11: 0000000000000000 R12: ffffea000091b440 R13: ffffffff8b5d5560 R14: ffffea00007c51a8 R15: ffffea00007c5198 FS: 0000000000000000(0000) GS:ffff88802b700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f10b970000 CR3: 0000000024d28000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 00000000e08e000c DR6: 00000000ffff0ff0 DR7: 0000000000000600