(syz.0.38,4435,0):__ocfs2_flush_truncate_log:6055 ERROR: status = -30 (syz.0.38,4435,0):ocfs2_truncate_log_shutdown:6320 ERROR: status = -30 ============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.0.38/4435 is trying to acquire lock: ffff88807b40e990 (jbd2_handle){++++}-{0:0}, at: jbd2_journal_lock_updates+0x88/0x390 fs/jbd2/transaction.c:881 but task is already holding lock: ffff88807b40e990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x134c/0x15c0 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.0.38/4435: #0: ffff88807bdc20e0 (&type->s_umount_key#61){+.+.}-{3:3}, at: deactivate_super+0xa0/0xd0 fs/super.c:365 #1: ffff88807bdc2650 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5938 [inline] #1: ffff88807bdc2650 (sb_internal#2){.+.+}-{0:0}, at: __ocfs2_flush_truncate_log+0x4a5/0x1110 fs/ocfs2/alloc.c:6052 #2: ffff88807d4ef0e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3a6/0x6f0 fs/ocfs2/journal.c:374 #3: ffff88807b40e990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x134c/0x15c0 fs/jbd2/transaction.c:462 stack backtrace: CPU: 0 PID: 4435 Comm: syz.0.38 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 __lock_acquire+0x1236/0x7d10 kernel/locking/lockdep.c:-1 lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623 jbd2_journal_lock_updates+0xa4/0x390 fs/jbd2/transaction.c:881 ocfs2_journal_shutdown+0x3f3/0xb10 fs/ocfs2/journal.c:1042 ocfs2_dismount_volume+0x1f9/0x8a0 fs/ocfs2/super.c:1892 generic_shutdown_super+0x130/0x300 fs/super.c:475 kill_block_super+0x7c/0xe0 fs/super.c:1427 deactivate_locked_super+0x93/0xf0 fs/super.c:335 cleanup_mnt+0x42d/0x4e0 fs/namespace.c:1148 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f6ea40a3cb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe52dbff78 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f6ea4320da0 RCX: 00007f6ea40a3cb9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f6ea4320da0 R08: 0000000000000006 R09: 0000000000000000 R10: 00007f6ea4320cb0 R11: 0000000000000246 R12: 00000000000178f6 R13: 00007f6ea431f18c R14: 00000000000178c4 R15: 00007f6ea431f180