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 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: 5359 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+0x10b9/0x3580 fs/f2fs/segment.c:3110 Code: cc fd 48 8b 7c 24 30 48 8b 07 4c 63 fd 49 6b cf 70 4c 8d 34 08 49 83 c6 60 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 6b 12 00 00 41 80 3e 00 74 1e e8 d0 78 54 RSP: 0018:ffffc9000e5474b8 EFLAGS: 00010206 RAX: 000000000000000c RBX: 0000000000008000 RCX: dffffc0000000000 RDX: 0000000000000002 RSI: 0000000000008000 RDI: ffff8880135e1a88 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52001ca8e88 R12: ffff888038ca8000 R13: 0000000000000004 R14: 0000000000000060 R15: 0000000000000000 FS: 00007f05748606c0(0000) GS:ffff88808ac32000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000005cc0 CR3: 0000000036dda000 CR4: 0000000000352ef0 Call Trace: __allocate_new_segment+0x181/0x770 fs/f2fs/segment.c:3443 f2fs_allocate_new_section fs/f2fs/segment.c:3457 [inline] f2fs_allocate_pinning_section+0x12c/0x4a0 fs/f2fs/segment.c:3472 f2fs_expand_inode_data+0x688/0xb10 fs/f2fs/file.c:2031 f2fs_fallocate+0x4d8/0x970 fs/f2fs/file.c:2141 vfs_fallocate+0x65a/0x7e0 fs/open.c:338 ioctl_preallocate fs/ioctl.c:289 [inline] file_ioctl+0x564/0x7d0 fs/ioctl.c:329 do_vfs_ioctl+0xc27/0x1530 fs/ioctl.c:576 __do_sys_ioctl fs/ioctl.c:595 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:583 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:0x7f057399f559 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:00007f057485ffe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0573c25fa0 RCX: 00007f057399f559 RDX: 0000200000005d40 RSI: 0000000040305828 RDI: 0000000000000004 RBP: 00007f0573a36b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0573c26038 R14: 00007f0573c25fa0 R15: 00007ffd28d6b4b8 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+0x10b9/0x3580 fs/f2fs/segment.c:3110 Code: cc fd 48 8b 7c 24 30 48 8b 07 4c 63 fd 49 6b cf 70 4c 8d 34 08 49 83 c6 60 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 6b 12 00 00 41 80 3e 00 74 1e e8 d0 78 54 RSP: 0018:ffffc9000e5474b8 EFLAGS: 00010206 RAX: 000000000000000c RBX: 0000000000008000 RCX: dffffc0000000000 RDX: 0000000000000002 RSI: 0000000000008000 RDI: ffff8880135e1a88 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52001ca8e88 R12: ffff888038ca8000 R13: 0000000000000004 R14: 0000000000000060 R15: 0000000000000000 FS: 00007f05748606c0(0000) GS:ffff88808ac32000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000005cc0 CR3: 0000000036dda000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: cc int3 1: fd std 2: 48 8b 7c 24 30 mov 0x30(%rsp),%rdi 7: 48 8b 07 mov (%rdi),%rax a: 4c 63 fd movslq %ebp,%r15 d: 49 6b cf 70 imul $0x70,%r15,%rcx 11: 4c 8d 34 08 lea (%rax,%rcx,1),%r14 15: 49 83 c6 60 add $0x60,%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 6b 12 00 00 jne 0x12a1 36: 41 80 3e 00 cmpb $0x0,(%r14) 3a: 74 1e je 0x5a 3c: e8 .byte 0xe8 3d: d0 78 54 sarb $1,0x54(%rax)