Warning: Permanently added '10.128.0.128' (ED25519) to the list of known hosts. executing program [ 47.492416][ T4019] loop0: detected capacity change from 0 to 32768 [ 47.571825][ T4019] BTRFS: device fsid c9fe44da-de57-406a-8241-57ec7d4412cf devid 1 transid 8 /dev/loop0 scanned by syz-executor293 (4019) [ 47.621463][ T4019] BTRFS info (device loop0): using crc32c (crc32c-generic) checksum algorithm [ 47.623704][ T4019] BTRFS info (device loop0): setting nodatacow, compression disabled [ 47.625646][ T4019] BTRFS info (device loop0): max_inline at 0 [ 47.627076][ T4019] BTRFS info (device loop0): enabling disk space caching [ 47.628731][ T4019] BTRFS info (device loop0): enabling ssd optimizations [ 47.631388][ T4019] BTRFS info (device loop0): using spread ssd allocation scheme [ 47.633192][ T4019] BTRFS info (device loop0): enabling auto defrag [ 47.634616][ T4019] BTRFS info (device loop0): doing ref verification [ 47.636073][ T4019] BTRFS info (device loop0): force clearing of disk cache [ 47.637670][ T4019] BTRFS info (device loop0): turning off barriers [ 47.639144][ T4019] BTRFS info (device loop0): using default commit interval 30s [ 47.641704][ T4019] BTRFS info (device loop0): disk space caching is enabled [ 47.643290][ T4019] BTRFS info (device loop0): has skinny extents [ 47.662939][ T4019] BTRFS info (device loop0): clearing free space tree [ 47.664864][ T4019] BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) [ 47.667223][ T4019] BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) [ 47.682791][ T4019] [ 47.683341][ T4019] ====================================================== [ 47.684924][ T4019] WARNING: possible circular locking dependency detected [ 47.686505][ T4019] 5.15.178-syzkaller #0 Not tainted [ 47.687661][ T4019] ------------------------------------------------------ [ 47.689200][ T4019] syz-executor293/4019 is trying to acquire lock: [ 47.690666][ T4019] ffff0000c9d1a650 (sb_internal#2){.+.+}-{0:0}, at: btrfs_start_transaction+0x34/0x44 [ 47.692891][ T4019] [ 47.692891][ T4019] but task is already holding lock: [ 47.694727][ T4019] ffff0000ddfd8610 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: vfs_fileattr_set+0x110/0xad4 [ 47.697328][ T4019] [ 47.697328][ T4019] which lock already depends on the new lock. [ 47.697328][ T4019] [ 47.699988][ T4019] [ 47.699988][ T4019] the existing dependency chain (in reverse order) is: [ 47.702293][ T4019] [ 47.702293][ T4019] -> #3 (&type->i_mutex_dir_key#6){++++}-{3:3}: [ 47.704552][ T4019] down_read+0xc0/0x398 [ 47.705870][ T4019] lookup_slow+0x50/0x84 [ 47.707116][ T4019] walk_component+0x394/0x4cc [ 47.708459][ T4019] path_lookupat+0x13c/0x3d0 [ 47.709837][ T4019] filename_lookup+0x1c4/0x4c8 [ 47.711128][ T4019] kern_path+0x4c/0x194 [ 47.712353][ T4019] lookup_bdev+0xc0/0x25c [ 47.713622][ T4019] btrfs_free_stale_devices+0x658/0x9ec [ 47.715186][ T4019] btrfs_forget_devices+0x5c/0x98 [ 47.716641][ T4019] btrfs_control_ioctl+0x12c/0x248 [ 47.718154][ T4019] __arm64_sys_ioctl+0x14c/0x1c8 [ 47.719579][ T4019] invoke_syscall+0x98/0x2b8 [ 47.720883][ T4019] el0_svc_common+0x138/0x258 [ 47.722189][ T4019] do_el0_svc+0x58/0x14c [ 47.723398][ T4019] el0_svc+0x7c/0x1f0 [ 47.724472][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 47.725669][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 47.726940][ T4019] [ 47.726940][ T4019] -> #2 (&fs_devs->device_list_mutex){+.+.}-{3:3}: [ 47.729224][ T4019] __mutex_lock_common+0x194/0x2154 [ 47.730710][ T4019] mutex_lock_nested+0xa4/0xf8 [ 47.732131][ T4019] btrfs_run_dev_stats+0xe4/0xe24 [ 47.733497][ T4019] commit_cowonly_roots+0x17c/0x808 [ 47.735092][ T4019] btrfs_commit_transaction+0xef4/0x30f0 [ 47.736654][ T4019] btrfs_clear_free_space_tree+0x5d0/0x9bc [ 47.738288][ T4019] btrfs_start_pre_rw_mount+0x24c/0x578 [ 47.739919][ T4019] open_ctree+0x2290/0x28f4 [ 47.741234][ T4019] btrfs_fill_super+0x1b4/0x2c8 [ 47.742673][ T4019] btrfs_mount_root+0x6f8/0x7f8 [ 47.744053][ T4019] legacy_get_tree+0xd4/0x16c [ 47.745446][ T4019] vfs_get_tree+0x90/0x274 [ 47.746747][ T4019] vfs_kern_mount+0xdc/0x178 [ 47.748049][ T4019] btrfs_mount+0x328/0x9b8 [ 47.749370][ T4019] legacy_get_tree+0xd4/0x16c [ 47.750824][ T4019] vfs_get_tree+0x90/0x274 [ 47.752211][ T4019] do_new_mount+0x278/0x8fc [ 47.753498][ T4019] path_mount+0x594/0x101c [ 47.754744][ T4019] __arm64_sys_mount+0x510/0x5e0 [ 47.756161][ T4019] invoke_syscall+0x98/0x2b8 [ 47.757503][ T4019] el0_svc_common+0x138/0x258 [ 47.758854][ T4019] do_el0_svc+0x58/0x14c [ 47.760087][ T4019] el0_svc+0x7c/0x1f0 [ 47.761226][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 47.762617][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 47.763863][ T4019] [ 47.763863][ T4019] -> #1 (&fs_info->tree_log_mutex){+.+.}-{3:3}: [ 47.766105][ T4019] lock_release+0x340/0xa1c [ 47.767405][ T4019] __mutex_unlock_slowpath+0xe0/0x6d4 [ 47.768918][ T4019] mutex_unlock+0x8c/0xe0 [ 47.770212][ T4019] btrfs_commit_transaction+0x1650/0x30f0 [ 47.771855][ T4019] btrfs_clear_free_space_tree+0x5d0/0x9bc [ 47.773487][ T4019] btrfs_start_pre_rw_mount+0x24c/0x578 [ 47.775146][ T4019] open_ctree+0x2290/0x28f4 [ 47.776407][ T4019] btrfs_fill_super+0x1b4/0x2c8 [ 47.777795][ T4019] btrfs_mount_root+0x6f8/0x7f8 [ 47.779188][ T4019] legacy_get_tree+0xd4/0x16c [ 47.780466][ T4019] vfs_get_tree+0x90/0x274 [ 47.781769][ T4019] vfs_kern_mount+0xdc/0x178 [ 47.783096][ T4019] btrfs_mount+0x328/0x9b8 [ 47.784374][ T4019] legacy_get_tree+0xd4/0x16c [ 47.785783][ T4019] vfs_get_tree+0x90/0x274 [ 47.787043][ T4019] do_new_mount+0x278/0x8fc [ 47.788273][ T4019] path_mount+0x594/0x101c [ 47.789548][ T4019] __arm64_sys_mount+0x510/0x5e0 [ 47.790939][ T4019] invoke_syscall+0x98/0x2b8 [ 47.792281][ T4019] el0_svc_common+0x138/0x258 [ 47.793596][ T4019] do_el0_svc+0x58/0x14c [ 47.794801][ T4019] el0_svc+0x7c/0x1f0 [ 47.795947][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 47.797461][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 47.798710][ T4019] [ 47.798710][ T4019] -> #0 (sb_internal#2){.+.+}-{0:0}: [ 47.800767][ T4019] __lock_acquire+0x32d4/0x7638 [ 47.802170][ T4019] lock_acquire+0x240/0x77c [ 47.803473][ T4019] start_transaction+0x644/0x1480 [ 47.804930][ T4019] btrfs_start_transaction+0x34/0x44 [ 47.806461][ T4019] btrfs_fileattr_set+0x4dc/0x9b8 [ 47.807931][ T4019] vfs_fileattr_set+0x70c/0xad4 [ 47.809438][ T4019] do_vfs_ioctl+0x1634/0x2a38 [ 47.810788][ T4019] __arm64_sys_ioctl+0xe4/0x1c8 [ 47.812129][ T4019] invoke_syscall+0x98/0x2b8 [ 47.813452][ T4019] el0_svc_common+0x138/0x258 [ 47.814786][ T4019] do_el0_svc+0x58/0x14c [ 47.815990][ T4019] el0_svc+0x7c/0x1f0 [ 47.817168][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 47.818667][ T4019] el0t_64_sync+0x1a0/0x1a4 [ 47.819984][ T4019] [ 47.819984][ T4019] other info that might help us debug this: [ 47.819984][ T4019] [ 47.822682][ T4019] Chain exists of: [ 47.822682][ T4019] sb_internal#2 --> &fs_devs->device_list_mutex --> &type->i_mutex_dir_key#6 [ 47.822682][ T4019] [ 47.826440][ T4019] Possible unsafe locking scenario: [ 47.826440][ T4019] [ 47.828408][ T4019] CPU0 CPU1 [ 47.829788][ T4019] ---- ---- [ 47.831133][ T4019] lock(&type->i_mutex_dir_key#6); [ 47.832551][ T4019] lock(&fs_devs->device_list_mutex); [ 47.834672][ T4019] lock(&type->i_mutex_dir_key#6); [ 47.836650][ T4019] lock(sb_internal#2); [ 47.837734][ T4019] [ 47.837734][ T4019] *** DEADLOCK *** [ 47.837734][ T4019] [ 47.839892][ T4019] 2 locks held by syz-executor293/4019: [ 47.841299][ T4019] #0: ffff0000c9d1a460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 47.843938][ T4019] #1: ffff0000ddfd8610 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: vfs_fileattr_set+0x110/0xad4 [ 47.846608][ T4019] [ 47.846608][ T4019] stack backtrace: [ 47.848117][ T4019] CPU: 0 PID: 4019 Comm: syz-executor293 Not tainted 5.15.178-syzkaller #0 [ 47.850469][ T4019] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 47.853257][ T4019] Call trace: [ 47.854140][ T4019] dump_backtrace+0x0/0x530 [ 47.855292][ T4019] show_stack+0x2c/0x3c [ 47.856319][ T4019] dump_stack_lvl+0x108/0x170 [ 47.857620][ T4019] dump_stack+0x1c/0x58 [ 47.858670][ T4019] print_circular_bug+0x150/0x1b8 [ 47.859976][ T4019] check_noncircular+0x2cc/0x378 [ 47.861315][ T4019] __lock_acquire+0x32d4/0x7638 [ 47.862598][ T4019] lock_acquire+0x240/0x77c [ 47.863835][ T4019] start_transaction+0x644/0x1480 [ 47.865167][ T4019] btrfs_start_transaction+0x34/0x44 [ 47.866534][ T4019] btrfs_fileattr_set+0x4dc/0x9b8 [ 47.867795][ T4019] vfs_fileattr_set+0x70c/0xad4 [ 47.869005][ T4019] do_vfs_ioctl+0x1634/0x2a38 [ 47.870162][ T4019] __arm64_sys_ioctl+0xe4/0x1c8 [ 47.871366][ T4019] invoke_syscall+0x98/0x2b8 [ 47.872528][ T4019] el0_svc_common+0x138/0x258 [ 47.873683][ T4019] do_el0_svc+0x58/0x14c [ 47.874729][ T4019] el0_svc+0x7c/0x1f0 [ 47.875767][ T4019] el0t_64_sync_handler+0x84/0xe4 [ 47.877137][ T4019] el0t_64_sync+0x1a0/0x1a4