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: 9984 Comm: syz-executor262 Not tainted 5.15.173-syzkaller-1077910-g6f0de8f8a165 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2930 [inline] RIP: 0010:update_sit_entry+0x5f3/0x1070 fs/f2fs/segment.c:2241 Code: c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 a5 e3 86 ff 4c 8b 33 4c 03 75 a8 4d 89 f4 49 c1 ec 03 49 bd 00 00 00 00 00 fc ff df <43> 0f b6 04 2c 84 c0 0f 85 0d 09 00 00 41 0f b6 1e 41 89 df 8b 45 RSP: 0018:ffffc90000c76c68 EFLAGS: 00010246 RAX: 1ffff11022f5373a RBX: ffff888117a9b9d0 RCX: 0000000000000037 RDX: ffff88811bf5bb40 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000c76cf0 R08: ffffffff822bd90d R09: ffffffff822bd46c R10: 0000000000000003 R11: ffff88811bf5bb40 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff110237998b0 FS: 00007f87f33406c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f87eb1dc000 CR3: 0000000122c04000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x10df/0x3410 fs/f2fs/segment.c:3442 __allocate_data_block+0x5be/0xb80 fs/f2fs/data.c:1404 f2fs_map_blocks+0x17c0/0x3ab0 fs/f2fs/data.c:1576 f2fs_iomap_begin+0x29d/0xc10 fs/f2fs/data.c:4191 iomap_iter+0x5b5/0xbe0 fs/iomap/iter.c:74 __iomap_dio_rw+0xb3a/0x1ed0 fs/iomap/direct-io.c:597 f2fs_dio_write_iter fs/f2fs/file.c:4586 [inline] f2fs_file_write_iter+0x1012/0x2920 fs/f2fs/file.c:4718 do_iter_readv_writev+0x58e/0x790 do_iter_write+0x1f1/0x760 fs/read_write.c:855 vfs_writev+0x2ac/0x560 fs/read_write.c:928 do_pwritev fs/read_write.c:1025 [inline] __do_sys_pwritev2 fs/read_write.c:1084 [inline] __se_sys_pwritev2+0x1c6/0x2c0 fs/read_write.c:1075 __x64_sys_pwritev2+0xe5/0x100 fs/read_write.c:1075 x64_sys_call+0x8b0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:329 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f87f33a6389 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f87f3340208 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f87f3433718 RCX: 00007f87f33a6389 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000007 RBP: 00007f87f3433710 R08: 0000000000000007 R09: 0000000000000003 R10: 0000000000002000 R11: 0000000000000246 R12: 00007f87f33ff68c R13: 8000000000000000 R14: 00007f87f33fa140 R15: 0034656c69662f2e Modules linked in: ---[ end trace ac24ba7b47d547a4 ]--- RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2930 [inline] RIP: 0010:update_sit_entry+0x5f3/0x1070 fs/f2fs/segment.c:2241 Code: c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 a5 e3 86 ff 4c 8b 33 4c 03 75 a8 4d 89 f4 49 c1 ec 03 49 bd 00 00 00 00 00 fc ff df <43> 0f b6 04 2c 84 c0 0f 85 0d 09 00 00 41 0f b6 1e 41 89 df 8b 45 RSP: 0018:ffffc90000c76c68 EFLAGS: 00010246 RAX: 1ffff11022f5373a RBX: ffff888117a9b9d0 RCX: 0000000000000037 RDX: ffff88811bf5bb40 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000c76cf0 R08: ffffffff822bd90d R09: ffffffff822bd46c R10: 0000000000000003 R11: ffff88811bf5bb40 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff110237998b0 FS: 00007f87f33406c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056200ab00b88 CR3: 0000000122c04000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c1 e8 03 shr $0x3,%eax 3: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 8: 74 08 je 0x12 a: 48 89 df mov %rbx,%rdi d: e8 a5 e3 86 ff call 0xff86e3b7 12: 4c 8b 33 mov (%rbx),%r14 15: 4c 03 75 a8 add -0x58(%rbp),%r14 19: 4d 89 f4 mov %r14,%r12 1c: 49 c1 ec 03 shr $0x3,%r12 20: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 27: fc ff df * 2a: 43 0f b6 04 2c movzbl (%r12,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 0d 09 00 00 jne 0x944 37: 41 0f b6 1e movzbl (%r14),%ebx 3b: 41 89 df mov %ebx,%r15d 3e: 8b .byte 0x8b 3f: 45 rex.RB