Warning: Permanently added '10.128.0.235' (ED25519) to the list of known hosts. executing program [ 46.339103][ T4019] loop0: detected capacity change from 0 to 32768 [ 46.495649][ T4019] BTRFS: device fsid c9fe44da-de57-406a-8241-57ec7d4412cf devid 1 transid 8 /dev/loop0 scanned by syz-executor241 (4019) [ 46.558067][ T4019] BTRFS info (device loop0): using crc32c (crc32c-generic) checksum algorithm [ 46.560466][ T4019] BTRFS info (device loop0): setting nodatacow, compression disabled [ 46.567183][ T4019] BTRFS info (device loop0): max_inline at 0 [ 46.568876][ T4019] BTRFS info (device loop0): enabling disk space caching [ 46.570586][ T4019] BTRFS info (device loop0): enabling ssd optimizations [ 46.572257][ T4019] BTRFS info (device loop0): using spread ssd allocation scheme [ 46.575184][ T4019] BTRFS info (device loop0): enabling auto defrag [ 46.576835][ T4019] BTRFS info (device loop0): doing ref verification [ 46.578465][ T4019] BTRFS info (device loop0): force clearing of disk cache [ 46.580211][ T4019] BTRFS info (device loop0): turning off barriers [ 46.581791][ T4019] BTRFS info (device loop0): using default commit interval 30s [ 46.584334][ T4019] BTRFS info (device loop0): disk space caching is enabled [ 46.586097][ T4019] BTRFS info (device loop0): has skinny extents [ 46.615207][ T4019] BTRFS info (device loop0): clearing free space tree [ 46.617108][ T4019] BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) [ 46.619370][ T4019] BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) [ 46.636115][ T4019] [ 46.636839][ T4019] ====================================================== [ 46.638555][ T4019] WARNING: possible circular locking dependency detected [ 46.640290][ T4019] 5.15.178-syzkaller #0 Not tainted [ 46.641421][ T4019] ------------------------------------------------------ [ 46.642940][ T4019] syz-executor241/4019 is trying to acquire lock: [ 46.644592][ T4019] ffff0000d3974650 (sb_internal#2){.+.+}-{0:0}, at: btrfs_start_transaction+0x34/0x44 [ 46.647183][ T4019] [ 46.647183][ T4019] but task is already holding lock: [ 46.649035][ T4019] ffff0000dbfa8610 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: vfs_fileattr_set+0x110/0xad4 [ 46.651588][ T4019] [ 46.651588][ T4019] which lock already depends on the new lock. [ 46.651588][ T4019] [ 46.654398][ T4019] [ 46.654398][ T4019] the existing dependency chain (in reverse order) is: [ 46.656547][ T4019] [ 46.656547][ T4019] -> #3 (&type->i_mutex_dir_key#6){++++}-{3:3}: [ 46.658666][ T4019] down_read+0xc0/0x398 [ 46.659880][ T4019] lookup_slow+0x50/0x84 [ 46.661074][ T4019] walk_component+0x394/0x4cc [ 46.662414][ T4019] path_lookupat+0x13c/0x3d0 [ 46.663679][ T4019] filename_lookup+0x1c4/0x4c8 [ 46.664973][ T4019] kern_path+0x4c/0x194 [ 46.666145][ T4019] lookup_bdev+0xc0/0x25c [ 46.667416][ T4019] btrfs_free_stale_devices+0x658/0x9ec [ 46.668904][ T4019] btrfs_forget_devices+0x5c/0x98 [ 46.670273][ T4019] btrfs_control_ioctl+0x12c/0x248 [ 46.671550][ T4019] __arm64_sys_ioctl+0x14c/0x1c8 [ 46.672961][ T4019] invoke_syscall+0x98/0x2b8 [ 46.674288][ T4019] el0_svc_common+0x138/0x258 [ 46.675564][ T4019] do_el0_svc+0x58/0x14c [ 46.676799][ T4019] el0_svc+0x7c/0x1f0 [ 46.677957][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 46.679412][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 46.680746][ T4019] [ 46.680746][ T4019] -> #2 (&fs_devs->device_list_mutex){+.+.}-{3:3}: [ 46.683045][ T4019] __mutex_lock_common+0x194/0x2154 [ 46.684441][ T4019] mutex_lock_nested+0xa4/0xf8 [ 46.685805][ T4019] btrfs_run_dev_stats+0xe4/0xe24 [ 46.687109][ T4019] commit_cowonly_roots+0x17c/0x808 [ 46.688444][ T4019] btrfs_commit_transaction+0xef4/0x30f0 [ 46.689988][ T4019] btrfs_clear_free_space_tree+0x5d0/0x9bc [ 46.691558][ T4019] btrfs_start_pre_rw_mount+0x24c/0x578 [ 46.693119][ T4019] open_ctree+0x2290/0x28f4 [ 46.694339][ T4019] btrfs_fill_super+0x1b4/0x2c8 [ 46.695720][ T4019] btrfs_mount_root+0x6f8/0x7f8 [ 46.697089][ T4019] legacy_get_tree+0xd4/0x16c [ 46.698420][ T4019] vfs_get_tree+0x90/0x274 [ 46.699731][ T4019] vfs_kern_mount+0xdc/0x178 [ 46.700996][ T4019] btrfs_mount+0x328/0x9b8 [ 46.702194][ T4019] legacy_get_tree+0xd4/0x16c [ 46.703502][ T4019] vfs_get_tree+0x90/0x274 [ 46.704762][ T4019] do_new_mount+0x278/0x8fc [ 46.706078][ T4019] path_mount+0x594/0x101c [ 46.707318][ T4019] __arm64_sys_mount+0x510/0x5e0 [ 46.708720][ T4019] invoke_syscall+0x98/0x2b8 [ 46.710014][ T4019] el0_svc_common+0x138/0x258 [ 46.711300][ T4019] do_el0_svc+0x58/0x14c [ 46.712507][ T4019] el0_svc+0x7c/0x1f0 [ 46.713688][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 46.715052][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 46.716446][ T4019] [ 46.716446][ T4019] -> #1 (&fs_info->tree_log_mutex){+.+.}-{3:3}: [ 46.718567][ T4019] lock_release+0x340/0xa1c [ 46.719861][ T4019] __mutex_unlock_slowpath+0xe0/0x6d4 [ 46.721364][ T4019] mutex_unlock+0x8c/0xe0 [ 46.722592][ T4019] btrfs_commit_transaction+0x1650/0x30f0 [ 46.724217][ T4019] btrfs_clear_free_space_tree+0x5d0/0x9bc [ 46.725839][ T4019] btrfs_start_pre_rw_mount+0x24c/0x578 [ 46.727307][ T4019] open_ctree+0x2290/0x28f4 [ 46.728658][ T4019] btrfs_fill_super+0x1b4/0x2c8 [ 46.730056][ T4019] btrfs_mount_root+0x6f8/0x7f8 [ 46.731311][ T4019] legacy_get_tree+0xd4/0x16c [ 46.732651][ T4019] vfs_get_tree+0x90/0x274 [ 46.733770][ T4019] vfs_kern_mount+0xdc/0x178 [ 46.734994][ T4019] btrfs_mount+0x328/0x9b8 [ 46.736207][ T4019] legacy_get_tree+0xd4/0x16c [ 46.737439][ T4019] vfs_get_tree+0x90/0x274 [ 46.738708][ T4019] do_new_mount+0x278/0x8fc [ 46.739940][ T4019] path_mount+0x594/0x101c [ 46.741098][ T4019] __arm64_sys_mount+0x510/0x5e0 [ 46.742489][ T4019] invoke_syscall+0x98/0x2b8 [ 46.743819][ T4019] el0_svc_common+0x138/0x258 [ 46.745126][ T4019] do_el0_svc+0x58/0x14c [ 46.746290][ T4019] el0_svc+0x7c/0x1f0 [ 46.747375][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 46.748883][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 46.750181][ T4019] [ 46.750181][ T4019] -> #0 (sb_internal#2){.+.+}-{0:0}: [ 46.752107][ T4019] __lock_acquire+0x32d4/0x7638 [ 46.753373][ T4019] lock_acquire+0x240/0x77c [ 46.754673][ T4019] start_transaction+0x644/0x1480 [ 46.756055][ T4019] btrfs_start_transaction+0x34/0x44 [ 46.757508][ T4019] btrfs_fileattr_set+0x4dc/0x9b8 [ 46.758941][ T4019] vfs_fileattr_set+0x70c/0xad4 [ 46.760289][ T4019] do_vfs_ioctl+0x1634/0x2a38 [ 46.761555][ T4019] __arm64_sys_ioctl+0xe4/0x1c8 [ 46.762783][ T4019] invoke_syscall+0x98/0x2b8 [ 46.764054][ T4019] el0_svc_common+0x138/0x258 [ 46.765370][ T4019] do_el0_svc+0x58/0x14c [ 46.766700][ T4019] el0_svc+0x7c/0x1f0 [ 46.767879][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 46.769205][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 46.770524][ T4019] [ 46.770524][ T4019] other info that might help us debug this: [ 46.770524][ T4019] [ 46.773091][ T4019] Chain exists of: [ 46.773091][ T4019] sb_internal#2 --> &fs_devs->device_list_mutex --> &type->i_mutex_dir_key#6 [ 46.773091][ T4019] [ 46.777000][ T4019] Possible unsafe locking scenario: [ 46.777000][ T4019] [ 46.778917][ T4019] CPU0 CPU1 [ 46.780269][ T4019] ---- ---- [ 46.781660][ T4019] lock(&type->i_mutex_dir_key#6); [ 46.782949][ T4019] lock(&fs_devs->device_list_mutex); [ 46.784987][ T4019] lock(&type->i_mutex_dir_key#6); [ 46.786908][ T4019] lock(sb_internal#2); [ 46.787980][ T4019] [ 46.787980][ T4019] *** DEADLOCK *** [ 46.787980][ T4019] [ 46.790047][ T4019] 2 locks held by syz-executor241/4019: [ 46.791341][ T4019] #0: ffff0000d3974460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 46.793782][ T4019] #1: ffff0000dbfa8610 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: vfs_fileattr_set+0x110/0xad4 [ 46.796424][ T4019] [ 46.796424][ T4019] stack backtrace: [ 46.797984][ T4019] CPU: 1 PID: 4019 Comm: syz-executor241 Not tainted 5.15.178-syzkaller #0 [ 46.800181][ T4019] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 46.802687][ T4019] Call trace: [ 46.803497][ T4019] dump_backtrace+0x0/0x530 [ 46.804741][ T4019] show_stack+0x2c/0x3c [ 46.805759][ T4019] dump_stack_lvl+0x108/0x170 [ 46.806894][ T4019] dump_stack+0x1c/0x58 [ 46.807936][ T4019] print_circular_bug+0x150/0x1b8 [ 46.809162][ T4019] check_noncircular+0x2cc/0x378 [ 46.810453][ T4019] __lock_acquire+0x32d4/0x7638 [ 46.811683][ T4019] lock_acquire+0x240/0x77c [ 46.812802][ T4019] start_transaction+0x644/0x1480 [ 46.814105][ T4019] btrfs_start_transaction+0x34/0x44 [ 46.815299][ T4019] btrfs_fileattr_set+0x4dc/0x9b8 [ 46.816594][ T4019] vfs_fileattr_set+0x70c/0xad4 [ 46.817835][ T4019] do_vfs_ioctl+0x1634/0x2a38 [ 46.819092][ T4019] __arm64_sys_ioctl+0xe4/0x1c8 [ 46.820334][ T4019] invoke_syscall+0x98/0x2b8 [ 46.821574][ T4019] el0_svc_common+0x138/0x258 [ 46.822838][ T4019] do_el0_svc+0x58/0x14c [ 46.823928][ T4019] el0_svc+0x7c/0x1f0 [ 46.824949][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 46.826251][ T4019] el0t_64_sync+0x1a0/0x1a4