./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3183425548 <...> Warning: Permanently added '10.128.1.228' (ED25519) to the list of known hosts. execve("./syz-executor3183425548", ["./syz-executor3183425548"], 0x7fff01d00700 /* 10 vars */) = 0 brk(NULL) = 0x555584925000 brk(0x555584925d00) = 0x555584925d00 arch_prctl(ARCH_SET_FS, 0x555584925380) = 0 set_tid_address(0x555584925650) = 5226 set_robust_list(0x555584925660, 24) = 0 rseq(0x555584925ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3183425548", 4096) = 28 getrandom("\x44\xbb\x55\x6f\xb9\x3f\x97\xe5", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555584925d00 brk(0x555584946d00) = 0x555584946d00 brk(0x555584947000) = 0x555584947000 mprotect(0x7f9d9441c000, 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) = 0x7f9d8be00000 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(0x7f9d8be00000, 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.088060][ T5226] loop0: detected capacity change from 0 to 32768 [ 71.122973][ T5226] ======================================================= [ 71.122973][ T5226] WARNING: The mand mount option has been deprecated and [ 71.122973][ T5226] and is ignored by this kernel. Remove the mand [ 71.122973][ T5226] option from the mount to silence this warning. [ 71.122973][ T5226] ======================================================= [ 71.205560][ T5226] 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.224822][ T5226] [ 71.227169][ T5226] ============================================ [ 71.233329][ T5226] WARNING: possible recursive locking detected [ 71.239499][ T5226] 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #0 Not tainted [ 71.246612][ T5226] -------------------------------------------- [ 71.252759][ T5226] syz-executor318/5226 is trying to acquire lock: [ 71.259258][ T5226] ffff888071580908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 71.269123][ T5226] [ 71.269123][ T5226] but task is already holding lock: [ 71.276605][ T5226] ffff888071580908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 71.286369][ T5226] [ 71.286369][ T5226] other info that might help us debug this: [ 71.294427][ T5226] Possible unsafe locking scenario: [ 71.294427][ T5226] [ 71.301880][ T5226] CPU0 [ 71.305166][ T5226] ---- [ 71.308447][ T5226] lock(&c->sb_lock); [ 71.312519][ T5226] lock(&c->sb_lock); [ 71.316678][ T5226] [ 71.316678][ T5226] *** DEADLOCK *** [ 71.316678][ T5226] [ 71.324832][ T5226] May be due to missing lock nesting notation [ 71.324832][ T5226] [ 71.333156][ T5226] 2 locks held by syz-executor318/5226: [ 71.338748][ T5226] #0: ffff888071580278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 71.348096][ T5226] #1: ffff888071580908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 71.358299][ T5226] [ 71.358299][ T5226] stack backtrace: [ 71.364204][ T5226] CPU: 0 UID: 0 PID: 5226 Comm: syz-executor318 Not tainted 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #0 [ 71.375329][ T5226] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 71.385401][ T5226] Call Trace: [ 71.388691][ T5226] [ 71.391626][ T5226] dump_stack_lvl+0x241/0x360 [ 71.396327][ T5226] ? __pfx_dump_stack_lvl+0x10/0x10 [ 71.401540][ T5226] ? __pfx__printk+0x10/0x10 [ 71.406149][ T5226] ? lockdep_unlock+0x16a/0x300 [ 71.411053][ T5226] print_deadlock_bug+0x483/0x620 [ 71.416095][ T5226] validate_chain+0x15e2/0x5920 [ 71.420965][ T5226] ? __pfx_validate_chain+0x10/0x10 [ 71.426181][ T5226] ? mark_lock+0x9a/0x360 [ 71.430519][ T5226] ? __lock_acquire+0x1384/0x2050 [ 71.435565][ T5226] ? mark_lock+0x9a/0x360 [ 71.439903][ T5226] __lock_acquire+0x1384/0x2050 [ 71.444819][ T5226] lock_acquire+0x1ed/0x550 [ 71.449343][ T5226] ? bch2_replicas_entry_validate+0x2a/0x80 [ 71.455253][ T5226] ? __pfx_lock_acquire+0x10/0x10 [ 71.460296][ T5226] ? lockdep_hardirqs_on+0x99/0x150 [ 71.465517][ T5226] ? __pfx___might_resched+0x10/0x10 [ 71.470818][ T5226] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 71.476731][ T5226] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 71.483073][ T5226] ? stack_trace_save+0x118/0x1d0 [ 71.488375][ T5226] __mutex_lock+0x136/0xd70 [ 71.492896][ T5226] ? bch2_replicas_entry_validate+0x2a/0x80 [ 71.498807][ T5226] ? kasan_save_track+0x51/0x80 [ 71.503674][ T5226] ? kasan_save_track+0x3f/0x80 [ 71.508628][ T5226] ? __kasan_kmalloc+0x98/0xb0 [ 71.513427][ T5226] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 71.520048][ T5226] ? kmemdup_noprof+0x2a/0x60 [ 71.524747][ T5226] ? bch2_read_superblock_clean+0xd6/0x520 [ 71.530587][ T5226] ? bch2_replicas_entry_validate+0x2a/0x80 [ 71.536507][ T5226] ? bch2_fs_start+0x356/0x5b0 [ 71.541293][ T5226] ? __pfx___mutex_lock+0x10/0x10 [ 71.546328][ T5226] ? do_syscall_64+0xf3/0x230 [ 71.551024][ T5226] bch2_replicas_entry_validate+0x2a/0x80 [ 71.556753][ T5226] journal_entry_data_usage_validate+0x2b6/0x690 [ 71.563098][ T5226] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 71.570065][ T5226] ? journal_entry_usage_validate+0xc2/0x360 [ 71.576059][ T5226] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 71.582487][ T5226] ? rcu_is_watching+0x15/0xb0 [ 71.587266][ T5226] ? trace_kmalloc+0x1f/0xd0 [ 71.591883][ T5226] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 71.598501][ T5226] ? kmemdup_noprof+0x45/0x60 [ 71.604161][ T5226] ? bch2_journal_entry_validate+0x6a/0xf0 [ 71.609986][ T5226] bch2_read_superblock_clean+0x207/0x520 [ 71.615724][ T5226] bch2_fs_recovery+0x1f4/0x39c0 [ 71.620695][ T5226] ? mark_lock+0x9a/0x360 [ 71.625034][ T5226] ? __lock_acquire+0x1384/0x2050 [ 71.630206][ T5226] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 71.635709][ T5226] ? __pfx_lock_release+0x10/0x10 [ 71.640768][ T5226] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 71.646436][ T5226] ? __pfx_lock_release+0x10/0x10 [ 71.651484][ T5226] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 71.657136][ T5226] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 71.662893][ T5226] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 71.668566][ T5226] ? llist_reverse_order+0x72/0x90 [ 71.673693][ T5226] bch2_fs_start+0x356/0x5b0 [ 71.678327][ T5226] bch2_fs_get_tree+0xd68/0x1710 [ 71.683307][ T5226] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 71.688698][ T5226] ? smack_fs_context_parse_param+0xff/0x170 [ 71.694708][ T5226] ? generic_parse_monolithic+0x387/0x400 [ 71.700450][ T5226] ? cap_capable+0x1b4/0x250 [ 71.705053][ T5226] ? safesetid_security_capable+0xb2/0x1d0 [ 71.710878][ T5226] vfs_get_tree+0x90/0x2b0 [ 71.715313][ T5226] do_new_mount+0x2be/0xb40 [ 71.719918][ T5226] ? __pfx_do_new_mount+0x10/0x10 [ 71.725656][ T5226] __se_sys_mount+0x2d6/0x3c0 [ 71.730352][ T5226] ? __pfx___se_sys_mount+0x10/0x10 [ 71.735565][ T5226] ? do_syscall_64+0x100/0x230 [ 71.740343][ T5226] ? __x64_sys_mount+0x20/0xc0 [ 71.745130][ T5226] do_syscall_64+0xf3/0x230 [ 71.749646][ T5226] ? clear_bhb_loop+0x35/0x90 [ 71.754333][ T5226] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.760264][ T5226] RIP: 0033:0x7f9d943a4c3a [ 71.764695][ 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 [ 71.784326][ T5226] RSP: 002b:00007fff0e585e18 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 71.792759][ T5226] RAX: ffffffffffffffda RBX: 00007fff0e585e30 RCX: 00007f9d943a4c3a [ 71.800740][ T5226] RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007fff0e585e30 [ 71.808726][ T5226] RBP: 0000000000000004 R08: 00007fff0e585e70 R09: 0000000000005daf [ 71.816708][ T5226] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 71.824686][ T5226] R13: 00007fff0e585e70 R14: 0000000000000003 R15: 0000000001000000 [ 71.832675][ T5226]