init_special_inode: bogus i_mode (177755) for inode loop4:15 ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/nilfs2/dir.c:257:18 index 15 is out of range for type 'unsigned char[15]' CPU: 1 PID: 6423 Comm: syz-executor.4 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0x121/0x150 lib/ubsan.c:415 nilfs_set_de_type fs/nilfs2/dir.c:257 [inline] nilfs_add_link+0xb39/0xb80 fs/nilfs2/dir.c:501 nilfs_link+0x136/0x220 fs/nilfs2/namei.c:192 vfs_link+0x4f5/0x690 fs/namei.c:4608 do_linkat+0x356/0x760 fs/namei.c:4679 __do_sys_linkat fs/namei.c:4707 [inline] __se_sys_linkat fs/namei.c:4704 [inline] __x64_sys_linkat+0xdd/0xf0 fs/namei.c:4704 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f59e2a7de69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f59e37520c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000109 RAX: ffffffffffffffda RBX: 00007f59e2babf80 RCX: 00007f59e2a7de69 RDX: 0000000000000005 RSI: 0000000020000180 RDI: 0000000000000005 RBP: 00007f59e2aca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000640 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f59e2babf80 R15: 00007ffd9d34a028 ---[ end trace ]---