------------[ cut here ]------------ EXT4-fs (loop4): invalid inodes per group: 1 kernel BUG at fs/f2fs/node.c:1069! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 10504 Comm: syz-executor.0 Not tainted 4.14.304-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 task: ffff88809ea4c440 task.stack: ffff888041f18000 RIP: 0010:new_node_page+0xd1d/0x1180 fs/f2fs/node.c:1069 RSP: 0018:ffff888041f1f410 EFLAGS: 00010212 RAX: 0000000000040000 RBX: ffff888041f1f6a0 RCX: ffffc900060d0000 RDX: 0000000000000e5f RSI: ffffffff82cb41bd RDI: ffff88809d33ee58 RBP: ffff88809dc42000 R08: 0000000000000001 R09: 0000000000000003 audit: type=1800 audit(1674862406.795:7): pid=10498 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="file2" dev="sda1" ino=13995 res=0 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea0002781c40 R13: 00000000000007f9 R14: ffff888041f1f458 R15: 0000000000000001 FS: 00007f172b78f700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8dcce8e000 CR3: 00000000a62e4000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: get_dnode_of_data+0x8fb/0x1ca0 fs/f2fs/node.c:633 f2fs_reserve_block+0x49/0x6c0 fs/f2fs/data.c:604 get_new_data_page+0xe6/0x1310 fs/f2fs/data.c:767 f2fs_add_regular_entry+0x42a/0xfb0 fs/f2fs/dir.c:544 __f2fs_do_add_link+0x255/0x2f0 fs/f2fs/dir.c:608 __f2fs_add_link+0x304/0x4e0 fs/f2fs/dir.c:649 f2fs_add_link fs/f2fs/f2fs.h:2501 [inline] f2fs_create+0x454/0x710 fs/f2fs/namei.c:197 lookup_open+0x77a/0x1750 fs/namei.c:3241 do_last fs/namei.c:3334 [inline] path_openat+0xe08/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f17342a10c9 RSP: 002b:00007f172b78f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f17343c1120 RCX: 00007f17342a10c9 RDX: 0000000000000000 RSI: 0000000000147042 RDI: 0000000020000040 RBP: 00007f17342fcae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc257c196f R14: 00007f172b78f300 R15: 0000000000022000 XFS (loop5): unknown mount option [grpquotaØ"’®ÇåûÇ•]. Code: 00 44 89 ad 78 04 00 00 be 01 00 00 00 48 89 ef e8 99 a3 f7 ff e9 ea fc ff ff 49 c7 c4 ff ff ff ff e9 de fc ff ff e8 c3 12 8a fe <0f> 0b 48 89 44 24 10 e8 b7 12 8a fe 48 8b 44 24 10 4c 8d 70 ff RIP: new_node_page+0xd1d/0x1180 fs/f2fs/node.c:1069 RSP: ffff888041f1f410 ---[ end trace e084edc2b2b8ab69 ]---