================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_imap.c:885:2 index -1 is out of range for type 'struct mutex [128]' CPU: 1 PID: 122 Comm: jfsCommit Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0xdb/0x130 lib/ubsan.c:283 diFree+0x1eba/0x2c90 fs/jfs/jfs_imap.c:885 jfs_evict_inode+0x323/0x440 fs/jfs/inode.c:156 evict+0x2a4/0x620 fs/inode.c:664 txUpdateMap+0x8eb/0xaa0 fs/jfs/jfs_txnmgr.c:2362 txLazyCommit fs/jfs/jfs_txnmgr.c:2659 [inline] jfs_lazycommit+0x488/0xb80 fs/jfs/jfs_txnmgr.c:2727 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 ================================================================================ Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 122 Comm: jfsCommit Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 panic+0x2d6/0x710 kernel/panic.c:274 ubsan_epilogue lib/ubsan.c:158 [inline] __ubsan_handle_out_of_bounds+0x121/0x130 lib/ubsan.c:283 diFree+0x1eba/0x2c90 fs/jfs/jfs_imap.c:885 jfs_evict_inode+0x323/0x440 fs/jfs/inode.c:156 evict+0x2a4/0x620 fs/inode.c:664 txUpdateMap+0x8eb/0xaa0 fs/jfs/jfs_txnmgr.c:2362 txLazyCommit fs/jfs/jfs_txnmgr.c:2659 [inline] jfs_lazycommit+0x488/0xb80 fs/jfs/jfs_txnmgr.c:2727 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Kernel Offset: disabled Rebooting in 86400 seconds..