exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xaea/0x2d60 kernel/exit.c:954 do_group_exit+0xd3/0x2a0 kernel/exit.c:1103 get_signal+0x24cf/0x26a0 kernel/signal.c:3035 arch_do_signal_or_restart+0x8f/0x7d0 arch/x86/kernel/signal.c:337 ------------[ 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-02665-g1e26c5e28ca5 #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: 9b 92 ff 48 c7 c6 00 14 7e 8b 48 89 ef e8 dd 70 d9 ff 90 0f 0b e8 15 9b 92 ff 48 c7 c6 60 14 7e 8b 48 89 ef e8 c6 70 d9 ff 90 <0f> 0b e8 fe 9a 92 ff 48 8d bb a0 00 00 00 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc9000070f430 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888040af4880 RSI: ffffffff8228767a RDI: ffff888040af4cc4 RBP: ffffea000159d000 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90627917 R11: 0000000000000000 R12: ffffea0001bf11c0 R13: ffffea000159d028 R14: 0000000000000001 R15: ffffea000159d018 FS: 0000000000000000(0000) GS:ffff888097f5a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f7233520 CR3: 00000000239f0000 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: 9b 92 ff 48 c7 c6 00 14 7e 8b 48 89 ef e8 dd 70 d9 ff 90 0f 0b e8 15 9b 92 ff 48 c7 c6 60 14 7e 8b 48 89 ef e8 c6 70 d9 ff 90 <0f> 0b e8 fe 9a 92 ff 48 8d bb a0 00 00 00 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc9000070f430 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888040af4880 RSI: ffffffff8228767a RDI: ffff888040af4cc4 RBP: ffffea000159d000 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90627917 R11: 0000000000000000 R12: ffffea0001bf11c0 R13: ffffea000159d028 R14: 0000000000000001 R15: ffffea000159d018 FS: 0000000000000000(0000) GS:ffff888097f5a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f7233520 CR3: 00000000239f0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400