XFS (loop0): Mounting V4 Filesystem 5e6273b8-2167-42bb-911b-418aa14a1261 XFS (loop0): Ending clean mount xfs filesystem being mounted at /root/file0 supports timestamps until 2038-01-19 (0x7fffffff) ================================================================================ UBSAN: array-index-out-of-bounds in fs/xfs/libxfs/xfs_attr_leaf.c:1560:3 index 14 is out of range for type '__u8 [1]' CPU: 1 PID: 5021 Comm: syz-executor198 Not tainted 6.4.0-rc6-next-20230613-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/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 xfs_attr3_leaf_add_work+0x1528/0x1730 fs/xfs/libxfs/xfs_attr_leaf.c:1560 xfs_attr3_leaf_add+0x750/0x880 fs/xfs/libxfs/xfs_attr_leaf.c:1438 xfs_attr_leaf_try_add+0x1b7/0x660 fs/xfs/libxfs/xfs_attr.c:1242 xfs_attr_leaf_addname fs/xfs/libxfs/xfs_attr.c:444 [inline] xfs_attr_set_iter+0x16c4/0x2f90 fs/xfs/libxfs/xfs_attr.c:721 xfs_xattri_finish_update+0x3c/0x140 fs/xfs/xfs_attr_item.c:332 xfs_attr_finish_item+0x6d/0x280 fs/xfs/xfs_attr_item.c:463 xfs_defer_finish_one fs/xfs/libxfs/xfs_defer.c:481 [inline] xfs_defer_finish_noroll+0x93b/0x1f20 fs/xfs/libxfs/xfs_defer.c:565 __xfs_trans_commit+0x566/0xe20 fs/xfs/xfs_trans.c:972 xfs_attr_set+0x12e5/0x2220 fs/xfs/libxfs/xfs_attr.c:1083 xfs_attr_change fs/xfs/xfs_xattr.c:106 [inline] xfs_xattr_set+0xf2/0x1c0 fs/xfs/xfs_xattr.c:151 __vfs_setxattr+0x173/0x1e0 fs/xattr.c:201 __vfs_setxattr_noperm+0x129/0x5f0 fs/xattr.c:235 __vfs_setxattr_locked+0x1d3/0x260 fs/xattr.c:296 vfs_setxattr+0x143/0x340 fs/xattr.c:322 do_setxattr+0x147/0x190 fs/xattr.c:630 setxattr+0x146/0x160 fs/xattr.c:653 path_setxattr+0x197/0x1c0 fs/xattr.c:672 __do_sys_setxattr fs/xattr.c:688 [inline] __se_sys_setxattr fs/xattr.c:684 [inline] __x64_sys_setxattr+0xc4/0x160 fs/xattr.c:684 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:0x7f9effd537f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc33918058 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f9effd537f9 RDX: 0000000020000680 RSI: 0000000020000200 RDI: 0000000020000000 RBP: 00007f9effd13090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000058 R11: 0000000000000246 R12: 00007f9effd13120 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================================