bcachefs (loop0): check_inodes... done
bcachefs (loop0): resume_logged_ops... done
bcachefs (loop0): delete_dead_inodes... done
bcachefs (loop0): done starting filesystem
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 7496 Comm: syz.0.242 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:remove_migration_pte+0x369/0x2320
Code: 00 48 8d 43 20 48 89 44 24 68 49 8d 47 40 48 89 84 24 e8 00 00 00 4c 89 64 24 48 4c 8b b4 24 50 01 00 00 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 f7 e8 f8 3e ff ff 49 8b 06 48 89 44 24
RSP: 0018:ffffc90002a374c0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88810f2b9500 RCX: 1ffffd4000231006
RDX: ffffc9000f381000 RSI: 0000000000003724 RDI: 0000000000003725
RBP: ffffc90002a376b0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000546e50 R12: ffffea0001188008
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffea0001188000
FS:  00007f8c5f1d06c0(0000) GS:ffff8880b83fc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe17f5d2fc8 CR3: 000000012376e000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 rmap_walk_anon+0x553/0x730
 migrate_pages_batch+0x202e/0x35e0
 migrate_pages+0x1bcc/0x2930
 __se_sys_mbind+0xa47/0xc40
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8c5e38ec29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8c5f1d0038 EFLAGS: 00000246 ORIG_RAX: 00000000000000ed
RAX: ffffffffffffffda RBX: 00007f8c5e5d5fa0 RCX: 00007f8c5e38ec29
RDX: 0000000000000000 RSI: 0000000000600000 RDI: 0000200000000000
RBP: 00007f8c5e411e41 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8c5e5d6038 R14: 00007f8c5e5d5fa0 R15: 00007ffd220e3fe8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:remove_migration_pte+0x369/0x2320
Code: 00 48 8d 43 20 48 89 44 24 68 49 8d 47 40 48 89 84 24 e8 00 00 00 4c 89 64 24 48 4c 8b b4 24 50 01 00 00 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 f7 e8 f8 3e ff ff 49 8b 06 48 89 44 24
RSP: 0018:ffffc90002a374c0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88810f2b9500 RCX: 1ffffd4000231006
RDX: ffffc9000f381000 RSI: 0000000000003724 RDI: 0000000000003725
RBP: ffffc90002a376b0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000546e50 R12: ffffea0001188008
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffea0001188000
FS:  00007f8c5f1d06c0(0000) GS:ffff8880b83fc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe17f5d2fc8 CR3: 000000012376e000 CR4: 00000000000006f0
