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: 1 UID: 0 PID: 10689 Comm: syz.2.1295 Not tainted 6.12.0-rc1-syzkaller-00306-g27cc6fdf7201 #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: bc 93 ff 48 c7 c6 60 4c 5d 8b 48 89 ef e8 e7 6a d9 ff 90 0f 0b e8 ff bb 93 ff 48 c7 c6 c0 4c 5d 8b 48 89 ef e8 d0 6a d9 ff 90 <0f> 0b e8 e8 bb 93 ff 49 8b 6c 24 08 31 ff 48 89 eb 83 e3 01 48 89 RSP: 0018:ffffc90020a8ec98 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc900288d2000 RDX: 0000000000040000 RSI: ffffffff81f8ebd0 RDI: ffff888023c5ccc4 RBP: ffffea0001993c00 R08: 0000000000000000 R09: fffffbfff20399d1 R10: ffffffff901cce8f R11: 0000000000000000 R12: ffffea0001d7b500 R13: ffffffff8b5d54a0 R14: ffffea0001993c28 R15: ffffea0001993c18 FS: 0000000000000000(0000) GS:ffff88802b500000(0063) knlGS:00000000f5715b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000200302f8 CR3: 00000000003f4000 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+0xbfe/0x25c0 mm/page_alloc.c:4746 __folio_alloc_noprof+0x11/0x1a0 mm/page_alloc.c:4765 alloc_buddy_hugetlb_folio.isra.0+0xbe/0x330 mm/hugetlb.c:2024 alloc_fresh_hugetlb_folio+0x25c/0x300 mm/hugetlb.c:2095 alloc_migrate_hugetlb_folio mm/hugetlb.c:2349 [inline] alloc_hugetlb_folio_nodemask+0x14c/0x3c0 mm/hugetlb.c:2431 alloc_migration_target_by_mpol+0x3f7/0x490 mm/mempolicy.c:1230 unmap_and_move_huge_page mm/migrate.c:1464 [inline] migrate_hugetlbs mm/migrate.c:1646 [inline] migrate_pages+0x69a/0x21f0 mm/migrate.c:2044 do_mbind+0x6d2/0xe90 mm/mempolicy.c:1390 kernel_mbind+0x1ef/0x200 mm/mempolicy.c:1533 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:0xf7fb6579 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:00000000f571556c EFLAGS: 00000296 ORIG_RAX: 0000000000000112 RAX: ffffffffffffffda RBX: 0000000020001000 RCX: 0000000000800000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000002 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: bc 93 ff 48 c7 c6 60 4c 5d 8b 48 89 ef e8 e7 6a d9 ff 90 0f 0b e8 ff bb 93 ff 48 c7 c6 c0 4c 5d 8b 48 89 ef e8 d0 6a d9 ff 90 <0f> 0b e8 e8 bb 93 ff 49 8b 6c 24 08 31 ff 48 89 eb 83 e3 01 48 89 RSP: 0018:ffffc90020a8ec98 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc900288d2000 RDX: 0000000000040000 RSI: ffffffff81f8ebd0 RDI: ffff888023c5ccc4 RBP: ffffea0001993c00 R08: 0000000000000000 R09: fffffbfff20399d1 R10: ffffffff901cce8f R11: 0000000000000000 R12: ffffea0001d7b500 R13: ffffffff8b5d54a0 R14: ffffea0001993c28 R15: ffffea0001993c18 FS: 0000000000000000(0000) GS:ffff88802b500000(0063) knlGS:00000000f5715b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000200302f8 CR3: 00000000003f4000 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