./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor422871367 <...> Warning: Permanently added '10.128.1.9' (ED25519) to the list of known hosts. execve("./syz-executor422871367", ["./syz-executor422871367"], 0x7fff64955250 /* 10 vars */) = 0 brk(NULL) = 0x555582d5f000 brk(0x555582d5fd00) = 0x555582d5fd00 arch_prctl(ARCH_SET_FS, 0x555582d5f380) = 0 set_tid_address(0x555582d5f650) = 5226 set_robust_list(0x555582d5f660, 24) = 0 rseq(0x555582d5fca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor422871367", 4096) = 27 getrandom("\x4c\x5d\x0e\xe6\xb2\xc1\x3a\x84", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555582d5fd00 brk(0x555582d80d00) = 0x555582d80d00 brk(0x555582d81000) = 0x555582d81000 mprotect(0x7f5020ecc000, 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 executing program write(1, "executing program\n", 18) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5018a00000 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(0x7f5018a00000, 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.715599][ T5226] loop0: detected capacity change from 0 to 32768 [ 71.752539][ T5226] ======================================================= [ 71.752539][ T5226] WARNING: The mand mount option has been deprecated and [ 71.752539][ T5226] and is ignored by this kernel. Remove the mand [ 71.752539][ T5226] option from the mount to silence this warning. [ 71.752539][ T5226] ======================================================= [ 71.841752][ T5226] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,compression=gzip,norecovery,recovery_pass_last=check_dirents,nojournal_transaction_names,version_upgrade=none [ 71.861384][ T5226] [ 71.863742][ T5226] ============================================ [ 71.869901][ T5226] WARNING: possible recursive locking detected [ 71.876074][ T5226] 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #0 Not tainted [ 71.883272][ T5226] -------------------------------------------- [ 71.889440][ T5226] syz-executor422/5226 is trying to acquire lock: [ 71.895852][ T5226] ffff888076180908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 71.905741][ T5226] [ 71.905741][ T5226] but task is already holding lock: [ 71.913382][ T5226] ffff888076180908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 71.923306][ T5226] [ 71.923306][ T5226] other info that might help us debug this: [ 71.931375][ T5226] Possible unsafe locking scenario: [ 71.931375][ T5226] [ 71.938834][ T5226] CPU0 [ 71.942120][ T5226] ---- [ 71.945410][ T5226] lock(&c->sb_lock); [ 71.949504][ T5226] lock(&c->sb_lock); [ 71.953589][ T5226] [ 71.953589][ T5226] *** DEADLOCK *** [ 71.953589][ T5226] [ 71.961760][ T5226] May be due to missing lock nesting notation [ 71.961760][ T5226] [ 71.970104][ T5226] 2 locks held by syz-executor422/5226: [ 71.975655][ T5226] #0: ffff888076180278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 71.985017][ T5226] #1: ffff888076180908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 71.995317][ T5226] [ 71.995317][ T5226] stack backtrace: [ 72.001232][ T5226] CPU: 1 UID: 0 PID: 5226 Comm: syz-executor422 Not tainted 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #0 [ 72.012359][ T5226] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 72.022432][ T5226] Call Trace: [ 72.025725][ T5226] [ 72.028666][ T5226] dump_stack_lvl+0x241/0x360 [ 72.033404][ T5226] ? __pfx_dump_stack_lvl+0x10/0x10 [ 72.038629][ T5226] ? __pfx__printk+0x10/0x10 [ 72.043318][ T5226] ? lockdep_unlock+0x16a/0x300 [ 72.048193][ T5226] print_deadlock_bug+0x483/0x620 [ 72.053235][ T5226] validate_chain+0x15e2/0x5920 [ 72.058108][ T5226] ? _raw_spin_unlock_irqrestore+0x8f/0x140 [ 72.064054][ T5226] ? mark_lock+0x9a/0x360 [ 72.068399][ T5226] ? __pfx_validate_chain+0x10/0x10 [ 72.073617][ T5226] ? __lock_acquire+0x1384/0x2050 [ 72.078693][ T5226] ? mark_lock+0x9a/0x360 [ 72.083039][ T5226] ? __lock_acquire+0x1384/0x2050 [ 72.088267][ T5226] ? mark_lock+0x9a/0x360 [ 72.092617][ T5226] __lock_acquire+0x1384/0x2050 [ 72.097594][ T5226] lock_acquire+0x1ed/0x550 [ 72.102124][ T5226] ? bch2_replicas_entry_validate+0x2a/0x80 [ 72.108046][ T5226] ? __pfx_lock_acquire+0x10/0x10 [ 72.113091][ T5226] ? lockdep_hardirqs_on+0x99/0x150 [ 72.118321][ T5226] ? __pfx___might_resched+0x10/0x10 [ 72.123624][ T5226] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 72.129544][ T5226] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 72.135892][ T5226] ? stack_trace_save+0x118/0x1d0 [ 72.140941][ T5226] __mutex_lock+0x136/0xd70 [ 72.145473][ T5226] ? bch2_replicas_entry_validate+0x2a/0x80 [ 72.151400][ T5226] ? kasan_save_track+0x51/0x80 [ 72.156279][ T5226] ? kasan_save_track+0x3f/0x80 [ 72.161156][ T5226] ? __kasan_kmalloc+0x98/0xb0 [ 72.165945][ T5226] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 72.172582][ T5226] ? kmemdup_noprof+0x2a/0x60 [ 72.177301][ T5226] ? bch2_read_superblock_clean+0xd6/0x520 [ 72.183215][ T5226] ? bch2_replicas_entry_validate+0x2a/0x80 [ 72.189130][ T5226] ? bch2_fs_start+0x356/0x5b0 [ 72.193915][ T5226] ? __pfx___mutex_lock+0x10/0x10 [ 72.198958][ T5226] ? do_syscall_64+0xf3/0x230 [ 72.203665][ T5226] bch2_replicas_entry_validate+0x2a/0x80 [ 72.209411][ T5226] journal_entry_data_usage_validate+0x2b6/0x690 [ 72.215936][ T5226] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 72.222811][ T5226] ? journal_entry_usage_validate+0xc2/0x360 [ 72.228813][ T5226] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 72.235530][ T5226] ? rcu_is_watching+0x15/0xb0 [ 72.240500][ T5226] ? trace_kmalloc+0x1f/0xd0 [ 72.245113][ T5226] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 72.251899][ T5226] ? kmemdup_noprof+0x45/0x60 [ 72.256603][ T5226] ? bch2_journal_entry_validate+0x6a/0xf0 [ 72.262439][ T5226] bch2_read_superblock_clean+0x207/0x520 [ 72.268188][ T5226] bch2_fs_recovery+0x1f4/0x39c0 [ 72.273161][ T5226] ? mark_lock+0x9a/0x360 [ 72.277596][ T5226] ? __lock_acquire+0x1384/0x2050 [ 72.282792][ T5226] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 72.288245][ T5226] ? __pfx_lock_release+0x10/0x10 [ 72.293306][ T5226] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 72.298960][ T5226] ? __pfx_lock_release+0x10/0x10 [ 72.304124][ T5226] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 72.309797][ T5226] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 72.315545][ T5226] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 72.321292][ T5226] ? llist_reverse_order+0x72/0x90 [ 72.326525][ T5226] bch2_fs_start+0x356/0x5b0 [ 72.331161][ T5226] bch2_fs_get_tree+0xd68/0x1710 [ 72.336253][ T5226] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 72.341687][ T5226] ? generic_parse_monolithic+0x387/0x400 [ 72.347560][ T5226] ? cap_capable+0x1b4/0x250 [ 72.352201][ T5226] ? safesetid_security_capable+0xb2/0x1d0 [ 72.358048][ T5226] vfs_get_tree+0x90/0x2b0 [ 72.362634][ T5226] do_new_mount+0x2be/0xb40 [ 72.367193][ T5226] ? __pfx_do_new_mount+0x10/0x10 [ 72.372243][ T5226] __se_sys_mount+0x2d6/0x3c0 [ 72.376945][ T5226] ? __pfx___se_sys_mount+0x10/0x10 [ 72.382167][ T5226] ? do_syscall_64+0x100/0x230 [ 72.386963][ T5226] ? __x64_sys_mount+0x20/0xc0 [ 72.391765][ T5226] do_syscall_64+0xf3/0x230 [ 72.396290][ T5226] ? clear_bhb_loop+0x35/0x90 [ 72.400983][ T5226] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 72.407128][ T5226] RIP: 0033:0x7f5020e54d3a [ 72.411577][ T5226] 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.431651][ T5226] RSP: 002b:00007ffe98e112d8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 72.440200][ T5226] RAX: ffffffffffffffda RBX: 00007ffe98e112f0 RCX: 00007f5020e54d3a [ 72.448713][ T5226] RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007ffe98e112f0 [ 72.456789][ T5226] RBP: 0000000000000004 R08: 00007ffe98e11330 R09: 0000000000005dea [ 72.464778][ T5226] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 72.473028][ T5226] R13: 00007ffe98e11330 R14: 0000000000000003 R15: 0000000001000000 [ 72.481021][ T5226]