------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2257:16 index 2000 is out of range for type 's64 [128]' CPU: 0 UID: 0 PID: 6122 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~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:233 [inline] __ubsan_handle_out_of_bounds+0x11c/0x160 lib/ubsan.c:455 dbAllocBits+0x60d/0x630 fs/jfs/jfs_dmap.c:2257 dbAllocDmap+0x5c/0x110 fs/jfs/jfs_dmap.c:2034 dbAllocNear fs/jfs/jfs_dmap.c:1247 [inline] dbAlloc+0x79c/0xac0 fs/jfs/jfs_dmap.c:832 ea_get+0xc7d/0x1330 fs/jfs/xattr.c:516 __jfs_setxattr+0x1eb/0x1030 fs/jfs/xattr.c:727 __jfs_set_acl+0x116/0x1b0 fs/jfs/acl.c:87 jfs_set_acl+0x254/0x330 fs/jfs/acl.c:115 set_posix_acl+0x25f/0x320 fs/posix_acl.c:954 vfs_set_acl+0x44a/0x920 fs/posix_acl.c:1133 do_set_acl+0xd9/0x1a0 fs/posix_acl.c:1278 do_setxattr+0xeb/0x180 fs/xattr.c:633 filename_setxattr+0x16b/0x1d0 fs/xattr.c:665 path_setxattrat+0x1de/0x2a0 fs/xattr.c:713 __do_sys_lsetxattr fs/xattr.c:754 [inline] __se_sys_lsetxattr fs/xattr.c:750 [inline] __x64_sys_lsetxattr+0xc9/0x140 fs/xattr.c:750 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa75227dca9 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:00007fa752f660c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007fa7523abf80 RCX: 00007fa75227dca9 RDX: 0000000020000180 RSI: 0000000020000040 RDI: 0000000020000000 RBP: 00007fa7522c947e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000024 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa7523abf80 R15: 00007fffbb9f4588 ---[ end trace ]---