loop0: detected capacity change from 0 to 131072 F2FS-fs (loop0): Invalid segment/section count (458783, 24 x 150994945) F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock F2FS-fs (loop0): invalid crc value F2FS-fs (loop0): f2fs_recover_fsync_data: recovery fsync data, check_only: 0 F2FS-fs (loop0): Try to recover 1th superblock, ret: 0 F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= Oops: general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067] CPU: 0 UID: 0 PID: 5313 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:f2fs_dev_is_alloc_blocked fs/f2fs/segment.h:956 [inline] RIP: 0010:get_new_segment fs/f2fs/segment.c:2964 [inline] RIP: 0010:new_curseg+0x1134/0x3580 fs/f2fs/segment.c:3110 Code: e8 e1 98 cd fd 48 8b 7c 24 30 48 8b 07 49 6b cf 70 4c 8d 34 08 49 83 c6 61 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 73 11 00 00 41 80 3e 00 0f 84 e6 00 00 00 RSP: 0018:ffffc9000e276928 EFLAGS: 00010206 RAX: 000000000000000c RBX: 0000000000008000 RCX: dffffc0000000000 RDX: ffffc9000ee8a000 RSI: 00000000000fffff RDI: ffff888013e55a88 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52001c4ed14 R12: ffff888012fc6000 R13: 0000000000000004 R14: 0000000000000061 R15: 0000000000000000 FS: 00007f4011b1a6c0(0000) GS:ffff88808b0b4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200001000000 CR3: 00000000418a1000 CR4: 0000000000352ef0 Call Trace: f2fs_allocate_data_block+0x229c/0x43c0 fs/f2fs/segment.c:3979 do_write_page+0x13f/0x880 fs/f2fs/segment.c:4099 f2fs_outplace_write_data+0x11a/0x220 fs/f2fs/segment.c:4175 f2fs_write_compressed_pages fs/f2fs/compress.c:1403 [inline] f2fs_write_multi_pages+0x43bb/0x6370 fs/f2fs/compress.c:1602 f2fs_write_cache_pages fs/f2fs/data.c:3351 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3603 [inline] f2fs_write_data_pages+0x19bb/0x36f0 fs/f2fs/data.c:3641 do_writepages+0x338/0x560 mm/page-writeback.c:2560 filemap_writeback mm/filemap.c:387 [inline] filemap_fdatawrite_range mm/filemap.c:412 [inline] file_write_and_wait_range+0x36e/0x440 mm/filemap.c:786 f2fs_do_sync_file+0x69d/0x1960 fs/f2fs/file.c:359 generic_write_sync include/linux/fs.h:2689 [inline] f2fs_file_write_iter+0x68e/0x2920 fs/f2fs/file.c:5720 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4010b9e1d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4011b19fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f4010e25fa0 RCX: 00007f4010b9e1d9 RDX: 000000000208e24b RSI: 0000200000019000 RDI: 0000000000000006 RBP: 00007f4010c35888 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4010e26038 R14: 00007f4010e25fa0 R15: 00007fffd86fd1f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_dev_is_alloc_blocked fs/f2fs/segment.h:956 [inline] RIP: 0010:get_new_segment fs/f2fs/segment.c:2964 [inline] RIP: 0010:new_curseg+0x1134/0x3580 fs/f2fs/segment.c:3110 Code: e8 e1 98 cd fd 48 8b 7c 24 30 48 8b 07 49 6b cf 70 4c 8d 34 08 49 83 c6 61 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 73 11 00 00 41 80 3e 00 0f 84 e6 00 00 00 RSP: 0018:ffffc9000e276928 EFLAGS: 00010206 RAX: 000000000000000c RBX: 0000000000008000 RCX: dffffc0000000000 RDX: ffffc9000ee8a000 RSI: 00000000000fffff RDI: ffff888013e55a88 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52001c4ed14 R12: ffff888012fc6000 R13: 0000000000000004 R14: 0000000000000061 R15: 0000000000000000 FS: 00007f4011b1a6c0(0000) GS:ffff88808b0b4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200001000000 CR3: 00000000418a1000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: e8 e1 98 cd fd call 0xfdcd98e6 5: 48 8b 7c 24 30 mov 0x30(%rsp),%rdi a: 48 8b 07 mov (%rdi),%rax d: 49 6b cf 70 imul $0x70,%r15,%rcx 11: 4c 8d 34 08 lea (%rax,%rcx,1),%r14 15: 49 83 c6 61 add $0x61,%r14 19: 4c 89 f0 mov %r14,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 73 11 00 00 jne 0x11a9 36: 41 80 3e 00 cmpb $0x0,(%r14) 3a: 0f 84 e6 00 00 00 je 0x126