./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3404127806 <...> Warning: Permanently added '10.128.0.51' (ED25519) to the list of known hosts. execve("./syz-executor3404127806", ["./syz-executor3404127806"], 0x7ffe7eb82a80 /* 10 vars */) = 0 brk(NULL) = 0x5555813d2000 brk(0x5555813d2d00) = 0x5555813d2d00 arch_prctl(ARCH_SET_FS, 0x5555813d2380) = 0 set_tid_address(0x5555813d2650) = 5221 set_robust_list(0x5555813d2660, 24) = 0 rseq(0x5555813d2ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3404127806", 4096) = 28 getrandom("\x68\xba\xe0\xce\x86\x43\x71\x61", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555813d2d00 brk(0x5555813f3d00) = 0x5555813f3d00 brk(0x5555813f4000) = 0x5555813f4000 mprotect(0x7f2478c28000, 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) = 0x7f2470600000 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(0x7f2470600000, 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 [ 73.736922][ T5221] loop0: detected capacity change from 0 to 32768 [ 73.783402][ T5221] ======================================================= [ 73.783402][ T5221] WARNING: The mand mount option has been deprecated and [ 73.783402][ T5221] and is ignored by this kernel. Remove the mand [ 73.783402][ T5221] option from the mount to silence this warning. [ 73.783402][ T5221] ======================================================= [ 73.894629][ T5221] 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 [ 73.913893][ T5221] [ 73.916232][ T5221] ============================================ [ 73.922555][ T5221] WARNING: possible recursive locking detected [ 73.928982][ T5221] 6.12.0-rc1-syzkaller-00031-ge32cde8d2bd7 #0 Not tainted [ 73.936535][ T5221] -------------------------------------------- [ 73.943401][ T5221] syz-executor340/5221 is trying to acquire lock: [ 73.950171][ T5221] ffff888078a80908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 73.960255][ T5221] [ 73.960255][ T5221] but task is already holding lock: [ 73.967722][ T5221] ffff888078a80908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 73.978747][ T5221] [ 73.978747][ T5221] other info that might help us debug this: [ 73.987784][ T5221] Possible unsafe locking scenario: [ 73.987784][ T5221] [ 73.995780][ T5221] CPU0 [ 73.999281][ T5221] ---- [ 74.002881][ T5221] lock(&c->sb_lock); [ 74.007671][ T5221] lock(&c->sb_lock); [ 74.011761][ T5221] [ 74.011761][ T5221] *** DEADLOCK *** [ 74.011761][ T5221] [ 74.020862][ T5221] May be due to missing lock nesting notation [ 74.020862][ T5221] [ 74.029333][ T5221] 2 locks held by syz-executor340/5221: [ 74.034897][ T5221] #0: ffff888078a80278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 74.044601][ T5221] #1: ffff888078a80908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 74.054915][ T5221] [ 74.054915][ T5221] stack backtrace: [ 74.060862][ T5221] CPU: 0 UID: 0 PID: 5221 Comm: syz-executor340 Not tainted 6.12.0-rc1-syzkaller-00031-ge32cde8d2bd7 #0 [ 74.072276][ T5221] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 74.082438][ T5221] Call Trace: [ 74.085721][ T5221] [ 74.088759][ T5221] dump_stack_lvl+0x241/0x360 [ 74.093478][ T5221] ? __pfx_dump_stack_lvl+0x10/0x10 [ 74.098703][ T5221] ? __pfx__printk+0x10/0x10 [ 74.103353][ T5221] ? lockdep_unlock+0x16a/0x300 [ 74.108430][ T5221] print_deadlock_bug+0x483/0x620 [ 74.113517][ T5221] validate_chain+0x15e2/0x5920 [ 74.118392][ T5221] ? __pfx___bfs+0x10/0x10 [ 74.122842][ T5221] ? __pfx_validate_chain+0x10/0x10 [ 74.128052][ T5221] ? mark_lock+0x9a/0x360 [ 74.132384][ T5221] ? __lock_acquire+0x1384/0x2050 [ 74.137420][ T5221] ? mark_lock+0x9a/0x360 [ 74.141763][ T5221] __lock_acquire+0x1384/0x2050 [ 74.146738][ T5221] lock_acquire+0x1ed/0x550 [ 74.151366][ T5221] ? bch2_replicas_entry_validate+0x2a/0x80 [ 74.157279][ T5221] ? __pfx_lock_acquire+0x10/0x10 [ 74.162392][ T5221] ? lockdep_hardirqs_on+0x99/0x150 [ 74.167775][ T5221] ? __pfx___might_resched+0x10/0x10 [ 74.173441][ T5221] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 74.179982][ T5221] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 74.186586][ T5221] ? stack_trace_save+0x118/0x1d0 [ 74.192767][ T5221] __mutex_lock+0x136/0xd70 [ 74.197890][ T5221] ? bch2_replicas_entry_validate+0x2a/0x80 [ 74.204000][ T5221] ? kasan_save_track+0x51/0x80 [ 74.208903][ T5221] ? kasan_save_track+0x3f/0x80 [ 74.213760][ T5221] ? __kasan_kmalloc+0x98/0xb0 [ 74.218527][ T5221] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 74.225170][ T5221] ? kmemdup_noprof+0x2a/0x60 [ 74.229862][ T5221] ? bch2_read_superblock_clean+0xd6/0x520 [ 74.235689][ T5221] ? bch2_replicas_entry_validate+0x2a/0x80 [ 74.241594][ T5221] ? bch2_fs_start+0x356/0x5b0 [ 74.246467][ T5221] ? __pfx___mutex_lock+0x10/0x10 [ 74.251492][ T5221] ? do_syscall_64+0xf3/0x230 [ 74.256190][ T5221] bch2_replicas_entry_validate+0x2a/0x80 [ 74.261912][ T5221] journal_entry_data_usage_validate+0x2b6/0x690 [ 74.268332][ T5221] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 74.275225][ T5221] ? journal_entry_usage_validate+0xc2/0x360 [ 74.281222][ T5221] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 74.287646][ T5221] ? rcu_is_watching+0x15/0xb0 [ 74.292448][ T5221] ? trace_kmalloc+0x1f/0xd0 [ 74.297062][ T5221] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 74.303776][ T5221] ? kmemdup_noprof+0x45/0x60 [ 74.308529][ T5221] ? bch2_journal_entry_validate+0x6a/0xf0 [ 74.314446][ T5221] bch2_read_superblock_clean+0x207/0x520 [ 74.320230][ T5221] bch2_fs_recovery+0x1f4/0x39c0 [ 74.325381][ T5221] ? mark_lock+0x9a/0x360 [ 74.329846][ T5221] ? __lock_acquire+0x1384/0x2050 [ 74.334894][ T5221] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 74.340288][ T5221] ? __pfx_lock_release+0x10/0x10 [ 74.345366][ T5221] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 74.351102][ T5221] ? __pfx_lock_release+0x10/0x10 [ 74.356283][ T5221] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 74.361952][ T5221] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 74.367812][ T5221] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 74.373941][ T5221] ? llist_reverse_order+0x72/0x90 [ 74.379432][ T5221] bch2_fs_start+0x356/0x5b0 [ 74.384497][ T5221] bch2_fs_get_tree+0xd68/0x1710 [ 74.389485][ T5221] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 74.396135][ T5221] ? smack_fs_context_parse_param+0xff/0x170 [ 74.402639][ T5221] ? generic_parse_monolithic+0x387/0x400 [ 74.408470][ T5221] ? cap_capable+0x1b4/0x250 [ 74.413534][ T5221] ? safesetid_security_capable+0xb2/0x1d0 [ 74.419976][ T5221] vfs_get_tree+0x90/0x2b0 [ 74.424414][ T5221] do_new_mount+0x2be/0xb40 [ 74.429122][ T5221] ? __pfx_do_new_mount+0x10/0x10 [ 74.434287][ T5221] __se_sys_mount+0x2d6/0x3c0 [ 74.439005][ T5221] ? __pfx___se_sys_mount+0x10/0x10 [ 74.444222][ T5221] ? do_syscall_64+0x100/0x230 [ 74.448993][ T5221] ? __x64_sys_mount+0x20/0xc0 [ 74.453766][ T5221] do_syscall_64+0xf3/0x230 [ 74.458317][ T5221] ? clear_bhb_loop+0x35/0x90 [ 74.463027][ T5221] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 74.468940][ T5221] RIP: 0033:0x7f2478bb0c3a [ 74.473896][ T5221] 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 [ 74.494581][ T5221] RSP: 002b:00007ffecc9ae478 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 74.503123][ T5221] RAX: ffffffffffffffda RBX: 00007ffecc9ae490 RCX: 00007f2478bb0c3a [ 74.511128][ T5221] RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007ffecc9ae490 [ 74.519122][ T5221] RBP: 0000000000000004 R08: 00007ffecc9ae4d0 R09: 0000000000005daf [ 74.527258][ T5221] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 74.536733][ T5221] R13: 00007ffecc9ae4d0 R14: 0000000000000003 R15: 0000000001000000 [ 74.546233][ T5221]