WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,compression=zstd,norecovery,recovery_pass_last=check_dirents,nojournal_transaction_names,version_upgrade=none ============================================ WARNING: possible recursive locking detected 6.11.0-rc1-syzkaller #0 Not tainted -------------------------------------------- syz.0.15/3319 is trying to acquire lock: ffff88810df00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x25/0x50 fs/bcachefs/replicas.c:101 but task is already holding lock: ffff88810df00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x21/0x1c0 fs/bcachefs/sb-clean.c:149 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&c->sb_lock); lock(&c->sb_lock); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syz.0.15/3319: #0: ffff88810df00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x30/0x270 fs/bcachefs/super.c:1007 #1: ffff88810df00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x21/0x1c0 fs/bcachefs/sb-clean.c:149 stack backtrace: CPU: 1 UID: 0 PID: 3319 Comm: syz.0.15 Not tainted 6.11.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0xa3/0x100 lib/dump_stack.c:119 check_deadlock kernel/locking/lockdep.c:3061 [inline] validate_chain kernel/locking/lockdep.c:3855 [inline] __lock_acquire+0x10b9/0x2530 kernel/locking/lockdep.c:5142 lock_acquire+0xeb/0x270 kernel/locking/lockdep.c:5759 __mutex_lock_common kernel/locking/mutex.c:608 [inline] __mutex_lock+0x99/0x9a0 kernel/locking/mutex.c:752 bch2_replicas_entry_validate+0x25/0x50 fs/bcachefs/replicas.c:101 journal_entry_data_usage_validate+0x14b/0x270 fs/bcachefs/journal_io.c:608 bch2_sb_clean_validate_late fs/bcachefs/sb-clean.c:40 [inline] bch2_read_superblock_clean+0xbd/0x1c0 fs/bcachefs/sb-clean.c:168 bch2_fs_recovery+0x5e/0x18f0 fs/bcachefs/recovery.c:639 bch2_fs_start+0x1b9/0x270 fs/bcachefs/super.c:1037 bch2_fs_get_tree+0x2b5/0x640 fs/bcachefs/fs.c:2069 vfs_get_tree+0x24/0xb0 fs/super.c:1800 do_new_mount+0x15a/0x3a0 fs/namespace.c:3472 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount+0x174/0x1e0 fs/namespace.c:3997 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xa0/0x1b0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fce75d7f79a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fce76b9fe68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fce76b9fef0 RCX: 00007fce75d7f79a RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007fce76b9feb0 RBP: 0000000020005d80 R08: 00007fce76b9fef0 R09: 0000000000000044 R10: 0000000000000044 R11: 0000000000000246 R12: 0000000020000240 R13: 00007fce76b9feb0 R14: 0000000000005db5 R15: 00000000200003c0