F2FS-fs (loop1): Mounted with checkpoint version = 48b305e5 JFS: discard option not supported on device JFS: discard option not supported on device JFS: discard option not supported on device ------------[ cut here ]------------ kernel BUG at fs/f2fs/node.c:1069! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 10067 Comm: syz-executor.1 Not tainted 4.14.305-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 task: ffff888090db4040 task.stack: ffff888047150000 RIP: 0010:new_node_page+0xd1d/0x1180 fs/f2fs/node.c:1069 BTRFS: device fsid e417788f-7a09-42b2-9266-8ddc5d5d35d2 RSP: 0018:ffff888047157820 EFLAGS: 00010216 RAX: 0000000000040000 RBX: ffff888047157ab0 RCX: ffffc900084ec000 RDX: 0000000000000ebf RSI: ffffffff82cb436d RDI: ffff8880a2ed8e18 devid 1 transid 8 /dev/loop2 RBP: ffff8880955d4780 R08: 0000000000000001 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea00028bc900 R13: 00000000000007f9 R14: ffff888047157868 R15: 0000000000000001 FS: 00007fe919f1e700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2a243a0020 CR3: 00000000aa55c000 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_mkdir+0x293/0x510 fs/f2fs/namei.c:582 vfs_mkdir+0x463/0x6e0 fs/namei.c:3851 SYSC_mkdirat fs/namei.c:3874 [inline] SyS_mkdirat+0x1fd/0x270 fs/namei.c:3858 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fe922a300f9 RSP: 002b:00007fe919f1e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fe922b50120 RCX: 00007fe922a300f9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: ffffffffffffff9c RBP: 00007fe922a8bae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4bab240f R14: 00007fe919f1e300 R15: 0000000000022000 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 43 13 8a fe <0f> 0b 48 89 44 24 10 e8 37 13 8a fe 48 8b 44 24 10 4c 8d 70 ff RIP: new_node_page+0xd1d/0x1180 fs/f2fs/node.c:1069 RSP: ffff888047157820 ---[ end trace 64d1e7b0bdc39244 ]---