./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3921772649 <...> Warning: Permanently added '10.128.1.156' (ED25519) to the list of known hosts. execve("./syz-executor3921772649", ["./syz-executor3921772649"], 0x7ffe1bf2f480 /* 10 vars */) = 0 brk(NULL) = 0x55557c7dd000 brk(0x55557c7ddd00) = 0x55557c7ddd00 arch_prctl(ARCH_SET_FS, 0x55557c7dd380) = 0 set_tid_address(0x55557c7dd650) = 5224 set_robust_list(0x55557c7dd660, 24) = 0 rseq(0x55557c7ddca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3921772649", 4096) = 28 getrandom("\x5c\x17\xaa\x15\x89\x78\x10\x48", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55557c7ddd00 brk(0x55557c7fed00) = 0x55557c7fed00 brk(0x55557c7ff000) = 0x55557c7ff000 mprotect(0x7f649cc9e000, 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) = 0x7f6494600000 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(0x7f6494600000, 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 [ 52.861367][ T5224] loop0: detected capacity change from 0 to 32768 [ 52.904641][ T5224] ======================================================= [ 52.904641][ T5224] WARNING: The mand mount option has been deprecated and [ 52.904641][ T5224] and is ignored by this kernel. Remove the mand [ 52.904641][ T5224] option from the mount to silence this warning. [ 52.904641][ T5224] ======================================================= [ 52.969862][ T5224] 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 [ 52.988652][ T5224] [ 52.990982][ T5224] ============================================ [ 52.997125][ T5224] WARNING: possible recursive locking detected [ 53.003263][ T5224] 6.12.0-rc2-syzkaller-00100-geb952c47d154 #0 Not tainted [ 53.010347][ T5224] -------------------------------------------- [ 53.016474][ T5224] syz-executor392/5224 is trying to acquire lock: [ 53.022866][ T5224] ffff888073680908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 53.032713][ T5224] [ 53.032713][ T5224] but task is already holding lock: [ 53.040064][ T5224] ffff888073680908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 53.049797][ T5224] [ 53.049797][ T5224] other info that might help us debug this: [ 53.057840][ T5224] Possible unsafe locking scenario: [ 53.057840][ T5224] [ 53.065278][ T5224] CPU0 [ 53.068548][ T5224] ---- [ 53.071812][ T5224] lock(&c->sb_lock); [ 53.075895][ T5224] lock(&c->sb_lock); [ 53.079942][ T5224] [ 53.079942][ T5224] *** DEADLOCK *** [ 53.079942][ T5224] [ 53.088076][ T5224] May be due to missing lock nesting notation [ 53.088076][ T5224] [ 53.096378][ T5224] 2 locks held by syz-executor392/5224: [ 53.101920][ T5224] #0: ffff888073680278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 53.111217][ T5224] #1: ffff888073680908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 53.121369][ T5224] [ 53.121369][ T5224] stack backtrace: [ 53.127251][ T5224] CPU: 1 UID: 0 PID: 5224 Comm: syz-executor392 Not tainted 6.12.0-rc2-syzkaller-00100-geb952c47d154 #0 [ 53.138342][ T5224] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 53.148401][ T5224] Call Trace: [ 53.151664][ T5224] [ 53.154582][ T5224] dump_stack_lvl+0x241/0x360 [ 53.159250][ T5224] ? __pfx_dump_stack_lvl+0x10/0x10 [ 53.164436][ T5224] ? __pfx__printk+0x10/0x10 [ 53.169007][ T5224] ? lockdep_unlock+0x16a/0x300 [ 53.173850][ T5224] print_deadlock_bug+0x483/0x620 [ 53.178863][ T5224] validate_chain+0x15e2/0x5920 [ 53.183708][ T5224] ? __pfx___bfs+0x10/0x10 [ 53.188107][ T5224] ? __pfx_validate_chain+0x10/0x10 [ 53.193284][ T5224] ? mark_lock+0x9a/0x360 [ 53.197610][ T5224] ? __lock_acquire+0x1384/0x2050 [ 53.202618][ T5224] ? mark_lock+0x9a/0x360 [ 53.206949][ T5224] __lock_acquire+0x1384/0x2050 [ 53.211808][ T5224] lock_acquire+0x1ed/0x550 [ 53.216299][ T5224] ? bch2_replicas_entry_validate+0x2a/0x80 [ 53.222175][ T5224] ? __pfx_lock_acquire+0x10/0x10 [ 53.227182][ T5224] ? lockdep_hardirqs_on+0x99/0x150 [ 53.232375][ T5224] ? __pfx___might_resched+0x10/0x10 [ 53.237650][ T5224] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 53.243539][ T5224] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 53.249871][ T5224] ? stack_trace_save+0x118/0x1d0 [ 53.254886][ T5224] __mutex_lock+0x136/0xd70 [ 53.259370][ T5224] ? bch2_replicas_entry_validate+0x2a/0x80 [ 53.265245][ T5224] ? kasan_save_track+0x51/0x80 [ 53.270075][ T5224] ? kasan_save_track+0x3f/0x80 [ 53.274905][ T5224] ? __kasan_kmalloc+0x98/0xb0 [ 53.279658][ T5224] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 53.286237][ T5224] ? kmemdup_noprof+0x2a/0x60 [ 53.290904][ T5224] ? bch2_read_superblock_clean+0xd6/0x520 [ 53.296705][ T5224] ? bch2_replicas_entry_validate+0x2a/0x80 [ 53.302585][ T5224] ? bch2_fs_start+0x356/0x5b0 [ 53.307340][ T5224] ? __pfx___mutex_lock+0x10/0x10 [ 53.312348][ T5224] ? do_syscall_64+0xf3/0x230 [ 53.317012][ T5224] bch2_replicas_entry_validate+0x2a/0x80 [ 53.322736][ T5224] journal_entry_data_usage_validate+0x2b6/0x690 [ 53.329059][ T5224] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 53.335923][ T5224] ? journal_entry_usage_validate+0xc2/0x360 [ 53.341883][ T5224] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 53.348283][ T5224] ? rcu_is_watching+0x15/0xb0 [ 53.353054][ T5224] ? trace_kmalloc+0x1f/0xd0 [ 53.357642][ T5224] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 53.364215][ T5224] ? kmemdup_noprof+0x45/0x60 [ 53.368874][ T5224] ? bch2_journal_entry_validate+0x6a/0xf0 [ 53.374672][ T5224] bch2_read_superblock_clean+0x207/0x520 [ 53.380383][ T5224] bch2_fs_recovery+0x1f4/0x39c0 [ 53.385303][ T5224] ? mark_lock+0x9a/0x360 [ 53.389610][ T5224] ? __lock_acquire+0x1384/0x2050 [ 53.394638][ T5224] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 53.399997][ T5224] ? __pfx_lock_release+0x10/0x10 [ 53.405006][ T5224] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 53.410619][ T5224] ? __pfx_lock_release+0x10/0x10 [ 53.415639][ T5224] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 53.421265][ T5224] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 53.426969][ T5224] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 53.432607][ T5224] ? llist_reverse_order+0x72/0x90 [ 53.437710][ T5224] bch2_fs_start+0x356/0x5b0 [ 53.442299][ T5224] bch2_fs_get_tree+0xd68/0x1710 [ 53.447235][ T5224] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 53.452610][ T5224] ? smack_fs_context_parse_param+0xff/0x170 [ 53.458589][ T5224] ? generic_parse_monolithic+0x387/0x400 [ 53.464302][ T5224] ? cap_capable+0x1b4/0x250 [ 53.468877][ T5224] ? safesetid_security_capable+0xb2/0x1d0 [ 53.474671][ T5224] vfs_get_tree+0x90/0x2b0 [ 53.479077][ T5224] do_new_mount+0x2be/0xb40 [ 53.483580][ T5224] ? __pfx_do_new_mount+0x10/0x10 [ 53.488587][ T5224] __se_sys_mount+0x2d6/0x3c0 [ 53.493243][ T5224] ? __pfx___se_sys_mount+0x10/0x10 [ 53.498424][ T5224] ? do_syscall_64+0x100/0x230 [ 53.503171][ T5224] ? __x64_sys_mount+0x20/0xc0 [ 53.507916][ T5224] do_syscall_64+0xf3/0x230 [ 53.512399][ T5224] ? clear_bhb_loop+0x35/0x90 [ 53.517055][ T5224] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 53.522941][ T5224] RIP: 0033:0x7f649cc269ba [ 53.527341][ T5224] 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 [ 53.546930][ T5224] RSP: 002b:00007ffecd3c5aa8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 53.555324][ T5224] RAX: ffffffffffffffda RBX: 00007ffecd3c5ac0 RCX: 00007f649cc269ba [ 53.563275][ T5224] RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007ffecd3c5ac0 [ 53.571225][ T5224] RBP: 0000000000000004 R08: 00007ffecd3c5b00 R09: 0000000000005e0c [ 53.579189][ T5224] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 53.587158][ T5224] R13: 00007ffecd3c5b00 R14: 0000000000000003 R15: 0000000001000000 [ 53.595115][ T5224]