general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 0 PID: 11205 Comm: syz.4.2932 Not tainted 6.1.118-syzkaller-00077-g3f924195e222 #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:2940 [inline] RIP: 0010:update_sit_entry+0x5db/0x1020 fs/f2fs/segment.c:2351 Code: 4d 98 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 c2 0a 83 ff 4c 8b 3b 4d 01 e7 4d 89 fc 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 d4 08 00 00 41 0f b6 1f 41 89 de 8b 45 RSP: 0018:ffffc90000cef168 EFLAGS: 00010202 RAX: 1ffff110221f3e44 RBX: ffff888110f9f220 RCX: 0000000000000041 RDX: ffff88813a1b0000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000cef1f0 R08: ffffffff8239ee4b R09: ffffffff8239e9ae R10: 0000000000000003 R11: ffff88813a1b0000 R12: 0000000000000002 R13: dffffc0000000000 R14: ffff8881152cc000 R15: 0000000000000012 FS: 00007f51bd8736c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3093d4 CR3: 000000011f705000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x1558/0x3ad0 fs/f2fs/segment.c:3368 __allocate_data_block fs/f2fs/data.c:1488 [inline] f2fs_map_blocks+0x13e5/0x4340 fs/f2fs/data.c:1674 f2fs_expand_inode_data+0x672/0xbf0 fs/f2fs/file.c:1802 f2fs_fallocate+0x427/0x7e0 fs/f2fs/file.c:1897 vfs_fallocate+0x492/0x570 fs/open.c:324 do_vfs_ioctl+0x2150/0x29a0 fs/ioctl.c:849 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl+0x99/0x190 fs/ioctl.c:856 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856 x64_sys_call+0x98/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17 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:0x7f51bc985d29 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:00007f51bd873038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f51bcb75fa0 RCX: 00007f51bc985d29 RDX: 00000000200000c0 RSI: 0000000040305828 RDI: 0000000000000004 RBP: 00007f51bca01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f51bcb75fa0 R15: 00007ffecf59daf8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2940 [inline] RIP: 0010:update_sit_entry+0x5db/0x1020 fs/f2fs/segment.c:2351 Code: 4d 98 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 c2 0a 83 ff 4c 8b 3b 4d 01 e7 4d 89 fc 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 d4 08 00 00 41 0f b6 1f 41 89 de 8b 45 RSP: 0018:ffffc90000cef168 EFLAGS: 00010202 RAX: 1ffff110221f3e44 RBX: ffff888110f9f220 RCX: 0000000000000041 RDX: ffff88813a1b0000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000cef1f0 R08: ffffffff8239ee4b R09: ffffffff8239e9ae R10: 0000000000000003 R11: ffff88813a1b0000 R12: 0000000000000002 R13: dffffc0000000000 R14: ffff8881152cc000 R15: 0000000000000012 FS: 00007f51bd8736c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2df03e CR3: 000000011f705000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 4d 98 rex.WRB cltq 2: 48 8d 5c c8 18 lea 0x18(%rax,%rcx,8),%rbx 7: 48 89 d8 mov %rbx,%rax a: 48 c1 e8 03 shr $0x3,%rax e: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 13: 74 08 je 0x1d 15: 48 89 df mov %rbx,%rdi 18: e8 c2 0a 83 ff call 0xff830adf 1d: 4c 8b 3b mov (%rbx),%r15 20: 4d 01 e7 add %r12,%r15 23: 4d 89 fc mov %r15,%r12 26: 49 c1 ec 03 shr $0x3,%r12 * 2a: 43 0f b6 04 2c movzbl (%r12,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 d4 08 00 00 jne 0x90b 37: 41 0f b6 1f movzbl (%r15),%ebx 3b: 41 89 de mov %ebx,%r14d 3e: 8b .byte 0x8b 3f: 45 rex.RB