exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] irqentry_exit_to_user_mode+0x79/0x280 kernel/entry/common.c:231 exc_page_fault+0x590/0x8c0 arch/x86/mm/fault.c:1542 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 ------------[ cut here ]------------ kernel BUG at mm/z3fold.c:1293! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 29 Comm: kcompactd1 Not tainted 6.12.0-syzkaller-gadc218676eef #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+0xc22/0x1170 mm/z3fold.c:1293 Code: ff 48 89 ef 48 c7 c6 e0 55 18 8c e8 d8 41 d5 ff 90 0f 0b e8 a0 c2 89 ff 48 8b 7c 24 10 48 c7 c6 40 56 18 8c e8 bf 41 d5 ff 90 <0f> 0b 48 85 db 0f 85 83 00 00 00 0f 1f 44 00 00 e8 79 c2 89 ff e9 RSP: 0018:ffffc900004fed38 EFLAGS: 00010246 RAX: 7630db8a91a65200 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c0acaa0 RDI: 0000000000000001 RBP: ffffea00013034c0 R08: ffffffff901d0def R09: 1ffffffff203a1bd R10: dffffc0000000000 R11: fffffbfff203a1be R12: ffffea00013034c0 R13: ffffffff8c185448 R14: 04fff00000010001 R15: 1ffffd4000260698 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f11e33860a0 CR3: 000000000e734000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: move_to_new_folio+0x9f3/0x1330 mm/migrate.c:1078 migrate_folio_move mm/migrate.c:1367 [inline] migrate_pages_batch+0x266b/0x36d0 mm/migrate.c:1898 migrate_pages_sync mm/migrate.c:1991 [inline] migrate_pages+0x2734/0x3560 mm/migrate.c:2073 compact_zone+0x3404/0x4af0 mm/compaction.c:2641 compact_node+0x2de/0x460 mm/compaction.c:2910 kcompactd+0x788/0x1530 mm/compaction.c:3208 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/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+0xc22/0x1170 mm/z3fold.c:1293 Code: ff 48 89 ef 48 c7 c6 e0 55 18 8c e8 d8 41 d5 ff 90 0f 0b e8 a0 c2 89 ff 48 8b 7c 24 10 48 c7 c6 40 56 18 8c e8 bf 41 d5 ff 90 <0f> 0b 48 85 db 0f 85 83 00 00 00 0f 1f 44 00 00 e8 79 c2 89 ff e9 RSP: 0018:ffffc900004fed38 EFLAGS: 00010246 RAX: 7630db8a91a65200 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c0acaa0 RDI: 0000000000000001 RBP: ffffea00013034c0 R08: ffffffff901d0def R09: 1ffffffff203a1bd R10: dffffc0000000000 R11: fffffbfff203a1be R12: ffffea00013034c0 R13: ffffffff8c185448 R14: 04fff00000010001 R15: 1ffffd4000260698 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1a8dcafba8 CR3: 000000004df88000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400