F2FS-fs (loop3): Mounted with checkpoint version = 48b305e5 general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 4880 Comm: syz-executor.3 Not tainted 6.3.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:__replace_atomic_write_block+0xf6b/0x1b40 fs/f2fs/segment.c:260 Code: 98 20 06 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 04 36 10 fe 4c 8b 33 48 8b 54 24 40 48 89 d0 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 ff 02 00 00 44 8b 3a 0f 1f 44 00 00 e8 RSP: 0018:ffffc900157075a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88807be84d60 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc900157076d8 RBP: ffffc90015707790 R08: dffffc0000000000 R09: ffffc900157076c8 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92002ae0eda R13: ffffc900157076c0 R14: ffff88807be811d0 R15: dffffc0000000000 FS: 00007fb8cfea0700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020004402 CR3: 0000000078017000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __complete_revoke_list fs/f2fs/segment.c:273 [inline] __f2fs_commit_atomic_write fs/f2fs/segment.c:363 [inline] f2fs_commit_atomic_write+0x1342/0x15e0 fs/f2fs/segment.c:381 f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2165 [inline] __f2fs_ioctl+0x3a5e/0xb5b0 fs/f2fs/file.c:4169 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb8cf08c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb8cfea0168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb8cf1abf80 RCX: 00007fb8cf08c169 RDX: 0000000000000000 RSI: 000000000000f502 RDI: 0000000000000008 RBP: 00007fb8cf0e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdfa74e41f R14: 00007fb8cfea0300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__replace_atomic_write_block+0xf6b/0x1b40 fs/f2fs/segment.c:260 Code: 98 20 06 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 04 36 10 fe 4c 8b 33 48 8b 54 24 40 48 89 d0 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 ff 02 00 00 44 8b 3a 0f 1f 44 00 00 e8 RSP: 0018:ffffc900157075a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88807be84d60 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc900157076d8 RBP: ffffc90015707790 R08: dffffc0000000000 R09: ffffc900157076c8 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92002ae0eda R13: ffffc900157076c0 R14: ffff88807be811d0 R15: dffffc0000000000 FS: 00007fb8cfea0700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31e23000 CR3: 0000000078017000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 98 cwtl 1: 20 06 and %al,(%rsi) 3: 00 00 add %al,(%rax) 5: 48 89 d8 mov %rbx,%rax 8: 48 c1 e8 03 shr $0x3,%rax c: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 11: 74 08 je 0x1b 13: 48 89 df mov %rbx,%rdi 16: e8 04 36 10 fe callq 0xfe10361f 1b: 4c 8b 33 mov (%rbx),%r14 1e: 48 8b 54 24 40 mov 0x40(%rsp),%rdx 23: 48 89 d0 mov %rdx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 ff 02 00 00 jne 0x336 37: 44 8b 3a mov (%rdx),%r15d 3a: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 3f: e8 .byte 0xe8