Oops: general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067] CPU: 1 UID: 0 PID: 43 Comm: kcompactd0 Not tainted 6.12.0-rc5-syzkaller-00047-g4236f913808c #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:move_to_new_folio+0x1ae/0x700 mm/migrate.c:1050 Code: 48 c1 ea 03 80 3c 02 00 0f 85 d2 03 00 00 4c 8b ad 20 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7d 60 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 b6 03 00 00 4d 8b 6d 60 4d 85 ed 0f 84 d9 00 00 RSP: 0018:ffffc900009b74e8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffffea0000817380 RCX: ffffffff81f01a02 RDX: 000000000000000c RSI: ffffffff81f01a10 RDI: 0000000000000060 RBP: ffff888024bb6598 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea00015869c0 R13: 0000000000000000 R14: 0000000000000000 R15: ffffea0000817398 FS: 0000000000000000(0000) GS:ffff88806a700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c27a0c6 CR3: 000000000df7c000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: migrate_folio_move mm/migrate.c:1366 [inline] migrate_pages_batch+0x206a/0x31b0 mm/migrate.c:1897 migrate_pages_sync+0x131/0x910 mm/migrate.c:1963 migrate_pages+0x19ee/0x21f0 mm/migrate.c:2072 compact_zone+0x1f68/0x4280 mm/compaction.c:2641 compact_node+0x1a2/0x2d0 mm/compaction.c:2910 kcompactd+0x76e/0xde0 mm/compaction.c:3208 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 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:move_to_new_folio+0x1ae/0x700 mm/migrate.c:1050 Code: 48 c1 ea 03 80 3c 02 00 0f 85 d2 03 00 00 4c 8b ad 20 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7d 60 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 b6 03 00 00 4d 8b 6d 60 4d 85 ed 0f 84 d9 00 00 RSP: 0018:ffffc900009b74e8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffffea0000817380 RCX: ffffffff81f01a02 RDX: 000000000000000c RSI: ffffffff81f01a10 RDI: 0000000000000060 RBP: ffff888024bb6598 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea00015869c0 R13: 0000000000000000 R14: 0000000000000000 R15: ffffea0000817398 FS: 0000000000000000(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffcf9259fc0 CR3: 0000000060a5e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 d2 03 00 00 jne 0x3e0 e: 4c 8b ad 20 01 00 00 mov 0x120(%rbp),%r13 15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1c: fc ff df 1f: 49 8d 7d 60 lea 0x60(%r13),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 b6 03 00 00 jne 0x3ea 34: 4d 8b 6d 60 mov 0x60(%r13),%r13 38: 4d 85 ed test %r13,%r13 3b: 0f .byte 0xf 3c: 84 d9 test %bl,%cl