general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 PID: 634 Comm: syz.9.7916 Not tainted 5.15.189-syzkaller-00091-gf32b52534f1d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:f2fs_test_and_clear_bit fs/f2fs/f2fs.h:2955 [inline] RIP: 0010:update_sit_entry+0x619/0xf70 fs/f2fs/segment.c:2299 Code: 00 00 49 8d 5d 18 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 f5 4d 92 ff 48 8b 1b 48 03 5d b0 48 89 d8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 5e 08 00 00 44 0f b6 33 0f b6 45 c7 44 RSP: 0018:ffffc90000a47148 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 000000000000000a RCX: ffff88812dd83b40 RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000a471c8 R08: dffffc0000000000 R09: ffffed1022775410 R10: ffffed1022775410 R11: 1ffff1102277540f R12: dffffc0000000000 R13: ffff88812cec79e0 R14: 0000000000000080 R15: ffff888113baa000 FS: 00007f6becdf36c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff93f54e18 CR3: 0000000117e17000 CR4: 00000000003506b0 DR0: 000000000000a7d0 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: f2fs_invalidate_blocks+0x2a3/0x390 fs/f2fs/segment.c:2330 f2fs_truncate_data_blocks_range+0x7b1/0xeb0 fs/f2fs/file.c:623 f2fs_truncate_data_blocks+0xf3/0x130 fs/f2fs/file.c:652 truncate_dnode fs/f2fs/node.c:940 [inline] truncate_nodes+0x5d6/0xd70 fs/f2fs/node.c:981 f2fs_truncate_inode_blocks+0x53b/0xf70 fs/f2fs/node.c:1164 f2fs_do_truncate_blocks+0x625/0xb20 fs/f2fs/file.c:741 f2fs_truncate_blocks+0x10e/0x300 fs/f2fs/file.c:769 f2fs_truncate+0x1d7/0x3d0 fs/f2fs/file.c:821 f2fs_setattr+0xaca/0x11b0 fs/f2fs/file.c:999 notify_change+0xbca/0xe90 fs/attr.c:505 do_truncate+0x197/0x220 fs/open.c:66 handle_truncate fs/namei.c:3265 [inline] do_open fs/namei.c:3612 [inline] path_openat+0x2769/0x2f10 fs/namei.c:3742 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x14c/0x7b0 fs/open.c:1234 do_sys_open fs/open.c:1250 [inline] __do_sys_openat fs/open.c:1266 [inline] __se_sys_openat fs/open.c:1261 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1261 x64_sys_call+0x219/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f6bee78abe9 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:00007f6becdf3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f6bee9b1fa0 RCX: 00007f6bee78abe9 RDX: 0000000000183341 RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007f6bee80de19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6bee9b2038 R14: 00007f6bee9b1fa0 R15: 00007ffc8e0f0408 Modules linked in: ---[ end trace 79ac63da54ef5a32 ]--- RIP: 0010:f2fs_test_and_clear_bit fs/f2fs/f2fs.h:2955 [inline] RIP: 0010:update_sit_entry+0x619/0xf70 fs/f2fs/segment.c:2299 Code: 00 00 49 8d 5d 18 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 f5 4d 92 ff 48 8b 1b 48 03 5d b0 48 89 d8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 5e 08 00 00 44 0f b6 33 0f b6 45 c7 44 RSP: 0018:ffffc90000a47148 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 000000000000000a RCX: ffff88812dd83b40 RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000a471c8 R08: dffffc0000000000 R09: ffffed1022775410 R10: ffffed1022775410 R11: 1ffff1102277540f R12: dffffc0000000000 R13: ffff88812cec79e0 R14: 0000000000000080 R15: ffff888113baa000 FS: 00007f6becdf36c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055558f4964a8 CR3: 0000000117e17000 CR4: 00000000003506b0 DR0: 000000000000a7d0 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 49 8d 5d 18 lea 0x18(%r13),%rbx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 f5 4d 92 ff call 0xff924e11 1c: 48 8b 1b mov (%rbx),%rbx 1f: 48 03 5d b0 add -0x50(%rbp),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 5e 08 00 00 jne 0x895 37: 44 0f b6 33 movzbl (%rbx),%r14d 3b: 0f b6 45 c7 movzbl -0x39(%rbp),%eax 3f: 44 rex.R