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: 7865 Comm: syz.1.16540 Not tainted 6.12.0-rc3-syzkaller-00217-g4d939780b705 #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: ba 93 ff 48 c7 c6 60 4c 5d 8b 48 89 ef e8 77 69 d9 ff 90 0f 0b e8 ff b9 93 ff 48 c7 c6 c0 4c 5d 8b 48 89 ef e8 60 69 d9 ff 90 <0f> 0b e8 e8 b9 93 ff 49 8b 6c 24 08 31 ff 48 89 eb 83 e3 01 48 89 RSP: 0018:ffffc900064a6fb8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc900248c5000 RDX: 0000000000040000 RSI: ffffffff81f8ffe0 RDI: ffff8880296d0444 RBP: ffffea000124a2c0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff901ce58f R11: 0000000000000000 R12: ffffea0001e36bc0 R13: ffffffff8b5d54a0 R14: ffffea000124a2e8 R15: ffffea000124a2d8 FS: 0000000000000000(0000) GS:ffff88802b600000(0063) knlGS:00000000f5766b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007f94baa35130 CR3: 00000000686a2000 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:3470 [inline] io_uring_create io_uring/io_uring.c:3631 [inline] io_uring_setup+0x17c2/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_int80_emulation+0x104/0x200 arch/x86/entry/common.c:253 asm_int80_emulation+0x1a/0x20 arch/x86/include/asm/idtentry.h:626 RIP: 0023:0xf7fe1579 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:00000000f576651c EFLAGS: 00000202 ORIG_RAX: 00000000000001a9 RAX: ffffffffffffffda RBX: 0000000000003667 RCX: 0000000020000540 RDX: 00000000f72bd2f4 RSI: 0000000000000001 RDI: 00000000f576657c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 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: ba 93 ff 48 c7 c6 60 4c 5d 8b 48 89 ef e8 77 69 d9 ff 90 0f 0b e8 ff b9 93 ff 48 c7 c6 c0 4c 5d 8b 48 89 ef e8 60 69 d9 ff 90 <0f> 0b e8 e8 b9 93 ff 49 8b 6c 24 08 31 ff 48 89 eb 83 e3 01 48 89 RSP: 0018:ffffc900064a6fb8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc900248c5000 RDX: 0000000000040000 RSI: ffffffff81f8ffe0 RDI: ffff8880296d0444 RBP: ffffea000124a2c0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff901ce58f R11: 0000000000000000 R12: ffffea0001e36bc0 R13: ffffffff8b5d54a0 R14: ffffea000124a2e8 R15: ffffea000124a2d8 FS: 0000000000000000(0000) GS:ffff88802b600000(0063) knlGS:00000000f5766b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007fb9cfe9402c CR3: 00000000686a2000 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