ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. (syz.0.13,4175,0):ocfs2_read_blocks:240 ERROR: status = -12 ===================================== WARNING: bad unlock balance detected! 5.15.167-syzkaller #0 Not tainted ------------------------------------- syz.0.13/4175 is trying to release lock (&oi->ip_io_mutex) at: [] ocfs2_inode_cache_io_unlock+0x20/0x30 fs/ocfs2/inode.c:1648 but there are no more locks to release! other info that might help us debug this: 2 locks held by syz.0.13/4175: #0: ffff0000d8fc0d38 (&osb->obs_trim_fs_mutex){+.+.}-{3:3}, at: ocfs2_trim_fs_lock_res_init+0x3c/0x3f4 fs/ocfs2/dlmglue.c:702 #1: ffff0000e6e75108 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #1: ffff0000e6e75108 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_trim_mainbm fs/ocfs2/alloc.c:7550 [inline] #1: ffff0000e6e75108 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_trim_fs+0x868/0x230c fs/ocfs2/alloc.c:7688 stack backtrace: CPU: 0 PID: 4175 Comm: syz.0.13 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 print_unlock_imbalance_bug+0x250/0x2a4 kernel/locking/lockdep.c:5065 lock_release+0x4b8/0xa1c kernel/locking/lockdep.c:5643 __mutex_unlock_slowpath+0xe0/0x6d4 kernel/locking/mutex.c:851 mutex_unlock+0x8c/0xe0 kernel/locking/mutex.c:536 ocfs2_inode_cache_io_unlock+0x20/0x30 fs/ocfs2/inode.c:1648 ocfs2_metadata_cache_io_unlock+0x6c/0x90 fs/ocfs2/uptodate.c:95 ocfs2_read_blocks+0x1114/0x1628 fs/ocfs2/buffer_head_io.c:394 ocfs2_read_block fs/ocfs2/buffer_head_io.h:52 [inline] ocfs2_read_group_descriptor+0xdc/0x220 fs/ocfs2/suballoc.c:299 ocfs2_trim_mainbm fs/ocfs2/alloc.c:7592 [inline] ocfs2_trim_fs+0xb10/0x230c fs/ocfs2/alloc.c:7688 ocfs2_ioctl+0xb90/0xdf4 fs/ocfs2/ioctl.c:921 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 (syz.0.13,4175,0):ocfs2_trim_mainbm:7596 ERROR: status = -12