F2FS-fs (loop0): f2fs_check_nid_range: out-of-range nid=fff70000, run fsck to fix. ------------[ cut here ]------------ kernel BUG at fs/f2fs/inode.c:977! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5340 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_evict_inode+0x199c/0x19b0 fs/f2fs/inode.c:977 Code: fd 48 c7 c7 80 cb 9b 8e be 04 00 00 00 e8 fc f5 7b fd 65 49 ff 46 08 e9 b1 e8 ff ff e8 5d 6b 97 fd 90 0f 0b e8 55 6b 97 fd 90 <0f> 0b e8 4d 6b 97 fd 90 0f 0b 90 e9 ea fe ff ff 0f 1f 40 00 90 90 RSP: 0018:ffffc9000f8f77c0 EFLAGS: 00010287 RAX: ffffffff842de5db RBX: ffff888047e14fe0 RCX: 0000000000100000 RDX: ffffc90020802000 RSI: 00000000000158e6 RDI: 00000000000158e7 RBP: ffffc9000f8f7930 R08: ffff888047e1543f R09: 1ffff11008fc2a87 R10: dffffc0000000000 R11: ffffed1008fc2a88 R12: ffff888047e15020 R13: dffffc0000000000 R14: 0000000000000002 R15: ffff888032bc00c0 FS: 00007fb7ad2be6c0(0000) GS:ffff88808c8ae000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb7ac610058 CR3: 000000001fa58000 CR4: 0000000000352ef0 Call Trace: evict+0x624/0xb50 fs/inode.c:841 dispose_list fs/inode.c:883 [inline] evict_inodes+0x756/0x7f0 fs/inode.c:937 generic_shutdown_super+0xaa/0x2d0 fs/super.c:632 kill_block_super+0x44/0x90 fs/super.c:1725 kill_f2fs_super+0x3eb/0x700 fs/f2fs/super.c:5534 deactivate_locked_super+0xbc/0x130 fs/super.c:476 cleanup_mnt+0x3d3/0x460 fs/namespace.c:1312 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0x193/0x6b0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x353/0x580 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb7ac39ce59 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:00007fb7ad2bdfe8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007fb7ac616180 RCX: 00007fb7ac39ce59 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000000 RBP: 00007fb7ac432d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb7ac616218 R14: 00007fb7ac616180 R15: 00007ffdc4db6008 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_evict_inode+0x199c/0x19b0 fs/f2fs/inode.c:977 Code: fd 48 c7 c7 80 cb 9b 8e be 04 00 00 00 e8 fc f5 7b fd 65 49 ff 46 08 e9 b1 e8 ff ff e8 5d 6b 97 fd 90 0f 0b e8 55 6b 97 fd 90 <0f> 0b e8 4d 6b 97 fd 90 0f 0b 90 e9 ea fe ff ff 0f 1f 40 00 90 90 RSP: 0018:ffffc9000f8f77c0 EFLAGS: 00010287 RAX: ffffffff842de5db RBX: ffff888047e14fe0 RCX: 0000000000100000 RDX: ffffc90020802000 RSI: 00000000000158e6 RDI: 00000000000158e7 RBP: ffffc9000f8f7930 R08: ffff888047e1543f R09: 1ffff11008fc2a87 R10: dffffc0000000000 R11: ffffed1008fc2a88 R12: ffff888047e15020 R13: dffffc0000000000 R14: 0000000000000002 R15: ffff888032bc00c0 FS: 00007fb7ad2be6c0(0000) GS:ffff88808c8ae000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb7ad1456a0 CR3: 000000001fa58000 CR4: 0000000000352ef0