REISERFS (device loop0): checking transaction log (loop0) REISERFS (device loop0): Using r5 hash to sort names REISERFS (device loop0): using 3.5.x disk format REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. ================================================================================ UBSAN: array-index-out-of-bounds in fs/reiserfs/item_ops.c:485:21 index 1 is out of range for type '__u16 [1]' CPU: 0 PID: 5407 Comm: syz-executor.0 Not tainted 6.4.0-syzkaller-09186-gb30d7a77c53e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x136/0x150 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0xd5/0x140 lib/ubsan.c:348 direntry_create_vi+0x8db/0x9f0 fs/reiserfs/item_ops.c:485 create_virtual_node+0x748/0x1a70 fs/reiserfs/fix_node.c:115 ip_check_balance fs/reiserfs/fix_node.c:1412 [inline] check_balance fs/reiserfs/fix_node.c:2083 [inline] fix_nodes+0x42e9/0x8660 fs/reiserfs/fix_node.c:2635 reiserfs_paste_into_item+0x51a/0x8d0 fs/reiserfs/stree.c:2128 reiserfs_get_block+0x165c/0x4100 fs/reiserfs/inode.c:1069 __block_write_begin_int+0x3b1/0x14a0 fs/buffer.c:2128 reiserfs_write_begin+0x36e/0xa60 fs/reiserfs/inode.c:2773 generic_cont_expand_simple+0x117/0x1f0 fs/buffer.c:2488 reiserfs_setattr+0x395/0x1370 fs/reiserfs/inode.c:3304 notify_change+0xb2c/0x1180 fs/attr.c:483 do_truncate+0x143/0x200 fs/open.c:66 do_sys_ftruncate+0x549/0x780 fs/open.c:194 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fbf91e8c389 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbf92c9a168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007fbf91fabf80 RCX: 00007fbf91e8c389 RDX: 0000000000000000 RSI: 0000000002007fff RDI: 0000000000000005 RBP: 00007fbf91ed7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe18bb538f R14: 00007fbf92c9a300 R15: 0000000000022000 ================================================================================