./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3882245831 <...> Warning: Permanently added '10.128.0.173' (ED25519) to the list of known hosts. execve("./syz-executor3882245831", ["./syz-executor3882245831"], 0x7ffee3aee230 /* 10 vars */) = 0 brk(NULL) = 0x555581e0b000 brk(0x555581e0bd00) = 0x555581e0bd00 arch_prctl(ARCH_SET_FS, 0x555581e0b380) = 0 set_tid_address(0x555581e0b650) = 5221 set_robust_list(0x555581e0b660, 24) = 0 rseq(0x555581e0bca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3882245831", 4096) = 28 getrandom("\xa4\x75\x84\xb9\xb8\x32\xd3\xc5", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555581e0bd00 brk(0x555581e2cd00) = 0x555581e2cd00 brk(0x555581e2d000) = 0x555581e2d000 mprotect(0x7f7b8fd3f000, 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) = 0x7f7b87800000 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(0x7f7b87800000, 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 [ 56.161092][ T5221] loop0: detected capacity change from 0 to 32768 [ 56.198235][ T5221] ======================================================= [ 56.198235][ T5221] WARNING: The mand mount option has been deprecated and [ 56.198235][ T5221] and is ignored by this kernel. Remove the mand [ 56.198235][ T5221] option from the mount to silence this warning. [ 56.198235][ T5221] ======================================================= [ 56.261857][ T5221] 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 [ 56.280899][ T5221] [ 56.283236][ T5221] ============================================ [ 56.289368][ T5221] WARNING: possible recursive locking detected [ 56.295504][ T5221] 6.12.0-rc2-syzkaller-00291-g09f6b0c8904b #0 Not tainted [ 56.302597][ T5221] -------------------------------------------- [ 56.308731][ T5221] syz-executor388/5221 is trying to acquire lock: [ 56.315129][ T5221] ffff88804b000908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 56.324985][ T5221] [ 56.324985][ T5221] but task is already holding lock: [ 56.332331][ T5221] ffff88804b000908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 56.342065][ T5221] [ 56.342065][ T5221] other info that might help us debug this: [ 56.350107][ T5221] Possible unsafe locking scenario: [ 56.350107][ T5221] [ 56.357540][ T5221] CPU0 [ 56.360803][ T5221] ---- [ 56.364066][ T5221] lock(&c->sb_lock); [ 56.368122][ T5221] lock(&c->sb_lock); [ 56.372177][ T5221] [ 56.372177][ T5221] *** DEADLOCK *** [ 56.372177][ T5221] [ 56.380301][ T5221] May be due to missing lock nesting notation [ 56.380301][ T5221] [ 56.388606][ T5221] 2 locks held by syz-executor388/5221: [ 56.394133][ T5221] #0: ffff88804b000278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 56.403438][ T5221] #1: ffff88804b000908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 56.413607][ T5221] [ 56.413607][ T5221] stack backtrace: [ 56.419494][ T5221] CPU: 1 UID: 0 PID: 5221 Comm: syz-executor388 Not tainted 6.12.0-rc2-syzkaller-00291-g09f6b0c8904b #0 [ 56.430592][ T5221] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 56.440656][ T5221] Call Trace: [ 56.443936][ T5221] [ 56.446864][ T5221] dump_stack_lvl+0x241/0x360 [ 56.451563][ T5221] ? __pfx_dump_stack_lvl+0x10/0x10 [ 56.456754][ T5221] ? __pfx__printk+0x10/0x10 [ 56.461335][ T5221] ? lockdep_unlock+0x16a/0x300 [ 56.466187][ T5221] print_deadlock_bug+0x483/0x620 [ 56.471208][ T5221] validate_chain+0x15e2/0x5920 [ 56.476056][ T5221] ? __pfx_validate_chain+0x10/0x10 [ 56.481244][ T5221] ? mark_lock+0x9a/0x360 [ 56.485566][ T5221] ? __lock_acquire+0x1384/0x2050 [ 56.490588][ T5221] ? mark_lock+0x9a/0x360 [ 56.494909][ T5221] ? mark_lock+0x9a/0x360 [ 56.499222][ T5221] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 56.505543][ T5221] __lock_acquire+0x1384/0x2050 [ 56.510392][ T5221] lock_acquire+0x1ed/0x550 [ 56.514888][ T5221] ? bch2_replicas_entry_validate+0x2a/0x80 [ 56.520785][ T5221] ? __pfx_lock_acquire+0x10/0x10 [ 56.525812][ T5221] ? __pfx_kfence_guarded_alloc+0x10/0x10 [ 56.531525][ T5221] ? __pfx___might_resched+0x10/0x10 [ 56.536801][ T5221] ? native_apic_msr_write+0x39/0x50 [ 56.542082][ T5221] __mutex_lock+0x136/0xd70 [ 56.546577][ T5221] ? bch2_replicas_entry_validate+0x2a/0x80 [ 56.552459][ T5221] ? __kfence_alloc+0x274/0x370 [ 56.557310][ T5221] ? __kmalloc_node_track_caller_noprof+0x395/0x440 [ 56.563892][ T5221] ? bch2_read_superblock_clean+0xd6/0x520 [ 56.569777][ T5221] ? bch2_fs_recovery+0x1f4/0x39c0 [ 56.574880][ T5221] ? bch2_fs_get_tree+0xd68/0x1710 [ 56.579983][ T5221] ? vfs_get_tree+0x90/0x2b0 [ 56.584568][ T5221] ? do_new_mount+0x2be/0xb40 [ 56.589237][ T5221] ? __se_sys_mount+0x2d6/0x3c0 [ 56.594076][ T5221] ? do_syscall_64+0xf3/0x230 [ 56.598743][ T5221] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 56.604801][ T5221] ? bch2_replicas_entry_validate+0x2a/0x80 [ 56.610678][ T5221] ? __pfx___mutex_lock+0x10/0x10 [ 56.615694][ T5221] bch2_replicas_entry_validate+0x2a/0x80 [ 56.621399][ T5221] journal_entry_data_usage_validate+0x2b6/0x690 [ 56.627716][ T5221] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 56.634556][ T5221] ? journal_entry_usage_validate+0xc2/0x360 [ 56.640522][ T5221] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 56.646924][ T5221] ? rcu_is_watching+0x15/0xb0 [ 56.651679][ T5221] ? trace_kmalloc+0x1f/0xd0 [ 56.656254][ T5221] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 56.662828][ T5221] ? kmemdup_noprof+0x45/0x60 [ 56.667494][ T5221] ? bch2_journal_entry_validate+0x6a/0xf0 [ 56.673305][ T5221] bch2_read_superblock_clean+0x207/0x520 [ 56.679029][ T5221] bch2_fs_recovery+0x1f4/0x39c0 [ 56.683962][ T5221] ? mark_lock+0x9a/0x360 [ 56.688284][ T5221] ? __lock_acquire+0x1384/0x2050 [ 56.693306][ T5221] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 56.698681][ T5221] ? __pfx_lock_release+0x10/0x10 [ 56.703702][ T5221] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 56.709340][ T5221] ? __pfx_lock_release+0x10/0x10 [ 56.714363][ T5221] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 56.719990][ T5221] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 56.725700][ T5221] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 56.731326][ T5221] ? llist_reverse_order+0x72/0x90 [ 56.736426][ T5221] bch2_fs_start+0x356/0x5b0 [ 56.741009][ T5221] bch2_fs_get_tree+0xd68/0x1710 [ 56.745945][ T5221] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 56.751305][ T5221] ? smack_fs_context_parse_param+0xff/0x170 [ 56.757282][ T5221] ? generic_parse_monolithic+0x387/0x400 [ 56.763000][ T5221] ? cap_capable+0x1b4/0x250 [ 56.767581][ T5221] ? safesetid_security_capable+0xb2/0x1d0 [ 56.773375][ T5221] vfs_get_tree+0x90/0x2b0 [ 56.777783][ T5221] do_new_mount+0x2be/0xb40 [ 56.782279][ T5221] ? __pfx_do_new_mount+0x10/0x10 [ 56.787294][ T5221] __se_sys_mount+0x2d6/0x3c0 [ 56.791961][ T5221] ? __pfx___se_sys_mount+0x10/0x10 [ 56.797153][ T5221] ? do_syscall_64+0x100/0x230 [ 56.801905][ T5221] ? __x64_sys_mount+0x20/0xc0 [ 56.806659][ T5221] do_syscall_64+0xf3/0x230 [ 56.811151][ T5221] ? clear_bhb_loop+0x35/0x90 [ 56.815819][ T5221] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 56.821717][ T5221] RIP: 0033:0x7f7b8fcc7c3a [ 56.826125][ T5221] 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 [ 56.845722][ T5221] RSP: 002b:00007ffc637a37e8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 56.854126][ T5221] RAX: ffffffffffffffda RBX: 00007ffc637a3800 RCX: 00007f7b8fcc7c3a [ 56.862102][ T5221] RDX: 0000000020000100 RSI: 0000000020000240 RDI: 00007ffc637a3800 [ 56.870070][ T5221] RBP: 0000000000000004 R08: 00007ffc637a3840 R09: 0000000000005daf [ 56.878041][ T5221] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 56.886007][ T5221] R13: 00007ffc637a3840 R14: 0000000000000003 R15: 0000000001000000 [ 56.893975][ T5221]