Warning: Permanently added '10.128.1.152' (ED25519) to the list of known hosts. executing program [ 44.672054][ T4019] loop0: detected capacity change from 0 to 32768 [ 44.756580][ T4019] BTRFS: device fsid c9fe44da-de57-406a-8241-57ec7d4412cf devid 1 transid 8 /dev/loop0 scanned by syz-executor395 (4019) [ 44.808568][ T4019] BTRFS info (device loop0): using crc32c (crc32c-generic) checksum algorithm [ 44.811153][ T4019] BTRFS info (device loop0): setting nodatacow, compression disabled [ 44.813398][ T4019] BTRFS info (device loop0): max_inline at 0 [ 44.816242][ T4019] BTRFS info (device loop0): enabling disk space caching [ 44.818277][ T4019] BTRFS info (device loop0): enabling ssd optimizations [ 44.820099][ T4019] BTRFS info (device loop0): using spread ssd allocation scheme [ 44.822002][ T4019] BTRFS info (device loop0): enabling auto defrag [ 44.823744][ T4019] BTRFS info (device loop0): doing ref verification [ 44.826107][ T4019] BTRFS info (device loop0): force clearing of disk cache [ 44.827966][ T4019] BTRFS info (device loop0): turning off barriers [ 44.829685][ T4019] BTRFS info (device loop0): using default commit interval 30s [ 44.831559][ T4019] BTRFS info (device loop0): disk space caching is enabled [ 44.833353][ T4019] BTRFS info (device loop0): has skinny extents [ 44.857335][ T4019] BTRFS info (device loop0): clearing free space tree [ 44.859344][ T4019] BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) [ 44.861923][ T4019] BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) [ 44.878878][ T4019] [ 44.879508][ T4019] ====================================================== [ 44.881349][ T4019] WARNING: possible circular locking dependency detected [ 44.883106][ T4019] 5.15.178-syzkaller #0 Not tainted [ 44.884472][ T4019] ------------------------------------------------------ [ 44.886304][ T4019] syz-executor395/4019 is trying to acquire lock: [ 44.887920][ T4019] ffff0000cb1aa650 (sb_internal#2){.+.+}-{0:0}, at: btrfs_start_transaction+0x34/0x44 [ 44.890382][ T4019] [ 44.890382][ T4019] but task is already holding lock: [ 44.892278][ T4019] ffff0000deaa8610 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: vfs_fileattr_set+0x110/0xad4 [ 44.894900][ T4019] [ 44.894900][ T4019] which lock already depends on the new lock. [ 44.894900][ T4019] [ 44.897602][ T4019] [ 44.897602][ T4019] the existing dependency chain (in reverse order) is: [ 44.900020][ T4019] [ 44.900020][ T4019] -> #3 (&type->i_mutex_dir_key#6){++++}-{3:3}: [ 44.902208][ T4019] down_read+0xc0/0x398 [ 44.903315][ T4019] lookup_slow+0x50/0x84 [ 44.904519][ T4019] walk_component+0x394/0x4cc [ 44.905882][ T4019] path_lookupat+0x13c/0x3d0 [ 44.907216][ T4019] filename_lookup+0x1c4/0x4c8 [ 44.908737][ T4019] kern_path+0x4c/0x194 [ 44.909993][ T4019] lookup_bdev+0xc0/0x25c [ 44.911201][ T4019] btrfs_free_stale_devices+0x658/0x9ec [ 44.912805][ T4019] btrfs_forget_devices+0x5c/0x98 [ 44.914275][ T4019] btrfs_control_ioctl+0x12c/0x248 [ 44.915661][ T4019] __arm64_sys_ioctl+0x14c/0x1c8 [ 44.917035][ T4019] invoke_syscall+0x98/0x2b8 [ 44.918378][ T4019] el0_svc_common+0x138/0x258 [ 44.919738][ T4019] do_el0_svc+0x58/0x14c [ 44.920953][ T4019] el0_svc+0x7c/0x1f0 [ 44.922306][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 44.923696][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 44.924915][ T4019] [ 44.924915][ T4019] -> #2 (&fs_devs->device_list_mutex){+.+.}-{3:3}: [ 44.927046][ T4019] __mutex_lock_common+0x194/0x2154 [ 44.928612][ T4019] mutex_lock_nested+0xa4/0xf8 [ 44.930055][ T4019] btrfs_run_dev_stats+0xe4/0xe24 [ 44.931583][ T4019] commit_cowonly_roots+0x17c/0x808 [ 44.933167][ T4019] btrfs_commit_transaction+0xef4/0x30f0 [ 44.934696][ T4019] btrfs_clear_free_space_tree+0x5d0/0x9bc [ 44.936365][ T4019] btrfs_start_pre_rw_mount+0x24c/0x578 [ 44.937877][ T4019] open_ctree+0x2290/0x28f4 [ 44.939182][ T4019] btrfs_fill_super+0x1b4/0x2c8 [ 44.940493][ T4019] btrfs_mount_root+0x6f8/0x7f8 [ 44.941913][ T4019] legacy_get_tree+0xd4/0x16c [ 44.943242][ T4019] vfs_get_tree+0x90/0x274 [ 44.944513][ T4019] vfs_kern_mount+0xdc/0x178 [ 44.945778][ T4019] btrfs_mount+0x328/0x9b8 [ 44.947054][ T4019] legacy_get_tree+0xd4/0x16c [ 44.948369][ T4019] vfs_get_tree+0x90/0x274 [ 44.949697][ T4019] do_new_mount+0x278/0x8fc [ 44.951035][ T4019] path_mount+0x594/0x101c [ 44.952268][ T4019] __arm64_sys_mount+0x510/0x5e0 [ 44.953656][ T4019] invoke_syscall+0x98/0x2b8 [ 44.954988][ T4019] el0_svc_common+0x138/0x258 [ 44.956386][ T4019] do_el0_svc+0x58/0x14c [ 44.957568][ T4019] el0_svc+0x7c/0x1f0 [ 44.958710][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 44.960233][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 44.961514][ T4019] [ 44.961514][ T4019] -> #1 (&fs_info->tree_log_mutex){+.+.}-{3:3}: [ 44.963651][ T4019] lock_release+0x340/0xa1c [ 44.964905][ T4019] __mutex_unlock_slowpath+0xe0/0x6d4 [ 44.966386][ T4019] mutex_unlock+0x8c/0xe0 [ 44.967643][ T4019] btrfs_commit_transaction+0x1650/0x30f0 [ 44.969259][ T4019] btrfs_clear_free_space_tree+0x5d0/0x9bc [ 44.970884][ T4019] btrfs_start_pre_rw_mount+0x24c/0x578 [ 44.972517][ T4019] open_ctree+0x2290/0x28f4 [ 44.973869][ T4019] btrfs_fill_super+0x1b4/0x2c8 [ 44.975320][ T4019] btrfs_mount_root+0x6f8/0x7f8 [ 44.976771][ T4019] legacy_get_tree+0xd4/0x16c [ 44.978096][ T4019] vfs_get_tree+0x90/0x274 [ 44.979370][ T4019] vfs_kern_mount+0xdc/0x178 [ 44.980855][ T4019] btrfs_mount+0x328/0x9b8 [ 44.982136][ T4019] legacy_get_tree+0xd4/0x16c [ 44.983470][ T4019] vfs_get_tree+0x90/0x274 [ 44.984843][ T4019] do_new_mount+0x278/0x8fc [ 44.986373][ T4019] path_mount+0x594/0x101c [ 44.987904][ T4019] __arm64_sys_mount+0x510/0x5e0 [ 44.989360][ T4019] invoke_syscall+0x98/0x2b8 [ 44.990783][ T4019] el0_svc_common+0x138/0x258 [ 44.992140][ T4019] do_el0_svc+0x58/0x14c [ 44.993607][ T4019] el0_svc+0x7c/0x1f0 [ 44.994808][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 44.996210][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 44.997617][ T4019] [ 44.997617][ T4019] -> #0 (sb_internal#2){.+.+}-{0:0}: [ 44.999788][ T4019] __lock_acquire+0x32d4/0x7638 [ 45.001165][ T4019] lock_acquire+0x240/0x77c [ 45.002459][ T4019] start_transaction+0x644/0x1480 [ 45.003951][ T4019] btrfs_start_transaction+0x34/0x44 [ 45.005470][ T4019] btrfs_fileattr_set+0x4dc/0x9b8 [ 45.006888][ T4019] vfs_fileattr_set+0x70c/0xad4 [ 45.008283][ T4019] do_vfs_ioctl+0x1634/0x2a38 [ 45.009607][ T4019] __arm64_sys_ioctl+0xe4/0x1c8 [ 45.011017][ T4019] invoke_syscall+0x98/0x2b8 [ 45.012422][ T4019] el0_svc_common+0x138/0x258 [ 45.013694][ T4019] do_el0_svc+0x58/0x14c [ 45.014864][ T4019] el0_svc+0x7c/0x1f0 [ 45.016022][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 45.017464][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 45.018778][ T4019] [ 45.018778][ T4019] other info that might help us debug this: [ 45.018778][ T4019] [ 45.021419][ T4019] Chain exists of: [ 45.021419][ T4019] sb_internal#2 --> &fs_devs->device_list_mutex --> &type->i_mutex_dir_key#6 [ 45.021419][ T4019] [ 45.025320][ T4019] Possible unsafe locking scenario: [ 45.025320][ T4019] [ 45.027253][ T4019] CPU0 CPU1 [ 45.028695][ T4019] ---- ---- [ 45.029991][ T4019] lock(&type->i_mutex_dir_key#6); [ 45.031360][ T4019] lock(&fs_devs->device_list_mutex); [ 45.033470][ T4019] lock(&type->i_mutex_dir_key#6); [ 45.035453][ T4019] lock(sb_internal#2); [ 45.036599][ T4019] [ 45.036599][ T4019] *** DEADLOCK *** [ 45.036599][ T4019] [ 45.038687][ T4019] 2 locks held by syz-executor395/4019: [ 45.040087][ T4019] #0: ffff0000cb1aa460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 45.042632][ T4019] #1: ffff0000deaa8610 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: vfs_fileattr_set+0x110/0xad4 [ 45.045476][ T4019] [ 45.045476][ T4019] stack backtrace: [ 45.046995][ T4019] CPU: 0 PID: 4019 Comm: syz-executor395 Not tainted 5.15.178-syzkaller #0 [ 45.049195][ T4019] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 45.051799][ T4019] Call trace: [ 45.052654][ T4019] dump_backtrace+0x0/0x530 [ 45.053800][ T4019] show_stack+0x2c/0x3c [ 45.054866][ T4019] dump_stack_lvl+0x108/0x170 [ 45.056096][ T4019] dump_stack+0x1c/0x58 [ 45.057169][ T4019] print_circular_bug+0x150/0x1b8 [ 45.058444][ T4019] check_noncircular+0x2cc/0x378 [ 45.059758][ T4019] __lock_acquire+0x32d4/0x7638 [ 45.060966][ T4019] lock_acquire+0x240/0x77c [ 45.062133][ T4019] start_transaction+0x644/0x1480 [ 45.063446][ T4019] btrfs_start_transaction+0x34/0x44 [ 45.064799][ T4019] btrfs_fileattr_set+0x4dc/0x9b8 [ 45.066120][ T4019] vfs_fileattr_set+0x70c/0xad4 [ 45.067374][ T4019] do_vfs_ioctl+0x1634/0x2a38 [ 45.068675][ T4019] __arm64_sys_ioctl+0xe4/0x1c8 [ 45.069935][ T4019] invoke_syscall+0x98/0x2b8 [ 45.071150][ T4019] el0_svc_common+0x138/0x258 [ 45.072386][ T4019] do_el0_svc+0x58/0x14c [ 45.073507][ T4019] el0_svc+0x7c/0x1f0 [ 45.074573][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 45.075948][ T4019] el0t_64_sync+0x1a0/0x1a4