./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2797070930 <...> Warning: Permanently added '10.128.0.191' (ED25519) to the list of known hosts. execve("./syz-executor2797070930", ["./syz-executor2797070930"], 0x7fff47ae0b70 /* 10 vars */) = 0 brk(NULL) = 0x55557c343000 brk(0x55557c343d00) = 0x55557c343d00 arch_prctl(ARCH_SET_FS, 0x55557c343380) = 0 set_tid_address(0x55557c343650) = 5221 set_robust_list(0x55557c343660, 24) = 0 rseq(0x55557c343ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2797070930", 4096) = 28 getrandom("\x07\x38\x4b\x7b\xa2\x07\x2f\x9d", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55557c343d00 brk(0x55557c364d00) = 0x55557c364d00 brk(0x55557c365000) = 0x55557c365000 mprotect(0x7fa99fc74000, 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) = 0x7fa997600000 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(0x7fa997600000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file1", 0777) = 0 [ 55.366732][ T5221] loop0: detected capacity change from 0 to 32768 [ 55.398591][ T5221] ======================================================= [ 55.398591][ T5221] WARNING: The mand mount option has been deprecated and [ 55.398591][ T5221] and is ignored by this kernel. Remove the mand [ 55.398591][ T5221] option from the mount to silence this warning. [ 55.398591][ T5221] ======================================================= [ 55.437038][ T5221] bcachefs (/dev/loop0): error reading default superblock: checksum error, type crc32c_nonzero: got 4663d467 should be 29d2fb78 [ 55.498150][ 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 [ 55.516941][ T5221] [ 55.519263][ T5221] ============================================ [ 55.525391][ T5221] WARNING: possible recursive locking detected [ 55.531523][ T5221] 6.12.0-rc2-syzkaller-00100-geb952c47d154 #0 Not tainted [ 55.538605][ T5221] -------------------------------------------- [ 55.544754][ T5221] syz-executor279/5221 is trying to acquire lock: [ 55.551144][ T5221] ffff888076080908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 55.560971][ T5221] [ 55.560971][ T5221] but task is already holding lock: [ 55.568312][ T5221] ffff888076080908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 55.578040][ T5221] [ 55.578040][ T5221] other info that might help us debug this: [ 55.586102][ T5221] Possible unsafe locking scenario: [ 55.586102][ T5221] [ 55.593532][ T5221] CPU0 [ 55.596796][ T5221] ---- [ 55.600055][ T5221] lock(&c->sb_lock); [ 55.604108][ T5221] lock(&c->sb_lock); [ 55.608159][ T5221] [ 55.608159][ T5221] *** DEADLOCK *** [ 55.608159][ T5221] [ 55.616282][ T5221] May be due to missing lock nesting notation [ 55.616282][ T5221] [ 55.624590][ T5221] 2 locks held by syz-executor279/5221: [ 55.630121][ T5221] #0: ffff888076080278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 55.639432][ T5221] #1: ffff888076080908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 55.649604][ T5221] [ 55.649604][ T5221] stack backtrace: [ 55.655491][ T5221] CPU: 0 UID: 0 PID: 5221 Comm: syz-executor279 Not tainted 6.12.0-rc2-syzkaller-00100-geb952c47d154 #0 [ 55.666590][ T5221] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 55.676637][ T5221] Call Trace: [ 55.679908][ T5221] [ 55.682831][ T5221] dump_stack_lvl+0x241/0x360 [ 55.687511][ T5221] ? __pfx_dump_stack_lvl+0x10/0x10 [ 55.692702][ T5221] ? __pfx__printk+0x10/0x10 [ 55.697297][ T5221] ? lockdep_unlock+0x16a/0x300 [ 55.702143][ T5221] print_deadlock_bug+0x483/0x620 [ 55.707160][ T5221] validate_chain+0x15e2/0x5920 [ 55.712006][ T5221] ? __pfx___bfs+0x10/0x10 [ 55.716415][ T5221] ? __pfx_validate_chain+0x10/0x10 [ 55.721607][ T5221] ? mark_lock+0x9a/0x360 [ 55.725926][ T5221] ? __lock_acquire+0x1384/0x2050 [ 55.730947][ T5221] ? mark_lock+0x9a/0x360 [ 55.735265][ T5221] __lock_acquire+0x1384/0x2050 [ 55.740115][ T5221] lock_acquire+0x1ed/0x550 [ 55.744615][ T5221] ? bch2_replicas_entry_validate+0x2a/0x80 [ 55.750499][ T5221] ? __pfx_lock_acquire+0x10/0x10 [ 55.755519][ T5221] ? lockdep_hardirqs_on+0x99/0x150 [ 55.760716][ T5221] ? __pfx___might_resched+0x10/0x10 [ 55.765994][ T5221] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 55.771892][ T5221] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 55.778210][ T5221] ? stack_trace_save+0x118/0x1d0 [ 55.783246][ T5221] __mutex_lock+0x136/0xd70 [ 55.787758][ T5221] ? bch2_replicas_entry_validate+0x2a/0x80 [ 55.793658][ T5221] ? kasan_save_track+0x51/0x80 [ 55.798514][ T5221] ? kasan_save_track+0x3f/0x80 [ 55.803368][ T5221] ? __kasan_kmalloc+0x98/0xb0 [ 55.808123][ T5221] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 55.814701][ T5221] ? kmemdup_noprof+0x2a/0x60 [ 55.819367][ T5221] ? bch2_read_superblock_clean+0xd6/0x520 [ 55.825166][ T5221] ? bch2_replicas_entry_validate+0x2a/0x80 [ 55.831049][ T5221] ? bch2_fs_start+0x356/0x5b0 [ 55.835804][ T5221] ? __pfx___mutex_lock+0x10/0x10 [ 55.840837][ T5221] ? do_syscall_64+0xf3/0x230 [ 55.845519][ T5221] bch2_replicas_entry_validate+0x2a/0x80 [ 55.851234][ T5221] journal_entry_data_usage_validate+0x2b6/0x690 [ 55.857553][ T5221] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 55.864397][ T5221] ? journal_entry_usage_validate+0xc2/0x360 [ 55.870368][ T5221] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 55.876774][ T5221] ? rcu_is_watching+0x15/0xb0 [ 55.881537][ T5221] ? trace_kmalloc+0x1f/0xd0 [ 55.886117][ T5221] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 55.892705][ T5221] ? kmemdup_noprof+0x45/0x60 [ 55.897374][ T5221] ? bch2_journal_entry_validate+0x6a/0xf0 [ 55.903172][ T5221] bch2_read_superblock_clean+0x207/0x520 [ 55.908889][ T5221] bch2_fs_recovery+0x1f4/0x39c0 [ 55.913842][ T5221] ? mark_lock+0x9a/0x360 [ 55.918161][ T5221] ? __lock_acquire+0x1384/0x2050 [ 55.923181][ T5221] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 55.928558][ T5221] ? __pfx_lock_release+0x10/0x10 [ 55.933576][ T5221] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 55.939206][ T5221] ? __pfx_lock_release+0x10/0x10 [ 55.944229][ T5221] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 55.949855][ T5221] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 55.955585][ T5221] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 55.961233][ T5221] ? llist_reverse_order+0x72/0x90 [ 55.966347][ T5221] bch2_fs_start+0x356/0x5b0 [ 55.970942][ T5221] bch2_fs_get_tree+0xd68/0x1710 [ 55.975887][ T5221] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 55.981251][ T5221] ? smack_fs_context_parse_param+0xff/0x170 [ 55.987232][ T5221] ? generic_parse_monolithic+0x387/0x400 [ 55.992947][ T5221] ? cap_capable+0x1b4/0x250 [ 55.997542][ T5221] ? safesetid_security_capable+0xb2/0x1d0 [ 56.003348][ T5221] vfs_get_tree+0x90/0x2b0 [ 56.007769][ T5221] do_new_mount+0x2be/0xb40 [ 56.012273][ T5221] ? __pfx_do_new_mount+0x10/0x10 [ 56.017294][ T5221] __se_sys_mount+0x2d6/0x3c0 [ 56.021976][ T5221] ? __pfx___se_sys_mount+0x10/0x10 [ 56.027172][ T5221] ? do_syscall_64+0x100/0x230 [ 56.031933][ T5221] ? __x64_sys_mount+0x20/0xc0 [ 56.036694][ T5221] do_syscall_64+0xf3/0x230 [ 56.041187][ T5221] ? clear_bhb_loop+0x35/0x90 [ 56.045854][ T5221] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 56.051760][ T5221] RIP: 0033:0x7fa99fbfc9fa [ 56.056167][ 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 [ 56.075782][ T5221] RSP: 002b:00007ffff30ae828 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 56.084196][ T5221] RAX: ffffffffffffffda RBX: 00007ffff30ae840 RCX: 00007fa99fbfc9fa [ 56.092160][ T5221] RDX: 0000000020005d80 RSI: 0000000020000140 RDI: 00007ffff30ae840 [ 56.100120][ T5221] RBP: 0000000000000004 R08: 00007ffff30ae880 R09: 0000000000005de8 [ 56.108096][ T5221] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 56.116067][ T5221] R13: 00007ffff30ae880 R14: 0000000000000003 R15: 0000000001000000 [ 56.124037][ T5221]