loop0: detected capacity change from 0 to 32768 ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2344:16 index 2000 is out of range for type 's64 [128]' CPU: 2 UID: 0 PID: 6006 Comm: syz-executor.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x30 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xcc/0xf0 lib/ubsan.c:455 dbAllocBits+0x5b4/0x610 fs/jfs/jfs_dmap.c:2344 dbAllocDmap+0x62/0x120 fs/jfs/jfs_dmap.c:2121 dbAllocNear fs/jfs/jfs_dmap.c:1334 [inline] dbAlloc+0x80a/0xb10 fs/jfs/jfs_dmap.c:919 ea_get+0xb10/0x1200 fs/jfs/xattr.c:516 __jfs_setxattr+0x224/0x1140 fs/jfs/xattr.c:727 __jfs_set_acl+0x110/0x1b0 fs/jfs/acl.c:83 jfs_set_acl+0x24b/0x330 fs/jfs/acl.c:110 set_posix_acl+0x263/0x320 fs/posix_acl.c:960 vfs_set_acl+0x411/0x9e0 fs/posix_acl.c:1139 do_set_acl+0xd4/0x190 fs/posix_acl.c:1284 do_setxattr+0xeb/0x180 fs/xattr.c:659 filename_setxattr+0x167/0x1d0 fs/xattr.c:690 path_setxattrat+0x1ff/0x3b0 fs/xattr.c:734 __do_sys_lsetxattr fs/xattr.c:775 [inline] __se_sys_lsetxattr fs/xattr.c:771 [inline] __x64_sys_lsetxattr+0xc9/0x140 fs/xattr.c:771 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb08aa6e279 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 d0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb08b831078 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007fb08ababf80 RCX: 00007fb08aa6e279 RDX: 0000000020000180 RSI: 0000000020000040 RDI: 0000000020000000 RBP: 00007fb08aacf49c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000024 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fb08ababf80 R15: 00007ffe7bd03c08 ---[ end trace ]---