./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor6897335 <...> Warning: Permanently added '10.128.0.45' (ED25519) to the list of known hosts. execve("./syz-executor6897335", ["./syz-executor6897335"], 0x7ffd746a52f0 /* 10 vars */) = 0 brk(NULL) = 0x5555946a7000 brk(0x5555946a7d00) = 0x5555946a7d00 arch_prctl(ARCH_SET_FS, 0x5555946a7380) = 0 set_tid_address(0x5555946a7650) = 5227 set_robust_list(0x5555946a7660, 24) = 0 rseq(0x5555946a7ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor6897335", 4096) = 25 getrandom("\x27\x40\x79\x28\x6d\xbd\x33\xa6", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555946a7d00 brk(0x5555946c8d00) = 0x5555946c8d00 brk(0x5555946c9000) = 0x5555946c9000 mprotect(0x7f58eccb6000, 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) = 0x7f58e4600000 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(0x7f58e4600000, 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 [ 70.582144][ T5227] loop0: detected capacity change from 0 to 32768 [ 70.636852][ T5227] ======================================================= [ 70.636852][ T5227] WARNING: The mand mount option has been deprecated and [ 70.636852][ T5227] and is ignored by this kernel. Remove the mand [ 70.636852][ T5227] option from the mount to silence this warning. [ 70.636852][ T5227] ======================================================= [ 70.708095][ T5227] 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 [ 70.727056][ T5227] [ 70.729389][ T5227] ============================================ [ 70.735541][ T5227] WARNING: possible recursive locking detected [ 70.741698][ T5227] 6.12.0-rc2-syzkaller-00260-g9e4c6c1ad9a1 #0 Not tainted [ 70.748800][ T5227] -------------------------------------------- [ 70.754942][ T5227] syz-executor689/5227 is trying to acquire lock: [ 70.761390][ T5227] ffff888075f00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 70.771296][ T5227] [ 70.771296][ T5227] but task is already holding lock: [ 70.778658][ T5227] ffff888075f00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 70.788419][ T5227] [ 70.788419][ T5227] other info that might help us debug this: [ 70.796480][ T5227] Possible unsafe locking scenario: [ 70.796480][ T5227] [ 70.804010][ T5227] CPU0 [ 70.807289][ T5227] ---- [ 70.810563][ T5227] lock(&c->sb_lock); [ 70.814634][ T5227] lock(&c->sb_lock); [ 70.818709][ T5227] [ 70.818709][ T5227] *** DEADLOCK *** [ 70.818709][ T5227] [ 70.826848][ T5227] May be due to missing lock nesting notation [ 70.826848][ T5227] [ 70.835184][ T5227] 2 locks held by syz-executor689/5227: [ 70.840741][ T5227] #0: ffff888075f00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 70.850070][ T5227] #1: ffff888075f00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 70.860261][ T5227] [ 70.860261][ T5227] stack backtrace: [ 70.866177][ T5227] CPU: 0 UID: 0 PID: 5227 Comm: syz-executor689 Not tainted 6.12.0-rc2-syzkaller-00260-g9e4c6c1ad9a1 #0 [ 70.877289][ T5227] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 70.887439][ T5227] Call Trace: [ 70.890746][ T5227] [ 70.893674][ T5227] dump_stack_lvl+0x241/0x360 [ 70.898367][ T5227] ? __pfx_dump_stack_lvl+0x10/0x10 [ 70.903567][ T5227] ? __pfx__printk+0x10/0x10 [ 70.908161][ T5227] ? lockdep_unlock+0x16a/0x300 [ 70.913024][ T5227] print_deadlock_bug+0x483/0x620 [ 70.918057][ T5227] validate_chain+0x15e2/0x5920 [ 70.922916][ T5227] ? __pfx___bfs+0x10/0x10 [ 70.927335][ T5227] ? __pfx_validate_chain+0x10/0x10 [ 70.932657][ T5227] ? mark_lock+0x9a/0x360 [ 70.937017][ T5227] ? __lock_acquire+0x1384/0x2050 [ 70.942051][ T5227] ? mark_lock+0x9a/0x360 [ 70.946386][ T5227] __lock_acquire+0x1384/0x2050 [ 70.951260][ T5227] lock_acquire+0x1ed/0x550 [ 70.955774][ T5227] ? bch2_replicas_entry_validate+0x2a/0x80 [ 70.961670][ T5227] ? __pfx_lock_acquire+0x10/0x10 [ 70.966701][ T5227] ? lockdep_hardirqs_on+0x99/0x150 [ 70.971910][ T5227] ? __pfx___might_resched+0x10/0x10 [ 70.977203][ T5227] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 70.983112][ T5227] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 70.989455][ T5227] ? stack_trace_save+0x118/0x1d0 [ 70.994489][ T5227] __mutex_lock+0x136/0xd70 [ 70.998995][ T5227] ? bch2_replicas_entry_validate+0x2a/0x80 [ 71.004891][ T5227] ? kasan_save_track+0x51/0x80 [ 71.009765][ T5227] ? kasan_save_track+0x3f/0x80 [ 71.014639][ T5227] ? __kasan_kmalloc+0x98/0xb0 [ 71.019420][ T5227] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 71.026023][ T5227] ? kmemdup_noprof+0x2a/0x60 [ 71.030830][ T5227] ? bch2_read_superblock_clean+0xd6/0x520 [ 71.036646][ T5227] ? bch2_replicas_entry_validate+0x2a/0x80 [ 71.042569][ T5227] ? bch2_fs_start+0x356/0x5b0 [ 71.047343][ T5227] ? __pfx___mutex_lock+0x10/0x10 [ 71.052366][ T5227] ? do_syscall_64+0xf3/0x230 [ 71.057052][ T5227] bch2_replicas_entry_validate+0x2a/0x80 [ 71.062778][ T5227] journal_entry_data_usage_validate+0x2b6/0x690 [ 71.069114][ T5227] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 71.075974][ T5227] ? journal_entry_usage_validate+0xc2/0x360 [ 71.081987][ T5227] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 71.088454][ T5227] ? rcu_is_watching+0x15/0xb0 [ 71.093226][ T5227] ? trace_kmalloc+0x1f/0xd0 [ 71.097818][ T5227] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 71.104412][ T5227] ? kmemdup_noprof+0x45/0x60 [ 71.109098][ T5227] ? bch2_journal_entry_validate+0x6a/0xf0 [ 71.114910][ T5227] bch2_read_superblock_clean+0x207/0x520 [ 71.120638][ T5227] bch2_fs_recovery+0x1f4/0x39c0 [ 71.125599][ T5227] ? mark_lock+0x9a/0x360 [ 71.129943][ T5227] ? __lock_acquire+0x1384/0x2050 [ 71.134984][ T5227] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 71.140412][ T5227] ? __pfx_lock_release+0x10/0x10 [ 71.145463][ T5227] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 71.151129][ T5227] ? __pfx_lock_release+0x10/0x10 [ 71.156178][ T5227] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 71.161856][ T5227] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 71.167616][ T5227] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 71.173262][ T5227] ? llist_reverse_order+0x72/0x90 [ 71.178423][ T5227] bch2_fs_start+0x356/0x5b0 [ 71.183290][ T5227] bch2_fs_get_tree+0xd68/0x1710 [ 71.188248][ T5227] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 71.193712][ T5227] ? smack_fs_context_parse_param+0xff/0x170 [ 71.199713][ T5227] ? generic_parse_monolithic+0x387/0x400 [ 71.205467][ T5227] ? cap_capable+0x1b4/0x250 [ 71.210077][ T5227] ? safesetid_security_capable+0xb2/0x1d0 [ 71.215893][ T5227] vfs_get_tree+0x90/0x2b0 [ 71.220345][ T5227] do_new_mount+0x2be/0xb40 [ 71.224860][ T5227] ? __pfx_do_new_mount+0x10/0x10 [ 71.229902][ T5227] __se_sys_mount+0x2d6/0x3c0 [ 71.234594][ T5227] ? __pfx___se_sys_mount+0x10/0x10 [ 71.239806][ T5227] ? do_syscall_64+0x100/0x230 [ 71.244578][ T5227] ? __x64_sys_mount+0x20/0xc0 [ 71.249354][ T5227] do_syscall_64+0xf3/0x230 [ 71.253867][ T5227] ? clear_bhb_loop+0x35/0x90 [ 71.258550][ T5227] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.264467][ T5227] RIP: 0033:0x7f58ecc3ec3a [ 71.268890][ T5227] 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 [ 71.288540][ T5227] RSP: 002b:00007fffa87ba3d8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 71.296962][ T5227] RAX: ffffffffffffffda RBX: 00007fffa87ba3f0 RCX: 00007f58ecc3ec3a [ 71.304937][ T5227] RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007fffa87ba3f0 [ 71.312913][ T5227] RBP: 0000000000000004 R08: 00007fffa87ba430 R09: 0000000000005de8 [ 71.320888][ T5227] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 71.328864][ T5227] R13: 00007fffa87ba430 R14: 0000000000000003 R15: 0000000001000000 [ 71.336864][ T5227]