./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1279790947 <...> Warning: Permanently added '10.128.1.248' (ED25519) to the list of known hosts. execve("./syz-executor1279790947", ["./syz-executor1279790947"], 0x7fffbe0d6d90 /* 10 vars */) = 0 brk(NULL) = 0x5555818fd000 brk(0x5555818fdd00) = 0x5555818fdd00 arch_prctl(ARCH_SET_FS, 0x5555818fd380) = 0 set_tid_address(0x5555818fd650) = 5218 set_robust_list(0x5555818fd660, 24) = 0 rseq(0x5555818fdca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1279790947", 4096) = 28 getrandom("\x64\x01\x47\x70\xe9\x53\x58\x36", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555818fdd00 brk(0x55558191ed00) = 0x55558191ed00 brk(0x55558191f000) = 0x55558191f000 mprotect(0x7f1b2f66b000, 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) = 0x7f1b27000000 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(0x7f1b27000000, 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 [ 64.924155][ T5218] loop0: detected capacity change from 0 to 32768 [ 64.965813][ T5218] ======================================================= [ 64.965813][ T5218] WARNING: The mand mount option has been deprecated and [ 64.965813][ T5218] and is ignored by this kernel. Remove the mand [ 64.965813][ T5218] option from the mount to silence this warning. [ 64.965813][ T5218] ======================================================= [ 65.063631][ T5218] 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 [ 65.082475][ T5218] [ 65.084821][ T5218] ============================================ [ 65.090970][ T5218] WARNING: possible recursive locking detected [ 65.097132][ T5218] 6.12.0-rc2-syzkaller-00100-geb952c47d154 #0 Not tainted [ 65.104259][ T5218] -------------------------------------------- [ 65.110431][ T5218] syz-executor127/5218 is trying to acquire lock: [ 65.116834][ T5218] ffff888072f00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 65.126706][ T5218] [ 65.126706][ T5218] but task is already holding lock: [ 65.134084][ T5218] ffff888072f00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 65.143835][ T5218] [ 65.143835][ T5218] other info that might help us debug this: [ 65.151890][ T5218] Possible unsafe locking scenario: [ 65.151890][ T5218] [ 65.159352][ T5218] CPU0 [ 65.162625][ T5218] ---- [ 65.165896][ T5218] lock(&c->sb_lock); [ 65.169968][ T5218] lock(&c->sb_lock); [ 65.174034][ T5218] [ 65.174034][ T5218] *** DEADLOCK *** [ 65.174034][ T5218] [ 65.182253][ T5218] May be due to missing lock nesting notation [ 65.182253][ T5218] [ 65.190569][ T5218] 2 locks held by syz-executor127/5218: [ 65.196106][ T5218] #0: ffff888072f00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 65.205432][ T5218] #1: ffff888072f00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 65.215650][ T5218] [ 65.215650][ T5218] stack backtrace: [ 65.221543][ T5218] CPU: 0 UID: 0 PID: 5218 Comm: syz-executor127 Not tainted 6.12.0-rc2-syzkaller-00100-geb952c47d154 #0 [ 65.232656][ T5218] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 65.242732][ T5218] Call Trace: [ 65.246014][ T5218] [ 65.248949][ T5218] dump_stack_lvl+0x241/0x360 [ 65.253642][ T5218] ? __pfx_dump_stack_lvl+0x10/0x10 [ 65.258855][ T5218] ? __pfx__printk+0x10/0x10 [ 65.263462][ T5218] ? lockdep_unlock+0x16a/0x300 [ 65.268332][ T5218] print_deadlock_bug+0x483/0x620 [ 65.273362][ T5218] validate_chain+0x15e2/0x5920 [ 65.278226][ T5218] ? __pfx_validate_chain+0x10/0x10 [ 65.283428][ T5218] ? mark_lock+0x9a/0x360 [ 65.287780][ T5218] ? __lock_acquire+0x1384/0x2050 [ 65.292816][ T5218] ? mark_lock+0x9a/0x360 [ 65.297168][ T5218] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 65.303166][ T5218] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 65.309508][ T5218] ? mark_lock+0x9a/0x360 [ 65.313851][ T5218] ? lockdep_hardirqs_on+0x99/0x150 [ 65.319056][ T5218] __lock_acquire+0x1384/0x2050 [ 65.323937][ T5218] lock_acquire+0x1ed/0x550 [ 65.328447][ T5218] ? bch2_replicas_entry_validate+0x2a/0x80 [ 65.334348][ T5218] ? __pfx_lock_acquire+0x10/0x10 [ 65.339384][ T5218] ? __pfx_kfence_guarded_alloc+0x10/0x10 [ 65.345102][ T5218] ? __pfx___might_resched+0x10/0x10 [ 65.350405][ T5218] __mutex_lock+0x136/0xd70 [ 65.354900][ T5218] ? bch2_replicas_entry_validate+0x2a/0x80 [ 65.360894][ T5218] ? __kfence_alloc+0x274/0x370 [ 65.365753][ T5218] ? __kmalloc_node_track_caller_noprof+0x395/0x440 [ 65.372340][ T5218] ? bch2_read_superblock_clean+0xd6/0x520 [ 65.378149][ T5218] ? bch2_fs_recovery+0x1f4/0x39c0 [ 65.383269][ T5218] ? bch2_fs_get_tree+0xd68/0x1710 [ 65.388401][ T5218] ? vfs_get_tree+0x90/0x2b0 [ 65.392998][ T5218] ? do_new_mount+0x2be/0xb40 [ 65.397677][ T5218] ? __se_sys_mount+0x2d6/0x3c0 [ 65.402533][ T5218] ? do_syscall_64+0xf3/0x230 [ 65.407219][ T5218] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 65.413303][ T5218] ? bch2_replicas_entry_validate+0x2a/0x80 [ 65.419212][ T5218] ? __pfx___mutex_lock+0x10/0x10 [ 65.424299][ T5218] bch2_replicas_entry_validate+0x2a/0x80 [ 65.430042][ T5218] journal_entry_data_usage_validate+0x2b6/0x690 [ 65.436391][ T5218] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 65.443260][ T5218] ? journal_entry_usage_validate+0xc2/0x360 [ 65.449259][ T5218] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 65.455713][ T5218] ? rcu_is_watching+0x15/0xb0 [ 65.460484][ T5218] ? trace_kmalloc+0x1f/0xd0 [ 65.465094][ T5218] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 65.471702][ T5218] ? kmemdup_noprof+0x45/0x60 [ 65.476405][ T5218] ? bch2_journal_entry_validate+0x6a/0xf0 [ 65.482238][ T5218] bch2_read_superblock_clean+0x207/0x520 [ 65.487980][ T5218] bch2_fs_recovery+0x1f4/0x39c0 [ 65.493029][ T5218] ? mark_lock+0x9a/0x360 [ 65.497360][ T5218] ? __lock_acquire+0x1384/0x2050 [ 65.502498][ T5218] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 65.507881][ T5218] ? __pfx_lock_release+0x10/0x10 [ 65.512912][ T5218] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.518561][ T5218] ? __pfx_lock_release+0x10/0x10 [ 65.523626][ T5218] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.529267][ T5218] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 65.535002][ T5218] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.540650][ T5218] ? llist_reverse_order+0x72/0x90 [ 65.545763][ T5218] bch2_fs_start+0x356/0x5b0 [ 65.550372][ T5218] bch2_fs_get_tree+0xd68/0x1710 [ 65.555351][ T5218] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 65.560737][ T5218] ? smack_fs_context_parse_param+0xff/0x170 [ 65.566734][ T5218] ? generic_parse_monolithic+0x387/0x400 [ 65.572464][ T5218] ? cap_capable+0x1b4/0x250 [ 65.577053][ T5218] ? safesetid_security_capable+0xb2/0x1d0 [ 65.583037][ T5218] vfs_get_tree+0x90/0x2b0 [ 65.587480][ T5218] do_new_mount+0x2be/0xb40 [ 65.591986][ T5218] ? __pfx_do_new_mount+0x10/0x10 [ 65.597016][ T5218] __se_sys_mount+0x2d6/0x3c0 [ 65.601702][ T5218] ? __pfx___se_sys_mount+0x10/0x10 [ 65.606902][ T5218] ? do_syscall_64+0x100/0x230 [ 65.611666][ T5218] ? __x64_sys_mount+0x20/0xc0 [ 65.616525][ T5218] do_syscall_64+0xf3/0x230 [ 65.621042][ T5218] ? clear_bhb_loop+0x35/0x90 [ 65.625719][ T5218] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 65.631638][ T5218] RIP: 0033:0x7f1b2f5f3c3a [ 65.636058][ T5218] 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 [ 65.655764][ T5218] RSP: 002b:00007ffc220f84b8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 65.664182][ T5218] RAX: ffffffffffffffda RBX: 00007ffc220f84d0 RCX: 00007f1b2f5f3c3a [ 65.672158][ T5218] RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007ffc220f84d0 [ 65.680132][ T5218] RBP: 0000000000000004 R08: 00007ffc220f8510 R09: 0000000000005de8 [ 65.688111][ T5218] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 65.696081][ T5218] R13: 00007ffc220f8510 R14: 0000000000000003 R15: 0000000001000000 [ 65.704144][ T5218]