./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2178371715 <...> Warning: Permanently added '10.128.0.86' (ED25519) to the list of known hosts. execve("./syz-executor2178371715", ["./syz-executor2178371715"], 0x7ffe89481320 /* 10 vars */) = 0 brk(NULL) = 0x555555aa6000 brk(0x555555aa6d00) = 0x555555aa6d00 arch_prctl(ARCH_SET_FS, 0x555555aa6380) = 0 set_tid_address(0x555555aa6650) = 5220 set_robust_list(0x555555aa6660, 24) = 0 rseq(0x555555aa6ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2178371715", 4096) = 28 getrandom("\x94\x98\x10\x7d\xbc\xdd\xd9\x4a", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555aa6d00 brk(0x555555ac7d00) = 0x555555ac7d00 brk(0x555555ac8000) = 0x555555ac8000 mprotect(0x7f0be88b3000, 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) = 0x7f0be0200000 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(0x7f0be0200000, 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.161174][ T5220] loop0: detected capacity change from 0 to 32768 [ 73.206085][ T5220] ======================================================= [ 73.206085][ T5220] WARNING: The mand mount option has been deprecated and [ 73.206085][ T5220] and is ignored by this kernel. Remove the mand [ 73.206085][ T5220] option from the mount to silence this warning. [ 73.206085][ T5220] ======================================================= [ 73.296853][ T5220] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,compression=zstd,background_compression=lz4,norecovery,recovery_pass_last=check_dirents,nojournal_transaction_names [ 73.316398][ T5220] [ 73.318745][ T5220] ============================================ [ 73.324902][ T5220] WARNING: possible recursive locking detected [ 73.331063][ T5220] 6.12.0-rc2-syzkaller #0 Not tainted [ 73.336518][ T5220] -------------------------------------------- [ 73.342680][ T5220] syz-executor217/5220 is trying to acquire lock: [ 73.349092][ T5220] ffff888073200908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 73.358971][ T5220] [ 73.358971][ T5220] but task is already holding lock: [ 73.366354][ T5220] ffff888073200908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 73.376239][ T5220] [ 73.376239][ T5220] other info that might help us debug this: [ 73.384299][ T5220] Possible unsafe locking scenario: [ 73.384299][ T5220] [ 73.391771][ T5220] CPU0 [ 73.395074][ T5220] ---- [ 73.398507][ T5220] lock(&c->sb_lock); [ 73.402638][ T5220] lock(&c->sb_lock); [ 73.406826][ T5220] [ 73.406826][ T5220] *** DEADLOCK *** [ 73.406826][ T5220] [ 73.415182][ T5220] May be due to missing lock nesting notation [ 73.415182][ T5220] [ 73.423527][ T5220] 2 locks held by syz-executor217/5220: [ 73.429096][ T5220] #0: ffff888073200278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 73.438599][ T5220] #1: ffff888073200908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 73.448830][ T5220] [ 73.448830][ T5220] stack backtrace: [ 73.454733][ T5220] CPU: 0 UID: 0 PID: 5220 Comm: syz-executor217 Not tainted 6.12.0-rc2-syzkaller #0 [ 73.464129][ T5220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 73.474237][ T5220] Call Trace: [ 73.477538][ T5220] [ 73.480532][ T5220] dump_stack_lvl+0x241/0x360 [ 73.485226][ T5220] ? __pfx_dump_stack_lvl+0x10/0x10 [ 73.490427][ T5220] ? __pfx__printk+0x10/0x10 [ 73.495131][ T5220] ? lockdep_unlock+0x16a/0x300 [ 73.499992][ T5220] print_deadlock_bug+0x483/0x620 [ 73.505026][ T5220] validate_chain+0x15e2/0x5920 [ 73.509891][ T5220] ? __pfx___bfs+0x10/0x10 [ 73.514312][ T5220] ? __pfx_validate_chain+0x10/0x10 [ 73.519628][ T5220] ? mark_lock+0x9a/0x360 [ 73.523962][ T5220] ? __lock_acquire+0x1384/0x2050 [ 73.529094][ T5220] ? mark_lock+0x9a/0x360 [ 73.533523][ T5220] __lock_acquire+0x1384/0x2050 [ 73.538387][ T5220] lock_acquire+0x1ed/0x550 [ 73.542917][ T5220] ? bch2_replicas_entry_validate+0x2a/0x80 [ 73.548902][ T5220] ? __pfx_lock_acquire+0x10/0x10 [ 73.553935][ T5220] ? lockdep_hardirqs_on+0x99/0x150 [ 73.559185][ T5220] ? __pfx___might_resched+0x10/0x10 [ 73.564827][ T5220] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 73.570732][ T5220] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 73.577073][ T5220] ? stack_trace_save+0x118/0x1d0 [ 73.582123][ T5220] __mutex_lock+0x136/0xd70 [ 73.586622][ T5220] ? bch2_replicas_entry_validate+0x2a/0x80 [ 73.592514][ T5220] ? kasan_save_track+0x51/0x80 [ 73.597368][ T5220] ? kasan_save_track+0x3f/0x80 [ 73.602222][ T5220] ? __kasan_kmalloc+0x98/0xb0 [ 73.606990][ T5220] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 73.613584][ T5220] ? kmemdup_noprof+0x2a/0x60 [ 73.618262][ T5220] ? bch2_read_superblock_clean+0xd6/0x520 [ 73.624094][ T5220] ? bch2_replicas_entry_validate+0x2a/0x80 [ 73.629997][ T5220] ? bch2_fs_start+0x356/0x5b0 [ 73.634763][ T5220] ? __pfx___mutex_lock+0x10/0x10 [ 73.639789][ T5220] ? do_syscall_64+0xf3/0x230 [ 73.644559][ T5220] bch2_replicas_entry_validate+0x2a/0x80 [ 73.650279][ T5220] journal_entry_data_usage_validate+0x2b6/0x690 [ 73.656613][ T5220] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 73.663487][ T5220] ? journal_entry_usage_validate+0xc2/0x360 [ 73.669509][ T5220] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 73.675966][ T5220] ? rcu_is_watching+0x15/0xb0 [ 73.680742][ T5220] ? trace_kmalloc+0x1f/0xd0 [ 73.685332][ T5220] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 73.691945][ T5220] ? kmemdup_noprof+0x45/0x60 [ 73.696662][ T5220] ? bch2_journal_entry_validate+0x6a/0xf0 [ 73.702476][ T5220] bch2_read_superblock_clean+0x207/0x520 [ 73.708200][ T5220] bch2_fs_recovery+0x1f4/0x39c0 [ 73.713144][ T5220] ? mark_lock+0x9a/0x360 [ 73.717506][ T5220] ? __lock_acquire+0x1384/0x2050 [ 73.722551][ T5220] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 73.728064][ T5220] ? __pfx_lock_release+0x10/0x10 [ 73.733144][ T5220] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 73.739225][ T5220] ? __pfx_lock_release+0x10/0x10 [ 73.744280][ T5220] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 73.750060][ T5220] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 73.755820][ T5220] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 73.761594][ T5220] ? llist_reverse_order+0x72/0x90 [ 73.766711][ T5220] bch2_fs_start+0x356/0x5b0 [ 73.771325][ T5220] bch2_fs_get_tree+0xd68/0x1710 [ 73.776361][ T5220] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 73.781836][ T5220] ? generic_parse_monolithic+0x387/0x400 [ 73.787573][ T5220] ? cap_capable+0x1b4/0x250 [ 73.792204][ T5220] ? safesetid_security_capable+0xb2/0x1d0 [ 73.798026][ T5220] vfs_get_tree+0x90/0x2b0 [ 73.802461][ T5220] do_new_mount+0x2be/0xb40 [ 73.806988][ T5220] ? __pfx_do_new_mount+0x10/0x10 [ 73.812026][ T5220] __se_sys_mount+0x2d6/0x3c0 [ 73.816734][ T5220] ? __pfx___se_sys_mount+0x10/0x10 [ 73.821952][ T5220] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 73.828296][ T5220] ? __irq_exit_rcu+0x100/0x1c0 [ 73.833160][ T5220] ? __x64_sys_mount+0x20/0xc0 [ 73.837934][ T5220] do_syscall_64+0xf3/0x230 [ 73.842452][ T5220] ? clear_bhb_loop+0x35/0x90 [ 73.847217][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 73.853146][ T5220] RIP: 0033:0x7f0be883bbba [ 73.857562][ T5220] 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 [ 73.877212][ T5220] RSP: 002b:00007ffc8f1a9788 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 73.885702][ T5220] RAX: ffffffffffffffda RBX: 00007ffc8f1a97a0 RCX: 00007f0be883bbba [ 73.893687][ T5220] RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007ffc8f1a97a0 [ 73.901666][ T5220] RBP: 0000000000000004 R08: 00007ffc8f1a97e0 R09: 0000000000005daf [ 73.909697][ T5220] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 73.917771][ T5220] R13: 00007ffc8f1a97e0 R14: 0000000000000003 R15: 0000000001000000 [ 73.925783][ T5220]