(syz.1.248,4793,0):__ocfs2_flush_truncate_log:6056 ERROR: status = -12 (syz.1.248,4793,0):ocfs2_truncate_log_shutdown:6321 ERROR: status = -12 ============================================ WARNING: possible recursive locking detected 5.15.189-syzkaller #0 Not tainted -------------------------------------------- syz.1.248/4793 is trying to acquire lock: ffff0000c11ee990 (jbd2_handle){++++}-{0:0}, at: jbd2_journal_lock_updates+0x88/0x310 fs/jbd2/transaction.c:880 but task is already holding lock: ffff0000c11ee990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xecc/0x11a4 fs/jbd2/transaction.c:462 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(jbd2_handle); lock(jbd2_handle); *** DEADLOCK *** May be due to missing lock nesting notation 4 locks held by syz.1.248/4793: #0: ffff0000d655e0e0 (&type->s_umount_key#83){+.+.}-{3:3}, at: deactivate_super+0xf0/0x118 fs/super.c:365 #1: ffff0000d655e650 (sb_internal#3){.+.+}-{0:0}, at: ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5939 [inline] #1: ffff0000d655e650 (sb_internal#3){.+.+}-{0:0}, at: __ocfs2_flush_truncate_log+0x3bc/0xf30 fs/ocfs2/alloc.c:6053 #2: ffff0000e7b7f0e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x430/0x794 fs/ocfs2/journal.c:374 #3: ffff0000c11ee990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xecc/0x11a4 fs/jbd2/transaction.c:462 stack backtrace: CPU: 0 PID: 4793 Comm: syz.1.248 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 __lock_acquire+0x18a4/0x651c kernel/locking/lockdep.c:-1 lock_acquire+0x1f4/0x620 kernel/locking/lockdep.c:5623 jbd2_journal_lock_updates+0xb0/0x310 fs/jbd2/transaction.c:881 ocfs2_journal_shutdown+0x384/0xac4 fs/ocfs2/journal.c:1042 ocfs2_dismount_volume+0x1ec/0x8b4 fs/ocfs2/super.c:1892 ocfs2_put_super+0xec/0x308 fs/ocfs2/super.c:1610 generic_shutdown_super+0x130/0x2f0 fs/super.c:475 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584