F2FS-fs (loop2): invalid crc value F2FS-fs (loop2): Found nat_bits in checkpoint F2FS-fs (loop2): Start checkpoint disabled! F2FS-fs (loop2): Mounted with checkpoint version = 48b305e6 general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 1 PID: 479 Comm: syz.2.16 Not tainted 6.1.128-syzkaller-1167827-g5145d157731f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2940 [inline] RIP: 0010:update_sit_entry_for_alloc fs/f2fs/segment.c:2396 [inline] RIP: 0010:update_sit_entry+0x4f4/0x15f0 fs/f2fs/segment.c:2440 Code: 98 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 6a ea 82 ff 4c 8b 3b 4c 03 7d a8 4d 89 fe 49 c1 ee 03 <43> 0f b6 04 2e 84 c0 4d 89 ec 0f 85 68 0f 00 00 41 0f b6 1f 41 89 RSP: 0018:ffffc900009863f0 EFLAGS: 00010203 RAX: 1ffff1102378e621 RBX: ffff88811bc73108 RCX: 000000000000001e RDX: ffff88811a6d0000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900009864d0 R08: ffffffff823a552a R09: ffffffff823a50e0 R10: 0000000000000003 R11: ffff88811a6d0000 R12: dffffc0000000000 R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000014 FS: 00007fab196066c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fab18763320 CR3: 0000000109b0d000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x1558/0x3ad0 fs/f2fs/segment.c:3430 do_write_page+0x257/0xbb0 fs/f2fs/segment.c:3532 f2fs_outplace_write_data+0x1ec/0x460 fs/f2fs/segment.c:3605 f2fs_do_write_data_page+0xf11/0x1670 fs/f2fs/data.c:2796 f2fs_write_single_data_page+0xb4a/0x1c70 fs/f2fs/data.c:2913 f2fs_write_cache_pages fs/f2fs/data.c:3165 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3315 [inline] f2fs_write_data_pages+0x1676/0x2af0 fs/f2fs/data.c:3342 do_writepages+0x385/0x620 mm/page-writeback.c:2494 filemap_fdatawrite_wbc+0x153/0x1b0 mm/filemap.c:408 __filemap_fdatawrite_range mm/filemap.c:441 [inline] filemap_write_and_wait_range+0x1a4/0x290 mm/filemap.c:694 f2fs_flush_buffered_write fs/f2fs/file.c:4743 [inline] f2fs_file_write_iter+0x82b/0x2860 fs/f2fs/file.c:4951 do_iter_write+0x6e6/0xc40 fs/read_write.c:861 vfs_iter_write+0x7c/0xa0 fs/read_write.c:902 iter_file_splice_write+0x7f8/0xf90 fs/splice.c:685 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0xff/0x130 fs/splice.c:930 splice_direct_to_actor+0x4b4/0xbb0 fs/splice.c:885 do_splice_direct+0x27f/0x3c0 fs/splice.c:973 do_sendfile+0x613/0xfe0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x1ce/0x230 fs/read_write.c:1309 x64_sys_call+0x140/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:41 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fab1877fed9 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:00007fab19606058 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fab18945fa0 RCX: 00007fab1877fed9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005 RBP: 00007fab187f3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000fffe80 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fab18945fa0 R15: 00007fff88515c08 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2940 [inline] RIP: 0010:update_sit_entry_for_alloc fs/f2fs/segment.c:2396 [inline] RIP: 0010:update_sit_entry+0x4f4/0x15f0 fs/f2fs/segment.c:2440 Code: 98 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 6a ea 82 ff 4c 8b 3b 4c 03 7d a8 4d 89 fe 49 c1 ee 03 <43> 0f b6 04 2e 84 c0 4d 89 ec 0f 85 68 0f 00 00 41 0f b6 1f 41 89 RSP: 0018:ffffc900009863f0 EFLAGS: 00010203 RAX: 1ffff1102378e621 RBX: ffff88811bc73108 RCX: 000000000000001e RDX: ffff88811a6d0000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900009864d0 R08: ffffffff823a552a R09: ffffffff823a50e0 R10: 0000000000000003 R11: ffff88811a6d0000 R12: dffffc0000000000 R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000014 FS: 00007fab196066c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fab195e4fb8 CR3: 0000000109b0d000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 98 cwtl 1: 48 8d 5c c8 18 lea 0x18(%rax,%rcx,8),%rbx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 6a ea 82 ff call 0xff82ea86 1c: 4c 8b 3b mov (%rbx),%r15 1f: 4c 03 7d a8 add -0x58(%rbp),%r15 23: 4d 89 fe mov %r15,%r14 26: 49 c1 ee 03 shr $0x3,%r14 * 2a: 43 0f b6 04 2e movzbl (%r14,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 4d 89 ec mov %r13,%r12 34: 0f 85 68 0f 00 00 jne 0xfa2 3a: 41 0f b6 1f movzbl (%r15),%ebx 3e: 41 rex.B 3f: 89 .byte 0x89