(kworker/u8:7,2009,1):ocfs2_read_blocks:240 ERROR: status = -12 ===================================== WARNING: bad unlock balance detected! 6.11.0-rc7-syzkaller-g5f5673607153 #0 Not tainted ------------------------------------- kworker/u8:7/2009 is trying to release lock (&oi->ip_io_mutex) at: [] ocfs2_inode_cache_io_unlock+0x20/0x30 fs/ocfs2/inode.c:1650 but there are no more locks to release! other info that might help us debug this: 7 locks held by kworker/u8:7/2009: #0: ffff0000eefb8148 ((wq_completion)ocfs2_wq){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff8000a0177c20 ((work_completion)(&(&osb->osb_truncate_log_wq)->work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff0000df5ca640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #2: ffff0000df5ca640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: ocfs2_flush_truncate_log fs/ocfs2/alloc.c:6075 [inline] #2: ffff0000df5ca640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: ocfs2_truncate_log_worker+0xa4/0x1b8 fs/ocfs2/alloc.c:6089 #3: ffff0000eea6a640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #3: ffff0000eea6a640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}, at: __ocfs2_flush_truncate_log+0x304/0x1168 fs/ocfs2/alloc.c:6046 #4: ffff0000d0b06610 (sb_internal#5){.+.+}-{0:0}, at: ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5938 [inline] #4: ffff0000d0b06610 (sb_internal#5){.+.+}-{0:0}, at: __ocfs2_flush_truncate_log+0x428/0x1168 fs/ocfs2/alloc.c:6054 #5: ffff0000c77db4e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3c4/0x71c fs/ocfs2/journal.c:350 #6: ffff0000ec788958 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xf0c/0x11c4 fs/jbd2/transaction.c:446 stack backtrace: CPU: 1 UID: 0 PID: 2009 Comm: kworker/u8:7 Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: ocfs2_wq ocfs2_truncate_log_worker Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:319 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:326 __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:119 dump_stack+0x1c/0x28 lib/dump_stack.c:128 print_unlock_imbalance_bug+0x250/0x2a4 kernel/locking/lockdep.c:5199 __lock_release kernel/locking/lockdep.c:5436 [inline] lock_release+0x4ec/0x9e8 kernel/locking/lockdep.c:5780 __mutex_unlock_slowpath+0xe0/0x6b4 kernel/locking/mutex.c:912 mutex_unlock+0x18/0x24 kernel/locking/mutex.c:548 ocfs2_inode_cache_io_unlock+0x20/0x30 fs/ocfs2/inode.c:1650 ocfs2_metadata_cache_io_unlock+0x6c/0x90 fs/ocfs2/uptodate.c:95 ocfs2_read_blocks+0x1164/0x1638 fs/ocfs2/buffer_head_io.c:394 ocfs2_read_block fs/ocfs2/buffer_head_io.h:52 [inline] ocfs2_read_group_descriptor fs/ocfs2/suballoc.c:303 [inline] _ocfs2_free_suballoc_bits+0x270/0x1370 fs/ocfs2/suballoc.c:2550 _ocfs2_free_clusters+0x538/0xa3c fs/ocfs2/suballoc.c:2646 ocfs2_free_clusters+0x50/0x68 fs/ocfs2/suballoc.c:2667 ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5971 [inline] __ocfs2_flush_truncate_log+0x620/0x1168 fs/ocfs2/alloc.c:6054 ocfs2_flush_truncate_log fs/ocfs2/alloc.c:6076 [inline] ocfs2_truncate_log_worker+0xac/0x1b8 fs/ocfs2/alloc.c:6089 process_one_work+0x79c/0x15b8 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x978/0xec4 kernel/workqueue.c:3389 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 (kworker/u8:7,2009,0):_ocfs2_free_suballoc_bits:2553 ERROR: status = -12 (kworker/u8:7,2009,0):_ocfs2_free_clusters:2650 ERROR: status = -12 (kworker/u8:7,2009,0):ocfs2_replay_truncate_records:5976 ERROR: status = -12 (kworker/u8:7,2009,0):__ocfs2_flush_truncate_log:6057 ERROR: status = -12 (kworker/u8:7,2009,0):ocfs2_truncate_log_worker:6091 ERROR: status = -12