ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ------------[ cut here ]------------ kernel BUG at mm/z3fold.c:1293! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 3 UID: 0 PID: 45 Comm: kcompactd1 Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 PREEMPT(full) 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+0xc6b/0x13b0 mm/z3fold.c:1293 Code: a5 92 ff 48 c7 c6 c0 0e 7e 8b 48 89 ef e8 dd 70 d9 ff 90 0f 0b e8 35 a5 92 ff 48 c7 c6 20 0f 7e 8b 48 89 ef e8 c6 70 d9 ff 90 <0f> 0b e8 1e a5 92 ff 48 8d bb a0 00 00 00 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc900006c7430 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88804129c880 RSI: ffffffff8228506a RDI: ffff88804129ccc4 RBP: ffffea000131f2c0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90629217 R11: 0000000000000000 R12: ffffea0001fb9d00 R13: ffffea000131f2e8 R14: 0000000000000001 R15: ffffea000131f2d8 FS: 0000000000000000(0000) GS:ffff888097f5a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f71837f0 CR3: 0000000025cc4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: move_to_new_folio+0x449/0x700 mm/migrate.c:1069 migrate_folio_move mm/migrate.c:1358 [inline] migrate_folios_move mm/migrate.c:1710 [inline] migrate_pages_batch+0x201d/0x31a0 mm/migrate.c:1957 migrate_pages_sync+0x4c5/0x8a0 mm/migrate.c:2014 migrate_pages+0x1b28/0x2350 mm/migrate.c:2096 compact_zone+0x1f6d/0x4220 mm/compaction.c:2663 compact_node+0x1a4/0x2d0 mm/compaction.c:2932 kcompactd+0x762/0xea0 mm/compaction.c:3227 kthread+0x3a4/0x760 kernel/kthread.c:464 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:z3fold_page_migrate+0xc6b/0x13b0 mm/z3fold.c:1293 Code: a5 92 ff 48 c7 c6 c0 0e 7e 8b 48 89 ef e8 dd 70 d9 ff 90 0f 0b e8 35 a5 92 ff 48 c7 c6 20 0f 7e 8b 48 89 ef e8 c6 70 d9 ff 90 <0f> 0b e8 1e a5 92 ff 48 8d bb a0 00 00 00 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc900006c7430 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88804129c880 RSI: ffffffff8228506a RDI: ffff88804129ccc4 RBP: ffffea000131f2c0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90629217 R11: 0000000000000000 R12: ffffea0001fb9d00 R13: ffffea000131f2e8 R14: 0000000000000001 R15: ffffea000131f2d8 FS: 0000000000000000(0000) GS:ffff888097f5a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f71837f0 CR3: 00000000658be000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400