general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 881 Comm: syz-executor389 Not tainted 5.15.168-syzkaller-00719-g101e665d55a8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 45 e4 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:ffffc9000283ec68 EFLAGS: 00010246
RAX: 1ffff1102205f23a RBX: ffff8881102f91d0 RCX: 0000000000000037
RDX: ffff888119f82780 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000283ecf0 R08: ffffffff822bd7dd R09: ffffffff822bd33c
R10: 0000000000000003 R11: ffff888119f82780 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff110237980b0
FS: 00007f75466366c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75466f0528 CR3: 0000000118e55000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
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:0x7f754669d469
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1a 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:00007f7546636208 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f754672a758 RCX: 00007f754669d469
RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000008
RBP: 00007f754672a750 R08: 0000000000000007 R09: 0000000000000003
R10: 0000000000002000 R11: 0000000000000246 R12: 00007f75466f668c
R13: 00007f75466f1140 R14: 0034656c69662f2e R15: 3435313230386c6e
</TASK>
Modules linked in:
---[ end trace da080ec9267669fd ]---
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 45 e4 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:ffffc9000283ec68 EFLAGS: 00010246
RAX: 1ffff1102205f23a RBX: ffff8881102f91d0 RCX: 0000000000000037
RDX: ffff888119f82780 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000283ecf0 R08: ffffffff822bd7dd R09: ffffffff822bd33c
R10: 0000000000000003 R11: ffff888119f82780 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff110237980b0
FS: 00007f75466366c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75466f0528 CR3: 0000000118e55000 CR4: 00000000003506a0
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 45 e4 86 ff call 0xff86e457
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