process_one_work+0x958/0x1b30 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 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 ------------[ cut here ]------------ kernel BUG at mm/z3fold.c:1293! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 2 UID: 0 PID: 10331 Comm: syz.3.1271 Not tainted 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #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: be 93 ff 48 c7 c6 60 4c 5d 8b 48 89 ef e8 c7 6b d9 ff 90 0f 0b e8 1f be 93 ff 48 c7 c6 c0 4c 5d 8b 48 89 ef e8 b0 6b d9 ff 90 <0f> 0b e8 08 be 93 ff 49 8b 6c 24 08 31 ff 48 89 eb 83 e3 01 48 89 RSP: 0000:ffffc9000649efa8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90003299000 RDX: 0000000000040000 RSI: ffffffff81f8fb00 RDI: ffff888025818444 RBP: ffffea000185aec0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff901cd74f R11: 0000000000000000 R12: ffffea0001d4c0c0 R13: ffffffff8b5d54a0 R14: ffffea000185aee8 R15: ffffea000185aed8 FS: 0000000000000000(0000) GS:ffff88802b600000(0063) knlGS:00000000f5776b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f7499820 CR3: 000000004e954000 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: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 compact_zone_order+0x16b/0x240 mm/compaction.c:2776 try_to_compact_pages+0x358/0xa80 mm/compaction.c:2837 __alloc_pages_direct_compact+0x138/0x590 mm/page_alloc.c:3666 __alloc_pages_slowpath mm/page_alloc.c:4369 [inline] __alloc_pages_noprof+0xbef/0x25a0 mm/page_alloc.c:4746 alloc_pages_mpol_noprof+0x2c9/0x610 mm/mempolicy.c:2265 io_mem_alloc_compound io_uring/memmap.c:28 [inline] io_pages_map+0xe1/0x510 io_uring/memmap.c:72 io_allocate_scq_urings io_uring/io_uring.c:3445 [inline] io_uring_create io_uring/io_uring.c:3631 [inline] io_uring_setup+0x15c4/0x3750 io_uring/io_uring.c:3744 __do_sys_io_uring_setup io_uring/io_uring.c:3771 [inline] __se_sys_io_uring_setup io_uring/io_uring.c:3765 [inline] __ia32_sys_io_uring_setup+0x97/0x140 io_uring/io_uring.c:3765 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 RIP: 0023:0xf7ff5579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f577651c EFLAGS: 00000246 ORIG_RAX: 00000000000001a9 RAX: ffffffffffffffda RBX: 0000000000006908 RCX: 0000000020000340 RDX: 00000000f72cd2f4 RSI: 0000000000000001 RDI: 00000000f577657c RBP: 0000000020000140 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:z3fold_page_migrate+0xea1/0x12d0 mm/z3fold.c:1293 Code: be 93 ff 48 c7 c6 60 4c 5d 8b 48 89 ef e8 c7 6b d9 ff 90 0f 0b e8 1f be 93 ff 48 c7 c6 c0 4c 5d 8b 48 89 ef e8 b0 6b d9 ff 90 <0f> 0b e8 08 be 93 ff 49 8b 6c 24 08 31 ff 48 89 eb 83 e3 01 48 89 RSP: 0000:ffffc9000649efa8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90003299000 RDX: 0000000000040000 RSI: ffffffff81f8fb00 RDI: ffff888025818444 RBP: ffffea000185aec0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff901cd74f R11: 0000000000000000 R12: ffffea0001d4c0c0 R13: ffffffff8b5d54a0 R14: ffffea000185aee8 R15: ffffea000185aed8 FS: 0000000000000000(0000) GS:ffff88802b700000(0063) knlGS:00000000f5776b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000563e31329f5e CR3: 000000004e954000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi