(syz-executor,4024,0):__ocfs2_flush_truncate_log:6056 ERROR: status = -30 (syz-executor,4024,0):ocfs2_sync_fs:405 ERROR: status = -30 ============================================ WARNING: possible recursive locking detected 5.15.184-syzkaller #0 Not tainted -------------------------------------------- syz-executor/4024 is trying to acquire lock: ffff0000cb8be990 (jbd2_handle){++++}-{0:0}, at: jbd2_log_wait_commit+0x130/0x42c fs/jbd2/journal.c:696 but task is already holding lock: ffff0000cb8be990 (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-executor/4024: #0: ffff0000cbf880e0 (&type->s_umount_key#67){+.+.}-{3:3}, at: deactivate_super+0xf0/0x118 fs/super.c:365 #1: ffff0000cbf88650 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5939 [inline] #1: ffff0000cbf88650 (sb_internal#2){.+.+}-{0:0}, at: __ocfs2_flush_truncate_log+0x3bc/0xf30 fs/ocfs2/alloc.c:6053 #2: ffff0000e8a4d4e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x430/0x794 fs/ocfs2/journal.c:374 #3: ffff0000cb8be990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xecc/0x11a4 fs/jbd2/transaction.c:462 stack backtrace: CPU: 0 PID: 4024 Comm: syz-executor Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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_log_wait_commit+0x158/0x42c fs/jbd2/journal.c:697 ocfs2_sync_fs+0x1c4/0x2a4 fs/ocfs2/super.c:413 sync_filesystem+0x1a0/0x218 fs/sync.c:66 generic_shutdown_super+0x70/0x2f0 fs/super.c:448 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:1143 __cleanup_mnt+0x20/0x30 fs/namespace.c:1150 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