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: 4688 Comm: f2fs_ckpt-7:0 Not tainted 6.1.123-syzkaller #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:2927 [inline] RIP: 0010:update_sit_entry+0x67f/0x10d0 fs/f2fs/segment.c:2227 Code: 24 30 48 8d 5c 08 20 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 3e 44 04 fe 4c 8b 33 4d 01 ee 4c 89 f3 48 c1 eb 03 <42> 0f b6 04 3b 84 c0 4d 89 fd 0f 85 8a 08 00 00 41 0f b6 2e 41 89 RSP: 0018:ffffc90004086bd0 EFLAGS: 00010246 RAX: 1ffff1100fa8d87c RBX: 0000000000000000 RCX: 00000000000003c0 RDX: ffff88802583bb80 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 000000000000007c R08: ffffffff83ddea38 R09: ffffffff83dde58a R10: 0000000000000003 R11: ffff88802583bb80 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002000 CR3: 000000005a63e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x149a/0x3310 fs/f2fs/segment.c:3275 do_write_page+0x172/0x6e0 fs/f2fs/segment.c:3363 f2fs_outplace_write_data+0x172/0x340 fs/f2fs/segment.c:3429 f2fs_do_write_data_page+0x157f/0x27b0 fs/f2fs/data.c:2732 f2fs_write_single_data_page+0xaee/0x1f90 fs/f2fs/data.c:2824 f2fs_write_cache_pages fs/f2fs/data.c:3143 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3299 [inline] f2fs_write_data_pages+0x1ceb/0x3a70 fs/f2fs/data.c:3326 do_writepages+0x3a2/0x670 mm/page-writeback.c:2491 filemap_fdatawrite_wbc+0x121/0x180 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] __filemap_fdatawrite mm/filemap.c:427 [inline] filemap_fdatawrite+0x13f/0x1b0 mm/filemap.c:432 f2fs_sync_dirty_inodes+0x335/0x8a0 fs/f2fs/checkpoint.c:1115 block_operations fs/f2fs/checkpoint.c:1253 [inline] f2fs_write_checkpoint+0xbfa/0x1e00 fs/f2fs/checkpoint.c:1658 __write_checkpoint_sync fs/f2fs/checkpoint.c:1775 [inline] __checkpoint_and_complete_reqs+0xd6/0x3b0 fs/f2fs/checkpoint.c:1794 issue_checkpoint_thread+0xd6/0x260 fs/f2fs/checkpoint.c:1825 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2927 [inline] RIP: 0010:update_sit_entry+0x67f/0x10d0 fs/f2fs/segment.c:2227 Code: 24 30 48 8d 5c 08 20 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 3e 44 04 fe 4c 8b 33 4d 01 ee 4c 89 f3 48 c1 eb 03 <42> 0f b6 04 3b 84 c0 4d 89 fd 0f 85 8a 08 00 00 41 0f b6 2e 41 89 RSP: 0018:ffffc90004086bd0 EFLAGS: 00010246 RAX: 1ffff1100fa8d87c RBX: 0000000000000000 RCX: 00000000000003c0 RDX: ffff88802583bb80 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 000000000000007c R08: ffffffff83ddea38 R09: ffffffff83dde58a R10: 0000000000000003 R11: ffff88802583bb80 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3187d5e000 CR3: 000000005d963000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 24 30 and $0x30,%al 2: 48 8d 5c 08 20 lea 0x20(%rax,%rcx,1),%rbx 7: 48 89 d8 mov %rbx,%rax a: 48 c1 e8 03 shr $0x3,%rax e: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 13: 74 08 je 0x1d 15: 48 89 df mov %rbx,%rdi 18: e8 3e 44 04 fe call 0xfe04445b 1d: 4c 8b 33 mov (%rbx),%r14 20: 4d 01 ee add %r13,%r14 23: 4c 89 f3 mov %r14,%rbx 26: 48 c1 eb 03 shr $0x3,%rbx * 2a: 42 0f b6 04 3b movzbl (%rbx,%r15,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 4d 89 fd mov %r15,%r13 34: 0f 85 8a 08 00 00 jne 0x8c4 3a: 41 0f b6 2e movzbl (%r14),%ebp 3e: 41 rex.B 3f: 89 .byte 0x89