./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3550747414 <...> Warning: Permanently added '10.128.1.180' (ED25519) to the list of known hosts. execve("./syz-executor3550747414", ["./syz-executor3550747414"], 0x7ffc94f4e320 /* 10 vars */) = 0 brk(NULL) = 0x5555825cd000 brk(0x5555825cdd00) = 0x5555825cdd00 arch_prctl(ARCH_SET_FS, 0x5555825cd380) = 0 set_tid_address(0x5555825cd650) = 5220 set_robust_list(0x5555825cd660, 24) = 0 rseq(0x5555825cdca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3550747414", 4096) = 28 getrandom("\xde\x0e\x31\x10\xd2\x6b\xb2\xf5", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555825cdd00 brk(0x5555825eed00) = 0x5555825eed00 brk(0x5555825ef000) = 0x5555825ef000 mprotect(0x7f177f91e000, 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, 0executing program ) = 0x21000000 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) = 0x7f1777400000 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(0x7f1777400000, 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 [ 75.081029][ T5220] loop0: detected capacity change from 0 to 32768 [ 75.112742][ T5220] ======================================================= [ 75.112742][ T5220] WARNING: The mand mount option has been deprecated and [ 75.112742][ T5220] and is ignored by this kernel. Remove the mand [ 75.112742][ T5220] option from the mount to silence this warning. [ 75.112742][ T5220] ======================================================= [ 75.187182][ T5220] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=compression=zstd,norecovery,recovery_pass_last=check_dirents,nojournal_transaction_names,version_upgrade=none [ 75.204783][ T5220] [ 75.207095][ T5220] ============================================ [ 75.213220][ T5220] WARNING: possible recursive locking detected [ 75.219347][ T5220] 6.12.0-rc2-syzkaller-00260-g9e4c6c1ad9a1 #0 Not tainted [ 75.226426][ T5220] -------------------------------------------- [ 75.232547][ T5220] syz-executor355/5220 is trying to acquire lock: [ 75.238931][ T5220] ffff888071d00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 75.248755][ T5220] [ 75.248755][ T5220] but task is already holding lock: [ 75.256094][ T5220] ffff888071d00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 75.265821][ T5220] [ 75.265821][ T5220] other info that might help us debug this: [ 75.273853][ T5220] Possible unsafe locking scenario: [ 75.273853][ T5220] [ 75.281279][ T5220] CPU0 [ 75.284535][ T5220] ---- [ 75.287789][ T5220] lock(&c->sb_lock); [ 75.291835][ T5220] lock(&c->sb_lock); [ 75.295880][ T5220] [ 75.295880][ T5220] *** DEADLOCK *** [ 75.295880][ T5220] [ 75.303998][ T5220] May be due to missing lock nesting notation [ 75.303998][ T5220] [ 75.312288][ T5220] 2 locks held by syz-executor355/5220: [ 75.317805][ T5220] #0: ffff888071d00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 75.327091][ T5220] #1: ffff888071d00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 75.337241][ T5220] [ 75.337241][ T5220] stack backtrace: [ 75.343112][ T5220] CPU: 0 UID: 0 PID: 5220 Comm: syz-executor355 Not tainted 6.12.0-rc2-syzkaller-00260-g9e4c6c1ad9a1 #0 [ 75.354194][ T5220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 75.364228][ T5220] Call Trace: [ 75.367484][ T5220] [ 75.370392][ T5220] dump_stack_lvl+0x241/0x360 [ 75.375056][ T5220] ? __pfx_dump_stack_lvl+0x10/0x10 [ 75.380229][ T5220] ? __pfx__printk+0x10/0x10 [ 75.384798][ T5220] ? lockdep_unlock+0x16a/0x300 [ 75.389633][ T5220] print_deadlock_bug+0x483/0x620 [ 75.394635][ T5220] validate_chain+0x15e2/0x5920 [ 75.399464][ T5220] ? __pfx___bfs+0x10/0x10 [ 75.403857][ T5220] ? __pfx_validate_chain+0x10/0x10 [ 75.409030][ T5220] ? mark_lock+0x9a/0x360 [ 75.413336][ T5220] ? __lock_acquire+0x1384/0x2050 [ 75.418355][ T5220] ? mark_lock+0x9a/0x360 [ 75.422662][ T5220] __lock_acquire+0x1384/0x2050 [ 75.427495][ T5220] lock_acquire+0x1ed/0x550 [ 75.431982][ T5220] ? bch2_replicas_entry_validate+0x2a/0x80 [ 75.437854][ T5220] ? __pfx_lock_acquire+0x10/0x10 [ 75.442862][ T5220] ? lockdep_hardirqs_on+0x99/0x150 [ 75.448041][ T5220] ? __pfx___might_resched+0x10/0x10 [ 75.453318][ T5220] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 75.459200][ T5220] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 75.465506][ T5220] ? stack_trace_save+0x118/0x1d0 [ 75.470526][ T5220] __mutex_lock+0x136/0xd70 [ 75.475009][ T5220] ? bch2_replicas_entry_validate+0x2a/0x80 [ 75.480882][ T5220] ? kasan_save_track+0x51/0x80 [ 75.485716][ T5220] ? kasan_save_track+0x3f/0x80 [ 75.490549][ T5220] ? __kasan_kmalloc+0x98/0xb0 [ 75.495385][ T5220] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 75.501953][ T5220] ? kmemdup_noprof+0x2a/0x60 [ 75.506607][ T5220] ? bch2_read_superblock_clean+0xd6/0x520 [ 75.512391][ T5220] ? bch2_replicas_entry_validate+0x2a/0x80 [ 75.518259][ T5220] ? bch2_fs_start+0x356/0x5b0 [ 75.523023][ T5220] ? __pfx___mutex_lock+0x10/0x10 [ 75.528023][ T5220] ? do_syscall_64+0xf3/0x230 [ 75.532681][ T5220] bch2_replicas_entry_validate+0x2a/0x80 [ 75.538398][ T5220] journal_entry_data_usage_validate+0x2b6/0x690 [ 75.544716][ T5220] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 75.551543][ T5220] ? journal_entry_usage_validate+0xc2/0x360 [ 75.557503][ T5220] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 75.563903][ T5220] ? rcu_is_watching+0x15/0xb0 [ 75.568645][ T5220] ? trace_kmalloc+0x1f/0xd0 [ 75.573213][ T5220] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 75.579776][ T5220] ? kmemdup_noprof+0x45/0x60 [ 75.584435][ T5220] ? bch2_journal_entry_validate+0x6a/0xf0 [ 75.590218][ T5220] bch2_read_superblock_clean+0x207/0x520 [ 75.595918][ T5220] bch2_fs_recovery+0x1f4/0x39c0 [ 75.600845][ T5220] ? mark_lock+0x9a/0x360 [ 75.605155][ T5220] ? __lock_acquire+0x1384/0x2050 [ 75.610165][ T5220] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 75.615525][ T5220] ? __pfx_lock_release+0x10/0x10 [ 75.620533][ T5220] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 75.626149][ T5220] ? __pfx_lock_release+0x10/0x10 [ 75.631157][ T5220] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 75.636771][ T5220] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 75.642483][ T5220] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 75.648110][ T5220] ? llist_reverse_order+0x72/0x90 [ 75.653203][ T5220] bch2_fs_start+0x356/0x5b0 [ 75.657781][ T5220] bch2_fs_get_tree+0xd68/0x1710 [ 75.662707][ T5220] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 75.668075][ T5220] ? generic_parse_monolithic+0x387/0x400 [ 75.673787][ T5220] ? cap_capable+0x1b4/0x250 [ 75.678357][ T5220] ? safesetid_security_capable+0xb2/0x1d0 [ 75.684142][ T5220] vfs_get_tree+0x90/0x2b0 [ 75.688536][ T5220] do_new_mount+0x2be/0xb40 [ 75.693020][ T5220] ? __pfx_do_new_mount+0x10/0x10 [ 75.698028][ T5220] __se_sys_mount+0x2d6/0x3c0 [ 75.702687][ T5220] ? __pfx___se_sys_mount+0x10/0x10 [ 75.707865][ T5220] ? do_syscall_64+0x100/0x230 [ 75.712608][ T5220] ? __x64_sys_mount+0x20/0xc0 [ 75.717350][ T5220] do_syscall_64+0xf3/0x230 [ 75.721831][ T5220] ? clear_bhb_loop+0x35/0x90 [ 75.726488][ T5220] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 75.732372][ T5220] RIP: 0033:0x7f177f8a6bba [ 75.736774][ 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 [ 75.756370][ T5220] RSP: 002b:00007ffd0fd7e668 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 75.764768][ T5220] RAX: ffffffffffffffda RBX: 00007ffd0fd7e680 RCX: 00007f177f8a6bba [ 75.772717][ T5220] RDX: 0000000020000580 RSI: 0000000020000240 RDI: 00007ffd0fd7e680 [ 75.780666][ T5220] RBP: 0000000000000004 R08: 00007ffd0fd7e6c0 R09: 0000000000005daf [ 75.788614][ T5220] R10: 0000000000000044 R11: 0000000000000282 R12: 0000000000000044 [ 75.796563][ T5220] R13: 00007ffd0fd7e6c0 R14: 0000000000000003 R15: 0000000001000000 [ 75.804517][ T5220] [ 76.622094][ T9] cfg80211: failed to load regulatory.db