./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1786653403 <...> Warning: Permanently added '10.128.0.42' (ED25519) to the list of known hosts. execve("./syz-executor1786653403", ["./syz-executor1786653403"], 0x7ffcf60de8d0 /* 10 vars */) = 0 brk(NULL) = 0x55558093b000 brk(0x55558093bd00) = 0x55558093bd00 arch_prctl(ARCH_SET_FS, 0x55558093b380) = 0 set_tid_address(0x55558093b650) = 5219 set_robust_list(0x55558093b660, 24) = 0 rseq(0x55558093bca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1786653403", 4096) = 28 getrandom("\x99\x6b\xdb\x11\x42\x0c\xe1\x42", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558093bd00 brk(0x55558095cd00) = 0x55558095cd00 brk(0x55558095d000) = 0x55558095d000 mprotect(0x7f27485f3000, 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) = 0x7f2740000000 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(0x7f2740000000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file3", 0777) = 0 [ 71.671085][ T5219] loop0: detected capacity change from 0 to 32768 [ 71.713972][ T5219] ======================================================= [ 71.713972][ T5219] WARNING: The mand mount option has been deprecated and [ 71.713972][ T5219] and is ignored by this kernel. Remove the mand [ 71.713972][ T5219] option from the mount to silence this warning. [ 71.713972][ T5219] ======================================================= [ 71.796250][ T5219] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=compression=zstd,norecovery,recovery_pass_last=check_dirents,nojournal_transaction_names,version_upgrade=none [ 71.814235][ T5219] [ 71.816584][ T5219] ============================================ [ 71.822729][ T5219] WARNING: possible recursive locking detected [ 71.828885][ T5219] 6.12.0-rc2-syzkaller-00074-gd3d1556696c1 #0 Not tainted [ 71.835992][ T5219] -------------------------------------------- [ 71.842130][ T5219] syz-executor178/5219 is trying to acquire lock: [ 71.848538][ T5219] ffff888073380908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 71.858410][ T5219] [ 71.858410][ T5219] but task is already holding lock: [ 71.865769][ T5219] ffff888073380908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 71.875538][ T5219] [ 71.875538][ T5219] other info that might help us debug this: [ 71.883635][ T5219] Possible unsafe locking scenario: [ 71.883635][ T5219] [ 71.891092][ T5219] CPU0 [ 71.894376][ T5219] ---- [ 71.897655][ T5219] lock(&c->sb_lock); [ 71.901732][ T5219] lock(&c->sb_lock); [ 71.905810][ T5219] [ 71.905810][ T5219] *** DEADLOCK *** [ 71.905810][ T5219] [ 71.913953][ T5219] May be due to missing lock nesting notation [ 71.913953][ T5219] [ 71.922264][ T5219] 2 locks held by syz-executor178/5219: [ 71.927844][ T5219] #0: ffff888073380278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 71.937185][ T5219] #1: ffff888073380908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 71.947383][ T5219] [ 71.947383][ T5219] stack backtrace: [ 71.953499][ T5219] CPU: 1 UID: 0 PID: 5219 Comm: syz-executor178 Not tainted 6.12.0-rc2-syzkaller-00074-gd3d1556696c1 #0 [ 71.964626][ T5219] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 71.974712][ T5219] Call Trace: [ 71.978726][ T5219] [ 71.981679][ T5219] dump_stack_lvl+0x241/0x360 [ 71.986384][ T5219] ? __pfx_dump_stack_lvl+0x10/0x10 [ 71.991588][ T5219] ? __pfx__printk+0x10/0x10 [ 71.996193][ T5219] ? lockdep_unlock+0x16a/0x300 [ 72.001059][ T5219] print_deadlock_bug+0x483/0x620 [ 72.006093][ T5219] validate_chain+0x15e2/0x5920 [ 72.010959][ T5219] ? __pfx_validate_chain+0x10/0x10 [ 72.016166][ T5219] ? mark_lock+0x9a/0x360 [ 72.020502][ T5219] ? __lock_acquire+0x1384/0x2050 [ 72.025543][ T5219] ? mark_lock+0x9a/0x360 [ 72.029877][ T5219] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 72.035901][ T5219] ? mark_lock+0x9a/0x360 [ 72.040235][ T5219] __lock_acquire+0x1384/0x2050 [ 72.045105][ T5219] lock_acquire+0x1ed/0x550 [ 72.049625][ T5219] ? bch2_replicas_entry_validate+0x2a/0x80 [ 72.055537][ T5219] ? __pfx_lock_acquire+0x10/0x10 [ 72.060573][ T5219] ? __pfx_kfence_guarded_alloc+0x10/0x10 [ 72.066308][ T5219] ? __pfx___might_resched+0x10/0x10 [ 72.071601][ T5219] ? native_apic_msr_write+0x39/0x50 [ 72.076901][ T5219] __mutex_lock+0x136/0xd70 [ 72.081408][ T5219] ? bch2_replicas_entry_validate+0x2a/0x80 [ 72.087307][ T5219] ? __kfence_alloc+0x274/0x370 [ 72.092693][ T5219] ? __kmalloc_node_track_caller_noprof+0x395/0x440 [ 72.099375][ T5219] ? bch2_read_superblock_clean+0xd6/0x520 [ 72.105188][ T5219] ? bch2_fs_recovery+0x1f4/0x39c0 [ 72.110309][ T5219] ? bch2_fs_get_tree+0xd68/0x1710 [ 72.115435][ T5219] ? vfs_get_tree+0x90/0x2b0 [ 72.120040][ T5219] ? do_new_mount+0x2be/0xb40 [ 72.124733][ T5219] ? __se_sys_mount+0x2d6/0x3c0 [ 72.129682][ T5219] ? do_syscall_64+0xf3/0x230 [ 72.134362][ T5219] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 72.140448][ T5219] ? bch2_replicas_entry_validate+0x2a/0x80 [ 72.146346][ T5219] ? __pfx___mutex_lock+0x10/0x10 [ 72.151377][ T5219] bch2_replicas_entry_validate+0x2a/0x80 [ 72.157104][ T5219] journal_entry_data_usage_validate+0x2b6/0x690 [ 72.163439][ T5219] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 72.170296][ T5219] ? journal_entry_usage_validate+0xc2/0x360 [ 72.176284][ T5219] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 72.182719][ T5219] ? rcu_is_watching+0x15/0xb0 [ 72.187597][ T5219] ? trace_kmalloc+0x1f/0xd0 [ 72.192209][ T5219] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 72.198829][ T5219] ? kmemdup_noprof+0x45/0x60 [ 72.203542][ T5219] ? bch2_journal_entry_validate+0x6a/0xf0 [ 72.209546][ T5219] bch2_read_superblock_clean+0x207/0x520 [ 72.215304][ T5219] bch2_fs_recovery+0x1f4/0x39c0 [ 72.220287][ T5219] ? mark_lock+0x9a/0x360 [ 72.224649][ T5219] ? __lock_acquire+0x1384/0x2050 [ 72.229727][ T5219] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 72.235126][ T5219] ? mark_lock+0x9a/0x360 [ 72.239465][ T5219] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 72.245460][ T5219] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 72.251805][ T5219] ? irqentry_exit+0x63/0x90 [ 72.256403][ T5219] ? lockdep_hardirqs_on+0x99/0x150 [ 72.261619][ T5219] ? bch2_fs_start+0x32f/0x5b0 [ 72.266393][ T5219] ? bch2_fs_start+0x34e/0x5b0 [ 72.271166][ T5219] bch2_fs_start+0x356/0x5b0 [ 72.275854][ T5219] bch2_fs_get_tree+0xd68/0x1710 [ 72.280815][ T5219] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 72.286287][ T5219] ? smack_fs_context_parse_param+0xff/0x170 [ 72.292280][ T5219] ? generic_parse_monolithic+0x387/0x400 [ 72.298107][ T5219] ? cap_capable+0x1b4/0x250 [ 72.302978][ T5219] ? safesetid_security_capable+0xb2/0x1d0 [ 72.308813][ T5219] vfs_get_tree+0x90/0x2b0 [ 72.313251][ T5219] do_new_mount+0x2be/0xb40 [ 72.317774][ T5219] ? __pfx_do_new_mount+0x10/0x10 [ 72.322818][ T5219] __se_sys_mount+0x2d6/0x3c0 [ 72.327513][ T5219] ? __pfx___se_sys_mount+0x10/0x10 [ 72.332725][ T5219] ? do_syscall_64+0x100/0x230 [ 72.337496][ T5219] ? __x64_sys_mount+0x20/0xc0 [ 72.342271][ T5219] do_syscall_64+0xf3/0x230 [ 72.346779][ T5219] ? clear_bhb_loop+0x35/0x90 [ 72.351463][ T5219] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 72.357381][ T5219] RIP: 0033:0x7f274857bc3a [ 72.361806][ T5219] 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 [ 72.381728][ T5219] RSP: 002b:00007ffd369707b8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 72.390624][ T5219] RAX: ffffffffffffffda RBX: 00007ffd369707d0 RCX: 00007f274857bc3a [ 72.398817][ T5219] RDX: 0000000020005d80 RSI: 0000000020000240 RDI: 00007ffd369707d0 [ 72.407262][ T5219] RBP: 0000000000000004 R08: 00007ffd36970810 R09: 0000000000005daf [ 72.415304][ T5219] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 72.423734][ T5219] R13: 00007ffd36970810 R14: 0000000000000003 R15: 0000000001000000 [ 72.431720][ T5219]