./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1945826147 <...> [ 87.033626][ T937] cfg80211: failed to load regulatory.db Warning: Permanently added '10.128.0.224' (ED25519) to the list of known hosts. execve("./syz-executor1945826147", ["./syz-executor1945826147"], 0x7ffd6f8ca980 /* 10 vars */) = 0 brk(NULL) = 0x55556d15f000 brk(0x55556d15fd00) = 0x55556d15fd00 arch_prctl(ARCH_SET_FS, 0x55556d15f380) = 0 set_tid_address(0x55556d15f650) = 5220 set_robust_list(0x55556d15f660, 24) = 0 rseq(0x55556d15fca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1945826147", 4096) = 28 getrandom("\xc0\xb4\xde\xd9\xa7\xd6\xe8\xe2", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55556d15fd00 brk(0x55556d180d00) = 0x55556d180d00 brk(0x55556d181000) = 0x55556d181000 mprotect(0x7fecfe826000, 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) = 0x7fecf6200000 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(0x7fecf6200000, 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 [ 88.445655][ T5220] loop0: detected capacity change from 0 to 32768 [ 88.481168][ T5220] ======================================================= [ 88.481168][ T5220] WARNING: The mand mount option has been deprecated and [ 88.481168][ T5220] and is ignored by this kernel. Remove the mand [ 88.481168][ T5220] option from the mount to silence this warning. [ 88.481168][ T5220] ======================================================= [ 88.567465][ T5220] 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 [ 88.586525][ T5220] [ 88.588859][ T5220] ============================================ [ 88.595002][ T5220] WARNING: possible recursive locking detected [ 88.601153][ T5220] 6.12.0-rc2-syzkaller-00260-g9e4c6c1ad9a1 #0 Not tainted [ 88.608276][ T5220] -------------------------------------------- [ 88.614504][ T5220] syz-executor194/5220 is trying to acquire lock: [ 88.620935][ T5220] ffff888074b00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 88.630798][ T5220] [ 88.630798][ T5220] but task is already holding lock: [ 88.638156][ T5220] ffff888074b00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 88.647919][ T5220] [ 88.647919][ T5220] other info that might help us debug this: [ 88.656013][ T5220] Possible unsafe locking scenario: [ 88.656013][ T5220] [ 88.663552][ T5220] CPU0 [ 88.666831][ T5220] ---- [ 88.670111][ T5220] lock(&c->sb_lock); [ 88.674189][ T5220] lock(&c->sb_lock); [ 88.678268][ T5220] [ 88.678268][ T5220] *** DEADLOCK *** [ 88.678268][ T5220] [ 88.686408][ T5220] May be due to missing lock nesting notation [ 88.686408][ T5220] [ 88.694747][ T5220] 2 locks held by syz-executor194/5220: [ 88.700291][ T5220] #0: ffff888074b00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 88.709625][ T5220] #1: ffff888074b00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 88.719820][ T5220] [ 88.719820][ T5220] stack backtrace: [ 88.725744][ T5220] CPU: 1 UID: 0 PID: 5220 Comm: syz-executor194 Not tainted 6.12.0-rc2-syzkaller-00260-g9e4c6c1ad9a1 #0 [ 88.736895][ T5220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 88.746981][ T5220] Call Trace: [ 88.750264][ T5220] [ 88.753288][ T5220] dump_stack_lvl+0x241/0x360 [ 88.757990][ T5220] ? __pfx_dump_stack_lvl+0x10/0x10 [ 88.763204][ T5220] ? __pfx__printk+0x10/0x10 [ 88.767807][ T5220] ? lockdep_unlock+0x16a/0x300 [ 88.772673][ T5220] print_deadlock_bug+0x483/0x620 [ 88.777725][ T5220] validate_chain+0x15e2/0x5920 [ 88.782591][ T5220] ? __pfx___bfs+0x10/0x10 [ 88.787015][ T5220] ? __pfx_validate_chain+0x10/0x10 [ 88.792228][ T5220] ? mark_lock+0x9a/0x360 [ 88.796585][ T5220] ? __lock_acquire+0x1384/0x2050 [ 88.801642][ T5220] ? mark_lock+0x9a/0x360 [ 88.805996][ T5220] __lock_acquire+0x1384/0x2050 [ 88.810897][ T5220] lock_acquire+0x1ed/0x550 [ 88.815420][ T5220] ? bch2_replicas_entry_validate+0x2a/0x80 [ 88.821321][ T5220] ? __pfx_lock_acquire+0x10/0x10 [ 88.826363][ T5220] ? lockdep_hardirqs_on+0x99/0x150 [ 88.831579][ T5220] ? __pfx___might_resched+0x10/0x10 [ 88.836878][ T5220] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 88.842784][ T5220] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 88.849120][ T5220] ? stack_trace_save+0x118/0x1d0 [ 88.854167][ T5220] __mutex_lock+0x136/0xd70 [ 88.858850][ T5220] ? bch2_replicas_entry_validate+0x2a/0x80 [ 88.864755][ T5220] ? kasan_save_track+0x51/0x80 [ 88.869615][ T5220] ? kasan_save_track+0x3f/0x80 [ 88.874473][ T5220] ? __kasan_kmalloc+0x98/0xb0 [ 88.879249][ T5220] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 88.885842][ T5220] ? kmemdup_noprof+0x2a/0x60 [ 88.890524][ T5220] ? bch2_read_superblock_clean+0xd6/0x520 [ 88.896335][ T5220] ? bch2_replicas_entry_validate+0x2a/0x80 [ 88.902230][ T5220] ? bch2_fs_start+0x356/0x5b0 [ 88.907000][ T5220] ? __pfx___mutex_lock+0x10/0x10 [ 88.912027][ T5220] ? do_syscall_64+0xf3/0x230 [ 88.916714][ T5220] bch2_replicas_entry_validate+0x2a/0x80 [ 88.922444][ T5220] journal_entry_data_usage_validate+0x2b6/0x690 [ 88.928778][ T5220] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 88.935643][ T5220] ? journal_entry_usage_validate+0xc2/0x360 [ 88.941634][ T5220] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 88.948084][ T5220] ? rcu_is_watching+0x15/0xb0 [ 88.952872][ T5220] ? trace_kmalloc+0x1f/0xd0 [ 88.957471][ T5220] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 88.964069][ T5220] ? kmemdup_noprof+0x45/0x60 [ 88.968760][ T5220] ? bch2_journal_entry_validate+0x6a/0xf0 [ 88.974575][ T5220] bch2_read_superblock_clean+0x207/0x520 [ 88.980335][ T5220] bch2_fs_recovery+0x1f4/0x39c0 [ 88.985304][ T5220] ? mark_lock+0x9a/0x360 [ 88.989664][ T5220] ? __lock_acquire+0x1384/0x2050 [ 88.994721][ T5220] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 89.000127][ T5220] ? __pfx_lock_release+0x10/0x10 [ 89.005204][ T5220] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 89.010854][ T5220] ? __pfx_lock_release+0x10/0x10 [ 89.015901][ T5220] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 89.021554][ T5220] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 89.027286][ T5220] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 89.032932][ T5220] ? llist_reverse_order+0x72/0x90 [ 89.038062][ T5220] bch2_fs_start+0x356/0x5b0 [ 89.042695][ T5220] bch2_fs_get_tree+0xd68/0x1710 [ 89.047696][ T5220] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 89.053118][ T5220] ? smack_fs_context_parse_param+0xff/0x170 [ 89.059133][ T5220] ? generic_parse_monolithic+0x387/0x400 [ 89.064873][ T5220] ? cap_capable+0x1b4/0x250 [ 89.069475][ T5220] ? safesetid_security_capable+0xb2/0x1d0 [ 89.075294][ T5220] vfs_get_tree+0x90/0x2b0 [ 89.079726][ T5220] do_new_mount+0x2be/0xb40 [ 89.084245][ T5220] ? __pfx_do_new_mount+0x10/0x10 [ 89.089389][ T5220] __se_sys_mount+0x2d6/0x3c0 [ 89.094112][ T5220] ? __pfx___se_sys_mount+0x10/0x10 [ 89.099338][ T5220] ? do_syscall_64+0x100/0x230 [ 89.104114][ T5220] ? __x64_sys_mount+0x20/0xc0 [ 89.108896][ T5220] do_syscall_64+0xf3/0x230 [ 89.113411][ T5220] ? clear_bhb_loop+0x35/0x90 [ 89.118091][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 89.124016][ T5220] RIP: 0033:0x7fecfe7aec7a [ 89.128442][ 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 [ 89.148154][ T5220] RSP: 002b:00007ffe9f625058 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 89.156610][ T5220] RAX: ffffffffffffffda RBX: 00007ffe9f625070 RCX: 00007fecfe7aec7a [ 89.164692][ T5220] RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007ffe9f625070 [ 89.172754][ T5220] RBP: 0000000000000004 R08: 00007ffe9f6250b0 R09: 0000000000005de4 [ 89.180727][ T5220] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 89.188704][ T5220] R13: 00007ffe9f6250b0 R14: 0000000000000003 R15: 0000000001000000 [ 89.196688][ T5220]