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: 6367 Comm: f2fs_ckpt-7:8 Tainted: G W 5.10.232-syzkaller-00746-g49e8ba0a684f #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:2908 [inline] RIP: 0010:update_sit_entry+0x5df/0x1050 fs/f2fs/segment.c:2339 Code: 4d 90 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ae 95 88 ff 4c 8b 33 4d 01 fe 4d 89 f4 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 21 09 00 00 41 0f b6 1e 41 89 df 8b 45 RSP: 0018:ffffc90000d66b78 EFLAGS: 00010246 RAX: 1ffff11023567767 RBX: ffff88811ab3bb38 RCX: 0000000000000064 RDX: ffff88810a69e2c0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000d66c10 R08: ffffffff821fc440 R09: ffffffff821fbf9d R10: 0000000000000003 R11: ffff88810a69e2c0 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fea12824070 CR3: 0000000122d59000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x1512/0x3680 fs/f2fs/segment.c:3481 do_write_page+0x29d/0x7f0 fs/f2fs/segment.c:3569 f2fs_outplace_write_data+0x19c/0x3b0 fs/f2fs/segment.c:3635 f2fs_do_write_data_page+0xd3c/0x1590 fs/f2fs/data.c:2710 f2fs_write_single_data_page+0x9c7/0x1950 fs/f2fs/data.c:2810 f2fs_write_cache_pages fs/f2fs/data.c:3084 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3234 [inline] f2fs_write_data_pages+0x14e0/0x2c90 fs/f2fs/data.c:3261 do_writepages+0x12e/0x270 mm/page-writeback.c:2380 __filemap_fdatawrite_range+0x33c/0x3f0 mm/filemap.c:427 __filemap_fdatawrite mm/filemap.c:435 [inline] filemap_fdatawrite+0x26/0x30 mm/filemap.c:440 f2fs_sync_dirty_inodes+0x25d/0x7e0 fs/f2fs/checkpoint.c:1118 block_operations fs/f2fs/checkpoint.c:1251 [inline] f2fs_write_checkpoint+0x641/0x1f50 fs/f2fs/checkpoint.c:1661 __write_checkpoint_sync fs/f2fs/checkpoint.c:1778 [inline] __checkpoint_and_complete_reqs+0xd6/0x3c0 fs/f2fs/checkpoint.c:1797 issue_checkpoint_thread+0xd6/0x250 fs/f2fs/checkpoint.c:1828 kthread+0x34b/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Modules linked in: ---[ end trace 6bbd6d41ef91e751 ]--- RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2908 [inline] RIP: 0010:update_sit_entry+0x5df/0x1050 fs/f2fs/segment.c:2339 Code: 4d 90 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ae 95 88 ff 4c 8b 33 4d 01 fe 4d 89 f4 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 21 09 00 00 41 0f b6 1e 41 89 df 8b 45 RSP: 0018:ffffc90000d66b78 EFLAGS: 00010246 RAX: 1ffff11023567767 RBX: ffff88811ab3bb38 RCX: 0000000000000064 RDX: ffff88810a69e2c0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000d66c10 R08: ffffffff821fc440 R09: ffffffff821fbf9d R10: 0000000000000003 R11: ffff88810a69e2c0 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f32230b55a0 CR3: 000000000660f000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 4d 90 rex.WRB xchg %rax,%r8 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 ae 95 88 ff call 0xff8895cb 1d: 4c 8b 33 mov (%rbx),%r14 20: 4d 01 fe add %r15,%r14 23: 4d 89 f4 mov %r14,%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 21 09 00 00 jne 0x958 37: 41 0f b6 1e movzbl (%r14),%ebx 3b: 41 89 df mov %ebx,%r15d 3e: 8b .byte 0x8b 3f: 45 rex.RB