XFS (loop0): Ending clean mount ================================================================================ UBSAN: array-index-out-of-bounds in fs/xfs/libxfs/xfs_attr_leaf.c:1560:3 index 13 is out of range for type '__u8 [1]' CPU: 0 PID: 8717 Comm: syz-executor.0 Not tainted 6.5.0-rc1-syzkaller-00259-g831fe284d827 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0x111/0x150 lib/ubsan.c:348 xfs_attr3_leaf_add_work+0x152f/0x1740 fs/xfs/libxfs/xfs_attr_leaf.c:1560 xfs_attr3_leaf_add+0x714/0x8a0 fs/xfs/libxfs/xfs_attr_leaf.c:1467 xfs_attr_leaf_try_add+0x1b9/0x650 fs/xfs/libxfs/xfs_attr.c:1242 xfs_attr_leaf_addname fs/xfs/libxfs/xfs_attr.c:444 [inline] xfs_attr_set_iter+0x196b/0x3000 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/0x290 fs/xfs/xfs_attr_item.c:463 xfs_defer_finish_one fs/xfs/libxfs/xfs_defer.c:481 [inline] xfs_defer_finish_noroll+0x9b7/0x1f90 fs/xfs/libxfs/xfs_defer.c:565 __xfs_trans_commit+0x8f9/0xe50 fs/xfs/xfs_trans.c:972 xfs_attr_set+0x105f/0x2130 fs/xfs/libxfs/xfs_attr.c:1083 xfs_attr_change fs/xfs/xfs_xattr.c:106 [inline] xfs_xattr_set+0xf5/0x1c0 fs/xfs/xfs_xattr.c:151 __vfs_setxattr+0x173/0x1d0 fs/xattr.c:201 __vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:235 __vfs_setxattr_locked+0x17e/0x250 fs/xattr.c:296 vfs_setxattr+0x146/0x350 fs/xattr.c:322 do_setxattr+0x142/0x170 fs/xattr.c:630 setxattr+0x159/0x170 fs/xattr.c:653 path_setxattr+0x1a3/0x1d0 fs/xattr.c:672 __do_sys_lsetxattr fs/xattr.c:695 [inline] __se_sys_lsetxattr fs/xattr.c:691 [inline] __ia32_sys_lsetxattr+0xbd/0x150 fs/xattr.c:691 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f9a579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7f955ac EFLAGS: 00000292 ORIG_RAX: 00000000000000e3 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00000000200000c0 RDX: 0000000020000580 RSI: 00000000000000ff RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================================ ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi