./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor4132112450 <...> Warning: Permanently added '10.128.0.176' (ED25519) to the list of known hosts. execve("./syz-executor4132112450", ["./syz-executor4132112450"], 0x7ffecb923fd0 /* 10 vars */) = 0 brk(NULL) = 0x555589776000 brk(0x555589776d00) = 0x555589776d00 arch_prctl(ARCH_SET_FS, 0x555589776380) = 0 set_tid_address(0x555589776650) = 5217 set_robust_list(0x555589776660, 24) = 0 rseq(0x555589776ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor4132112450", 4096) = 28 getrandom("\x12\xb8\x1f\x7b\xcc\xa9\xe4\x15", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555589776d00 brk(0x555589797d00) = 0x555589797d00 brk(0x555589798000) = 0x555589798000 mprotect(0x7f90b0c18000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 write(1, "executing program\n", 18executing program ) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f90a8600000 write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 munmap(0x7f90a8600000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file0", 0777) = 0 [ 71.747412][ T5217] loop0: detected capacity change from 0 to 32768 [ 71.780745][ T5217] ======================================================= [ 71.780745][ T5217] WARNING: The mand mount option has been deprecated and [ 71.780745][ T5217] and is ignored by this kernel. Remove the mand [ 71.780745][ T5217] option from the mount to silence this warning. [ 71.780745][ T5217] ======================================================= [ 71.871918][ T5217] 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 [ 71.890971][ T5217] [ 71.893315][ T5217] ============================================ [ 71.899458][ T5217] WARNING: possible recursive locking detected [ 71.905612][ T5217] 6.12.0-rc3-syzkaller-00007-g6485cf5ea253 #0 Not tainted [ 71.912717][ T5217] -------------------------------------------- [ 71.918860][ T5217] syz-executor413/5217 is trying to acquire lock: [ 71.925268][ T5217] ffff888076b80908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 71.935162][ T5217] [ 71.935162][ T5217] but task is already holding lock: [ 71.942602][ T5217] ffff888076b80908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 71.952403][ T5217] [ 71.952403][ T5217] other info that might help us debug this: [ 71.960471][ T5217] Possible unsafe locking scenario: [ 71.960471][ T5217] [ 71.967924][ T5217] CPU0 [ 71.971203][ T5217] ---- [ 71.974481][ T5217] lock(&c->sb_lock); [ 71.978562][ T5217] lock(&c->sb_lock); [ 71.982641][ T5217] [ 71.982641][ T5217] *** DEADLOCK *** [ 71.982641][ T5217] [ 71.990783][ T5217] May be due to missing lock nesting notation [ 71.990783][ T5217] [ 71.999112][ T5217] 2 locks held by syz-executor413/5217: [ 72.004671][ T5217] #0: ffff888076b80278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 72.014028][ T5217] #1: ffff888076b80908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 72.024232][ T5217] [ 72.024232][ T5217] stack backtrace: [ 72.030137][ T5217] CPU: 0 UID: 0 PID: 5217 Comm: syz-executor413 Not tainted 6.12.0-rc3-syzkaller-00007-g6485cf5ea253 #0 [ 72.041254][ T5217] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 72.051318][ T5217] Call Trace: [ 72.054605][ T5217] [ 72.057543][ T5217] dump_stack_lvl+0x241/0x360 [ 72.062241][ T5217] ? __pfx_dump_stack_lvl+0x10/0x10 [ 72.067443][ T5217] ? __pfx__printk+0x10/0x10 [ 72.072036][ T5217] ? lockdep_unlock+0x16a/0x300 [ 72.076906][ T5217] print_deadlock_bug+0x483/0x620 [ 72.081946][ T5217] validate_chain+0x15e2/0x5920 [ 72.086809][ T5217] ? __pfx___bfs+0x10/0x10 [ 72.091232][ T5217] ? __pfx_validate_chain+0x10/0x10 [ 72.096445][ T5217] ? mark_lock+0x9a/0x360 [ 72.100783][ T5217] ? __lock_acquire+0x1384/0x2050 [ 72.105824][ T5217] ? mark_lock+0x9a/0x360 [ 72.110160][ T5217] __lock_acquire+0x1384/0x2050 [ 72.115033][ T5217] lock_acquire+0x1ed/0x550 [ 72.119550][ T5217] ? bch2_replicas_entry_validate+0x2a/0x80 [ 72.125452][ T5217] ? __pfx_lock_acquire+0x10/0x10 [ 72.130502][ T5217] ? lockdep_hardirqs_on+0x99/0x150 [ 72.135715][ T5217] ? __pfx___might_resched+0x10/0x10 [ 72.141010][ T5217] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 72.146916][ T5217] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 72.153254][ T5217] ? stack_trace_save+0x118/0x1d0 [ 72.158293][ T5217] __mutex_lock+0x136/0xd70 [ 72.162802][ T5217] ? bch2_replicas_entry_validate+0x2a/0x80 [ 72.168740][ T5217] ? kasan_save_track+0x51/0x80 [ 72.173618][ T5217] ? kasan_save_track+0x3f/0x80 [ 72.178486][ T5217] ? __kasan_kmalloc+0x98/0xb0 [ 72.183268][ T5217] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 72.189864][ T5217] ? kmemdup_noprof+0x2a/0x60 [ 72.194552][ T5217] ? bch2_read_superblock_clean+0xd6/0x520 [ 72.200367][ T5217] ? bch2_replicas_entry_validate+0x2a/0x80 [ 72.206265][ T5217] ? bch2_fs_start+0x356/0x5b0 [ 72.211036][ T5217] ? __pfx___mutex_lock+0x10/0x10 [ 72.216065][ T5217] ? do_syscall_64+0xf3/0x230 [ 72.220752][ T5217] bch2_replicas_entry_validate+0x2a/0x80 [ 72.226601][ T5217] journal_entry_data_usage_validate+0x2b6/0x690 [ 72.232965][ T5217] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 72.239832][ T5217] ? journal_entry_usage_validate+0xc2/0x360 [ 72.245828][ T5217] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 72.252267][ T5217] ? rcu_is_watching+0x15/0xb0 [ 72.257055][ T5217] ? trace_kmalloc+0x1f/0xd0 [ 72.261669][ T5217] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 72.268275][ T5217] ? kmemdup_noprof+0x45/0x60 [ 72.273054][ T5217] ? bch2_journal_entry_validate+0x6a/0xf0 [ 72.278872][ T5217] bch2_read_superblock_clean+0x207/0x520 [ 72.284604][ T5217] bch2_fs_recovery+0x1f4/0x39c0 [ 72.289581][ T5217] ? mark_lock+0x9a/0x360 [ 72.293949][ T5217] ? __lock_acquire+0x1384/0x2050 [ 72.299005][ T5217] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 72.304404][ T5217] ? __pfx_lock_release+0x10/0x10 [ 72.309445][ T5217] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 72.315094][ T5217] ? __pfx_lock_release+0x10/0x10 [ 72.320136][ T5217] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 72.325788][ T5217] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 72.331542][ T5217] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 72.337242][ T5217] ? llist_reverse_order+0x72/0x90 [ 72.342392][ T5217] bch2_fs_start+0x356/0x5b0 [ 72.347044][ T5217] bch2_fs_get_tree+0xd68/0x1710 [ 72.352033][ T5217] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 72.357454][ T5217] ? generic_parse_monolithic+0x387/0x400 [ 72.363213][ T5217] ? cap_capable+0x1b4/0x250 [ 72.367828][ T5217] ? safesetid_security_capable+0xb2/0x1d0 [ 72.373655][ T5217] vfs_get_tree+0x90/0x2b0 [ 72.378106][ T5217] do_new_mount+0x2be/0xb40 [ 72.382639][ T5217] ? __pfx_do_new_mount+0x10/0x10 [ 72.387697][ T5217] __se_sys_mount+0x2d6/0x3c0 [ 72.392397][ T5217] ? __pfx___se_sys_mount+0x10/0x10 [ 72.397611][ T5217] ? do_syscall_64+0x100/0x230 [ 72.402404][ T5217] ? __x64_sys_mount+0x20/0xc0 [ 72.407201][ T5217] do_syscall_64+0xf3/0x230 [ 72.411725][ T5217] ? clear_bhb_loop+0x35/0x90 [ 72.416413][ T5217] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 72.422335][ T5217] RIP: 0033:0x7f90b0ba0bfa [ 72.426759][ T5217] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 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 b8 ff ff ff f7 d8 64 89 01 48 [ 72.446380][ T5217] RSP: 002b:00007fff9002e5c8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 72.454802][ T5217] RAX: ffffffffffffffda RBX: 00007fff9002e5e0 RCX: 00007f90b0ba0bfa [ 72.462782][ T5217] RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007fff9002e5e0 [ 72.470757][ T5217] RBP: 0000000000000004 R08: 00007fff9002e620 R09: 0000000000005daf [ 72.478731][ T5217] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 72.486705][ T5217] R13: 00007fff9002e620 R14: 0000000000000003 R15: 0000000001000000 [ 72.494692][ T5217]