loop0: detected capacity change from 0 to 32768 ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:1965:6 index -84 is out of range for type 's8[341]' (aka 'signed char[341]') CPU: 1 PID: 5593 Comm: syz-executor.0 Not tainted 6.2.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: dump_stack_lvl+0x12e/0x1d0 __ubsan_handle_out_of_bounds+0xac/0xd0 dbAllocDmapLev+0x34b/0x3a0 dbAllocCtl+0xe6/0x7a0 dbAllocAG+0x20b/0x1060 dbAlloc+0x785/0xa70 dtInsert+0xc3d/0x6c80 jfs_create+0x5ec/0x970 path_openat+0xedd/0x2b80 do_filp_open+0x25f/0x4b0 do_sys_openat2+0x100/0x420 __x64_sys_openat+0x20d/0x260 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f43e988c0a9 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:00007f43ea54e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f43e99abf80 RCX: 00007f43e988c0a9 RDX: 000000000000275a RSI: 0000000020000040 RDI: ffffffffffffff9c RBP: 00007f43e98e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffede7f279f R14: 00007f43ea54e300 R15: 0000000000022000 ================================================================================