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: 5063 Comm: syz-executor.0 Not tainted 5.18.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:f2fs_compressed_file fs/f2fs/f2fs.h:3112 [inline] RIP: 0010:addrs_per_block fs/f2fs/f2fs.h:3144 [inline] RIP: 0010:__f2fs_commit_atomic_write fs/f2fs/segment.c:288 [inline] RIP: 0010:f2fs_commit_atomic_write+0x2af/0xff0 fs/f2fs/segment.c:361 Code: e8 03 48 01 d8 48 89 44 24 60 49 8d 87 b0 04 00 00 48 89 84 24 80 00 00 00 48 c1 e8 03 48 89 84 24 88 00 00 00 48 8b 44 24 60 <0f> b6 00 84 c0 74 08 3c 01 0f 8e 88 0b 00 00 41 0f b7 06 66 25 00 RSP: 0018:ffffc900035ffb00 EFLAGS: 00010216 RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: ffffffff88e3fe6c RDX: 1ffff1100d8bbd42 RSI: 0000000000000008 RDI: ffff88806c5dea10 RBP: ffff88806c5de9e8 R08: 0000000000000001 R09: ffff88807f07034f R10: ffffed100fe0e069 R11: 0000000000000001 R12: 00000000ffffffea R13: ffff88806c5de9c0 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f4c491b1700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4c491b1718 CR3: 0000000022cf0000 CR4: 0000000000350ef0 Call Trace: f2fs_ioc_commit_atomic_write+0x189/0x270 fs/f2fs/file.c:2105 __f2fs_ioctl+0x1cf6/0x9490 fs/f2fs/file.c:4152 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x123/0x190 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f4c4848c0a9 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:00007f4c491b1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4c485ac1f0 RCX: 00007f4c4848c0a9 RDX: 0000000000000000 RSI: 000000000000f502 RDI: 0000000000000004 RBP: 00007f4c484e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe8f9ffabf R14: 00007f4c491b1300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_compressed_file fs/f2fs/f2fs.h:3112 [inline] RIP: 0010:addrs_per_block fs/f2fs/f2fs.h:3144 [inline] RIP: 0010:__f2fs_commit_atomic_write fs/f2fs/segment.c:288 [inline] RIP: 0010:f2fs_commit_atomic_write+0x2af/0xff0 fs/f2fs/segment.c:361 Code: e8 03 48 01 d8 48 89 44 24 60 49 8d 87 b0 04 00 00 48 89 84 24 80 00 00 00 48 c1 e8 03 48 89 84 24 88 00 00 00 48 8b 44 24 60 <0f> b6 00 84 c0 74 08 3c 01 0f 8e 88 0b 00 00 41 0f b7 06 66 25 00 RSP: 0018:ffffc900035ffb00 EFLAGS: 00010216 RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: ffffffff88e3fe6c RDX: 1ffff1100d8bbd42 RSI: 0000000000000008 RDI: ffff88806c5dea10 RBP: ffff88806c5de9e8 R08: 0000000000000001 R09: ffff88807f07034f R10: ffffed100fe0e069 R11: 0000000000000001 R12: 00000000ffffffea R13: ffff88806c5de9c0 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f4c491b1700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557b62039000 CR3: 0000000022cf0000 CR4: 0000000000350ee0 ---------------- Code disassembly (best guess): 0: e8 03 48 01 d8 callq 0xd8014808 5: 48 89 44 24 60 mov %rax,0x60(%rsp) a: 49 8d 87 b0 04 00 00 lea 0x4b0(%r15),%rax 11: 48 89 84 24 80 00 00 mov %rax,0x80(%rsp) 18: 00 19: 48 c1 e8 03 shr $0x3,%rax 1d: 48 89 84 24 88 00 00 mov %rax,0x88(%rsp) 24: 00 25: 48 8b 44 24 60 mov 0x60(%rsp),%rax * 2a: 0f b6 00 movzbl (%rax),%eax <-- trapping instruction 2d: 84 c0 test %al,%al 2f: 74 08 je 0x39 31: 3c 01 cmp $0x1,%al 33: 0f 8e 88 0b 00 00 jle 0xbc1 39: 41 0f b7 06 movzwl (%r14),%eax 3d: 66 data16 3e: 25 .byte 0x25