./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2233351539 <...> Warning: Permanently added '10.128.1.88' (ED25519) to the list of known hosts. execve("./syz-executor2233351539", ["./syz-executor2233351539"], 0x7ffc79477c10 /* 10 vars */) = 0 brk(NULL) = 0x555562452000 brk(0x555562452d00) = 0x555562452d00 arch_prctl(ARCH_SET_FS, 0x555562452380) = 0 set_tid_address(0x555562452650) = 5217 set_robust_list(0x555562452660, 24) = 0 rseq(0x555562452ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2233351539", 4096) = 28 getrandom("\xf2\x46\x16\xd1\xda\x25\x5b\xe8", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555562452d00 brk(0x555562473d00) = 0x555562473d00 brk(0x555562474000) = 0x555562474000 mprotect(0x7f0374668000, 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) = 0x7f036c000000 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(0x7f036c000000, 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 [ 58.158080][ T5217] loop0: detected capacity change from 0 to 32768 [ 58.201753][ T5217] ======================================================= [ 58.201753][ T5217] WARNING: The mand mount option has been deprecated and [ 58.201753][ T5217] and is ignored by this kernel. Remove the mand [ 58.201753][ T5217] option from the mount to silence this warning. [ 58.201753][ T5217] ======================================================= [ 58.279661][ T5217] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=compression=lz4,nojournal_transaction_names [ 58.291314][ T5217] [ 58.293631][ T5217] ============================================ [ 58.299760][ T5217] WARNING: possible recursive locking detected [ 58.305902][ T5217] 6.12.0-rc2-syzkaller-00074-gd3d1556696c1 #0 Not tainted [ 58.313014][ T5217] -------------------------------------------- [ 58.319154][ T5217] syz-executor223/5217 is trying to acquire lock: [ 58.325559][ T5217] ffff888071100908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 58.335396][ T5217] [ 58.335396][ T5217] but task is already holding lock: [ 58.342742][ T5217] ffff888071100908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 58.352467][ T5217] [ 58.352467][ T5217] other info that might help us debug this: [ 58.360510][ T5217] Possible unsafe locking scenario: [ 58.360510][ T5217] [ 58.367945][ T5217] CPU0 [ 58.371301][ T5217] ---- [ 58.374564][ T5217] lock(&c->sb_lock); [ 58.378624][ T5217] lock(&c->sb_lock); [ 58.382679][ T5217] [ 58.382679][ T5217] *** DEADLOCK *** [ 58.382679][ T5217] [ 58.390808][ T5217] May be due to missing lock nesting notation [ 58.390808][ T5217] [ 58.399114][ T5217] 2 locks held by syz-executor223/5217: [ 58.404643][ T5217] #0: ffff888071100278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 58.413954][ T5217] #1: ffff888071100908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 58.424303][ T5217] [ 58.424303][ T5217] stack backtrace: [ 58.430197][ T5217] CPU: 1 UID: 0 PID: 5217 Comm: syz-executor223 Not tainted 6.12.0-rc2-syzkaller-00074-gd3d1556696c1 #0 [ 58.441301][ T5217] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 58.451352][ T5217] Call Trace: [ 58.454628][ T5217] [ 58.457549][ T5217] dump_stack_lvl+0x241/0x360 [ 58.462228][ T5217] ? __pfx_dump_stack_lvl+0x10/0x10 [ 58.467416][ T5217] ? __pfx__printk+0x10/0x10 [ 58.472001][ T5217] ? lockdep_unlock+0x16a/0x300 [ 58.476849][ T5217] print_deadlock_bug+0x483/0x620 [ 58.481866][ T5217] validate_chain+0x15e2/0x5920 [ 58.486712][ T5217] ? __pfx___bfs+0x10/0x10 [ 58.491118][ T5217] ? __pfx_validate_chain+0x10/0x10 [ 58.496315][ T5217] ? mark_lock+0x9a/0x360 [ 58.500631][ T5217] ? __lock_acquire+0x1384/0x2050 [ 58.505650][ T5217] ? mark_lock+0x9a/0x360 [ 58.509968][ T5217] __lock_acquire+0x1384/0x2050 [ 58.514818][ T5217] lock_acquire+0x1ed/0x550 [ 58.519491][ T5217] ? bch2_replicas_entry_validate+0x2a/0x80 [ 58.525374][ T5217] ? __pfx_lock_acquire+0x10/0x10 [ 58.530393][ T5217] ? lockdep_hardirqs_on+0x99/0x150 [ 58.535585][ T5217] ? __pfx___might_resched+0x10/0x10 [ 58.540862][ T5217] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 58.546754][ T5217] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 58.553091][ T5217] ? stack_trace_save+0x118/0x1d0 [ 58.558138][ T5217] __mutex_lock+0x136/0xd70 [ 58.562643][ T5217] ? bch2_replicas_entry_validate+0x2a/0x80 [ 58.568537][ T5217] ? kasan_save_track+0x51/0x80 [ 58.573386][ T5217] ? kasan_save_track+0x3f/0x80 [ 58.578231][ T5217] ? __kasan_kmalloc+0x98/0xb0 [ 58.582988][ T5217] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 58.589567][ T5217] ? kmemdup_noprof+0x2a/0x60 [ 58.594235][ T5217] ? bch2_read_superblock_clean+0xd6/0x520 [ 58.600044][ T5217] ? bch2_replicas_entry_validate+0x2a/0x80 [ 58.605948][ T5217] ? bch2_fs_start+0x356/0x5b0 [ 58.610894][ T5217] ? __pfx___mutex_lock+0x10/0x10 [ 58.615913][ T5217] ? do_syscall_64+0xf3/0x230 [ 58.620588][ T5217] bch2_replicas_entry_validate+0x2a/0x80 [ 58.626300][ T5217] journal_entry_data_usage_validate+0x2b6/0x690 [ 58.632623][ T5217] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 58.639466][ T5217] ? journal_entry_usage_validate+0xc2/0x360 [ 58.645440][ T5217] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 58.651845][ T5217] ? rcu_is_watching+0x15/0xb0 [ 58.656602][ T5217] ? trace_kmalloc+0x1f/0xd0 [ 58.661181][ T5217] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 58.667759][ T5217] ? kmemdup_noprof+0x45/0x60 [ 58.672431][ T5217] ? bch2_journal_entry_validate+0x6a/0xf0 [ 58.678228][ T5217] bch2_read_superblock_clean+0x207/0x520 [ 58.683940][ T5217] bch2_fs_recovery+0x1f4/0x39c0 [ 58.688872][ T5217] ? mark_lock+0x9a/0x360 [ 58.693191][ T5217] ? __lock_acquire+0x1384/0x2050 [ 58.698208][ T5217] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 58.703582][ T5217] ? __pfx_lock_release+0x10/0x10 [ 58.708600][ T5217] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 58.714224][ T5217] ? __pfx_lock_release+0x10/0x10 [ 58.719246][ T5217] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 58.724873][ T5217] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 58.730586][ T5217] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 58.736212][ T5217] ? llist_reverse_order+0x72/0x90 [ 58.741314][ T5217] bch2_fs_start+0x356/0x5b0 [ 58.745896][ T5217] bch2_fs_get_tree+0xd68/0x1710 [ 58.750856][ T5217] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 58.756220][ T5217] ? smack_fs_context_parse_param+0xff/0x170 [ 58.762193][ T5217] ? generic_parse_monolithic+0x387/0x400 [ 58.767909][ T5217] ? cap_capable+0x1b4/0x250 [ 58.772490][ T5217] ? safesetid_security_capable+0xb2/0x1d0 [ 58.778290][ T5217] vfs_get_tree+0x90/0x2b0 [ 58.782702][ T5217] do_new_mount+0x2be/0xb40 [ 58.787199][ T5217] ? __pfx_do_new_mount+0x10/0x10 [ 58.792221][ T5217] __se_sys_mount+0x2d6/0x3c0 [ 58.796894][ T5217] ? __pfx___se_sys_mount+0x10/0x10 [ 58.802086][ T5217] ? do_syscall_64+0x100/0x230 [ 58.806839][ T5217] ? __x64_sys_mount+0x20/0xc0 [ 58.811594][ T5217] do_syscall_64+0xf3/0x230 [ 58.816085][ T5217] ? clear_bhb_loop+0x35/0x90 [ 58.820751][ T5217] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.826662][ T5217] RIP: 0033:0x7f03745f0c7a [ 58.831072][ T5217] 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 [ 58.850677][ T5217] RSP: 002b:00007ffe7aca2868 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 58.859084][ T5217] RAX: ffffffffffffffda RBX: 00007ffe7aca2880 RCX: 00007f03745f0c7a [ 58.867047][ T5217] RDX: 0000000020005d80 RSI: 00000000200001c0 RDI: 00007ffe7aca2880 [ 58.875024][ T5217] RBP: 0000000000000004 R08: 00007ffe7aca28c0 R09: 0000000000005daf [ 58.883027][ T5217] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 58.891001][ T5217] R13: 00007ffe7aca28c0 R14: 0000000000000003 R15: 0000000001000000 [ 58.898975][ T5217]