Warning: Permanently added '10.128.0.132' (ED25519) to the list of known hosts. executing program [ 45.438323][ T4017] loop0: detected capacity change from 0 to 32768 [ 45.519007][ T4017] BTRFS: device fsid c9fe44da-de57-406a-8241-57ec7d4412cf devid 1 transid 8 /dev/loop0 scanned by syz-executor288 (4017) [ 45.565280][ T4017] BTRFS info (device loop0): using crc32c (crc32c-generic) checksum algorithm [ 45.569800][ T4017] BTRFS info (device loop0): setting incompat feature flag for COMPRESS_ZSTD (0x10) [ 45.572485][ T4017] BTRFS info (device loop0): use zstd compression, level 3 [ 45.574419][ T4017] BTRFS info (device loop0): using free space tree [ 45.576141][ T4017] BTRFS info (device loop0): has skinny extents [ 45.597681][ T4017] BTRFS info (device loop0): enabling ssd optimizations executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 69.639210][ T2523] cfg80211: failed to load regulatory.db executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 76.041466][ T4038] [ 76.042196][ T4038] ====================================================== [ 76.044042][ T4038] WARNING: possible circular locking dependency detected [ 76.045805][ T4038] 5.15.167-syzkaller #0 Not tainted [ 76.047117][ T4038] ------------------------------------------------------ [ 76.049080][ T4038] btrfs-transacti/4038 is trying to acquire lock: [ 76.050848][ T4038] ffff0000d3268ce0 (&fs_devs->device_list_mutex){+.+.}-{3:3}, at: btrfs_run_dev_stats+0xe4/0xe24 [ 76.053660][ T4038] [ 76.053660][ T4038] but task is already holding lock: [ 76.055720][ T4038] ffff0000d9c58720 (&fs_info->tree_log_mutex){+.+.}-{3:3}, at: btrfs_commit_transaction+0xe34/0x30f0 [ 76.058651][ T4038] [ 76.058651][ T4038] which lock already depends on the new lock. [ 76.058651][ T4038] [ 76.061482][ T4038] [ 76.061482][ T4038] the existing dependency chain (in reverse order) is: [ 76.063934][ T4038] [ 76.063934][ T4038] -> #4 (&fs_info->tree_log_mutex){+.+.}-{3:3}: [ 76.066187][ T4038] __mutex_lock_common+0x194/0x2154 [ 76.067738][ T4038] mutex_lock_nested+0xa4/0xf8 [ 76.069162][ T4038] btrfs_commit_transaction+0xe34/0x30f0 [ 76.070806][ T4038] transaction_kthread+0x284/0x3f4 [ 76.072317][ T4038] kthread+0x37c/0x45c [ 76.073561][ T4038] ret_from_fork+0x10/0x20 [ 76.074898][ T4038] [ 76.074898][ T4038] -> #3 (&fs_info->reloc_mutex){+.+.}-{3:3}: [ 76.077283][ T4038] __mutex_lock_common+0x194/0x2154 [ 76.078869][ T4038] mutex_lock_nested+0xa4/0xf8 [ 76.080319][ T4038] start_transaction+0x450/0x1480 [ 76.081831][ T4038] btrfs_start_transaction+0x34/0x44 [ 76.083432][ T4038] btrfs_create+0x134/0x56c [ 76.084734][ T4038] path_openat+0xf18/0x26cc [ 76.086107][ T4038] do_filp_open+0x1a8/0x3b4 [ 76.087467][ T4038] do_sys_openat2+0x128/0x3e0 [ 76.088872][ T4038] __arm64_sys_openat+0x1f0/0x240 [ 76.090355][ T4038] invoke_syscall+0x98/0x2b8 [ 76.091705][ T4038] el0_svc_common+0x138/0x258 [ 76.093102][ T4038] do_el0_svc+0x58/0x14c [ 76.094391][ T4038] el0_svc+0x7c/0x1f0 [ 76.095604][ T4038] el0t_64_sync_handler+0x84/0xe4 [ 76.097088][ T4038] el0t_64_sync+0x1a0/0x1a4 [ 76.098401][ T4038] [ 76.098401][ T4038] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 76.100472][ T4038] start_transaction+0x644/0x1480 [ 76.101963][ T4038] btrfs_start_transaction+0x34/0x44 [ 76.103554][ T4038] btrfs_create+0x134/0x56c [ 76.104962][ T4038] path_openat+0xf18/0x26cc [ 76.106278][ T4038] do_filp_open+0x1a8/0x3b4 [ 76.107616][ T4038] do_sys_openat2+0x128/0x3e0 [ 76.109048][ T4038] __arm64_sys_openat+0x1f0/0x240 [ 76.110582][ T4038] invoke_syscall+0x98/0x2b8 [ 76.112031][ T4038] el0_svc_common+0x138/0x258 [ 76.113490][ T4038] do_el0_svc+0x58/0x14c [ 76.114812][ T4038] el0_svc+0x7c/0x1f0 [ 76.116068][ T4038] el0t_64_sync_handler+0x84/0xe4 [ 76.117663][ T4038] el0t_64_sync+0x1a0/0x1a4 [ 76.119029][ T4038] [ 76.119029][ T4038] -> #1 (&type->i_mutex_dir_key#6){++++}-{3:3}: [ 76.121356][ T4038] down_read+0xc0/0x398 [ 76.122687][ T4038] lookup_slow+0x50/0x84 [ 76.123986][ T4038] walk_component+0x394/0x4cc [ 76.125365][ T4038] path_lookupat+0x13c/0x3d0 [ 76.126728][ T4038] filename_lookup+0x1c4/0x4c8 [ 76.128223][ T4038] kern_path+0x4c/0x194 [ 76.129527][ T4038] lookup_bdev+0xc0/0x25c [ 76.130854][ T4038] btrfs_free_stale_devices+0x658/0x9ec [ 76.132561][ T4038] btrfs_forget_devices+0x5c/0x98 [ 76.134014][ T4038] btrfs_control_ioctl+0x12c/0x248 [ 76.135615][ T4038] __arm64_sys_ioctl+0x14c/0x1c8 [ 76.137112][ T4038] invoke_syscall+0x98/0x2b8 [ 76.138518][ T4038] el0_svc_common+0x138/0x258 [ 76.139962][ T4038] do_el0_svc+0x58/0x14c [ 76.141276][ T4038] el0_svc+0x7c/0x1f0 [ 76.142397][ T4038] el0t_64_sync_handler+0x84/0xe4 [ 76.143534][ T4038] el0t_64_sync+0x1a0/0x1a4 [ 76.144938][ T4038] [ 76.144938][ T4038] -> #0 (&fs_devs->device_list_mutex){+.+.}-{3:3}: [ 76.147301][ T4038] __lock_acquire+0x32d4/0x7638 [ 76.148811][ T4038] lock_acquire+0x240/0x77c [ 76.150231][ T4038] __mutex_lock_common+0x194/0x2154 [ 76.151738][ T4038] mutex_lock_nested+0xa4/0xf8 [ 76.153184][ T4038] btrfs_run_dev_stats+0xe4/0xe24 [ 76.154704][ T4038] commit_cowonly_roots+0x17c/0x808 [ 76.156301][ T4038] btrfs_commit_transaction+0xef4/0x30f0 [ 76.158062][ T4038] transaction_kthread+0x284/0x3f4 [ 76.159637][ T4038] kthread+0x37c/0x45c [ 76.160912][ T4038] ret_from_fork+0x10/0x20 [ 76.162352][ T4038] [ 76.162352][ T4038] other info that might help us debug this: [ 76.162352][ T4038] [ 76.165226][ T4038] Chain exists of: [ 76.165226][ T4038] &fs_devs->device_list_mutex --> &fs_info->reloc_mutex --> &fs_info->tree_log_mutex [ 76.165226][ T4038] [ 76.169439][ T4038] Possible unsafe locking scenario: [ 76.169439][ T4038] [ 76.171502][ T4038] CPU0 CPU1 [ 76.172992][ T4038] ---- ---- [ 76.174437][ T4038] lock(&fs_info->tree_log_mutex); [ 76.175855][ T4038] lock(&fs_info->reloc_mutex); [ 76.177688][ T4038] lock(&fs_info->tree_log_mutex); [ 76.179791][ T4038] lock(&fs_devs->device_list_mutex); [ 76.181291][ T4038] [ 76.181291][ T4038] *** DEADLOCK *** [ 76.181291][ T4038] [ 76.183542][ T4038] 3 locks held by btrfs-transacti/4038: [ 76.185060][ T4038] #0: ffff0000d9c587b0 (&fs_info->transaction_kthread_mutex){+.+.}-{3:3}, at: transaction_kthread+0xd0/0x3f4 [ 76.188412][ T4038] #1: ffff0000d9c58c90 (&fs_info->reloc_mutex){+.+.}-{3:3}, at: btrfs_commit_transaction+0xd9c/0x30f0 [ 76.191478][ T4038] #2: ffff0000d9c58720 (&fs_info->tree_log_mutex){+.+.}-{3:3}, at: btrfs_commit_transaction+0xe34/0x30f0 [ 76.194542][ T4038] [ 76.194542][ T4038] stack backtrace: executing program [ 76.196169][ T4038] CPU: 1 PID: 4038 Comm: btrfs-transacti Not tainted 5.15.167-syzkaller #0 [ 76.198542][ T4038] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 [ 76.201360][ T4038] Call trace: [ 76.202272][ T4038] dump_backtrace+0x0/0x530 [ 76.203454][ T4038] show_stack+0x2c/0x3c [ 76.204567][ T4038] dump_stack_lvl+0x108/0x170 [ 76.205905][ T4038] dump_stack+0x1c/0x58 [ 76.207096][ T4038] print_circular_bug+0x150/0x1b8 [ 76.208515][ T4038] check_noncircular+0x2cc/0x378 [ 76.209933][ T4038] __lock_acquire+0x32d4/0x7638 [ 76.211243][ T4038] lock_acquire+0x240/0x77c [ 76.212490][ T4038] __mutex_lock_common+0x194/0x2154 [ 76.213949][ T4038] mutex_lock_nested+0xa4/0xf8 [ 76.215283][ T4038] btrfs_run_dev_stats+0xe4/0xe24 [ 76.216702][ T4038] commit_cowonly_roots+0x17c/0x808 [ 76.218159][ T4038] btrfs_commit_transaction+0xef4/0x30f0 [ 76.219692][ T4038] transaction_kthread+0x284/0x3f4 [ 76.221032][ T4038] kthread+0x37c/0x45c [ 76.222150][ T4038] ret_from_fork+0x10/0x20 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program