F2FS-fs (loop4): Try to recover 1th superblock, ret: 0 F2FS-fs (loop4): Mounted with checkpoint version = 48b305e6 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: 5730 Comm: syz.4.42 Not tainted 5.15.175-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:2768 [inline] RIP: 0010:update_sit_entry+0x67f/0x10d0 fs/f2fs/segment.c:2305 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 ee cc 19 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:ffffc9000336e7d0 EFLAGS: 00010246 RAX: 1ffff11004b99016 RBX: 0000000000000000 RCX: 0000000000000090 RDX: ffff88807e1c3b80 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 000000000000007c R08: ffffffff83b09278 R09: ffffffff83b08dca R10: 0000000000000003 R11: ffff88807e1c3b80 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007ff26213f6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff26211ed58 CR3: 000000013fed3000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x107e/0x3570 fs/f2fs/segment.c:3432 do_write_page+0x172/0x6e0 fs/f2fs/segment.c:3520 f2fs_outplace_write_data+0x172/0x340 fs/f2fs/segment.c:3586 f2fs_do_write_data_page+0xd03/0x13a0 fs/f2fs/data.c:2769 f2fs_write_single_data_page+0x128a/0x1c10 fs/f2fs/data.c:2893 f2fs_write_cache_pages fs/f2fs/data.c:3144 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3294 [inline] f2fs_write_data_pages+0x17d8/0x2bd0 fs/f2fs/data.c:3321 do_writepages+0x481/0x730 mm/page-writeback.c:2386 filemap_fdatawrite_wbc+0x1d6/0x230 mm/filemap.c:400 __filemap_fdatawrite_range mm/filemap.c:433 [inline] filemap_write_and_wait_range+0x19e/0x280 mm/filemap.c:704 __generic_file_write_iter+0x3ae/0x4f0 mm/filemap.c:3898 f2fs_file_write_iter+0x6d4/0xb80 fs/f2fs/file.c:4400 do_iter_readv_writev+0x594/0x7a0 do_iter_write+0x1e6/0x760 fs/read_write.c:855 iter_file_splice_write+0x806/0xfa0 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe3/0x1c0 fs/splice.c:936 splice_direct_to_actor+0x500/0xc10 fs/splice.c:891 do_splice_direct+0x285/0x3d0 fs/splice.c:979 do_sendfile+0x622/0x1000 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64+0x178/0x1e0 fs/read_write.c:1303 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:0x7ff262ebeff9 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:00007ff26213f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007ff263076f80 RCX: 00007ff262ebeff9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000004 RBP: 00007ff262f31296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000800000100001 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ff263076f80 R15: 00007ffcaab40858 Modules linked in: ---[ end trace 232e2d3840df019e ]--- RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2768 [inline] RIP: 0010:update_sit_entry+0x67f/0x10d0 fs/f2fs/segment.c:2305 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 ee cc 19 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:ffffc9000336e7d0 EFLAGS: 00010246 RAX: 1ffff11004b99016 RBX: 0000000000000000 RCX: 0000000000000090 RDX: ffff88807e1c3b80 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 000000000000007c R08: ffffffff83b09278 R09: ffffffff83b08dca R10: 0000000000000003 R11: ffff88807e1c3b80 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007ff26213f6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f57a6974000 CR3: 000000013fed3000 CR4: 00000000003506f0 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 ee cc 19 fe call 0xfe19cd0b 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