Warning: Permanently added '10.128.1.50' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 37.531162][ T3960] loop0: detected capacity change from 0 to 1024 [ 37.536032][ T3960] ======================================================= [ 37.536032][ T3960] WARNING: The mand mount option has been deprecated and [ 37.536032][ T3960] and is ignored by this kernel. Remove the mand [ 37.536032][ T3960] option from the mount to silence this warning. [ 37.536032][ T3960] ======================================================= [ 37.556677][ T3960] [ 37.557246][ T3960] ====================================================== [ 37.558740][ T3960] WARNING: possible circular locking dependency detected [ 37.560324][ T3960] 5.15.114-syzkaller #0 Not tainted [ 37.561490][ T3960] ------------------------------------------------------ [ 37.563050][ T3960] syz-executor224/3960 is trying to acquire lock: [ 37.564417][ T3960] ffff0000c8c640b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x6d4/0x9cc [ 37.566562][ T3960] [ 37.566562][ T3960] but task is already holding lock: [ 37.568307][ T3960] ffff0000c92b2988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x254/0x9cc [ 37.570846][ T3960] [ 37.570846][ T3960] which lock already depends on the new lock. [ 37.570846][ T3960] [ 37.573140][ T3960] [ 37.573140][ T3960] the existing dependency chain (in reverse order) is: [ 37.575172][ T3960] [ 37.575172][ T3960] -> #1 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}: [ 37.577281][ T3960] __mutex_lock_common+0x194/0x2154 [ 37.578580][ T3960] mutex_lock_nested+0xa4/0xf8 [ 37.579776][ T3960] hfsplus_file_extend+0x198/0x14e0 [ 37.581169][ T3960] hfsplus_bmap_reserve+0xec/0x474 [ 37.582472][ T3960] hfsplus_create_cat+0x18c/0x1330 [ 37.583801][ T3960] hfsplus_fill_super+0xf64/0x167c [ 37.585086][ T3960] mount_bdev+0x274/0x370 [ 37.586193][ T3960] hfsplus_mount+0x44/0x58 [ 37.587384][ T3960] legacy_get_tree+0xd4/0x16c [ 37.588610][ T3960] vfs_get_tree+0x90/0x274 [ 37.589759][ T3960] do_new_mount+0x25c/0x8c4 [ 37.590841][ T3960] path_mount+0x590/0x104c [ 37.591955][ T3960] __arm64_sys_mount+0x510/0x5e0 [ 37.593202][ T3960] invoke_syscall+0x98/0x2b8 [ 37.594392][ T3960] el0_svc_common+0x138/0x258 [ 37.595600][ T3960] do_el0_svc+0x58/0x14c [ 37.596729][ T3960] el0_svc+0x7c/0x1f0 [ 37.597776][ T3960] el0t_64_sync_handler+0x84/0xe4 [ 37.599026][ T3960] el0t_64_sync+0x1a0/0x1a4 [ 37.600174][ T3960] [ 37.600174][ T3960] -> #0 (&tree->tree_lock){+.+.}-{3:3}: [ 37.601921][ T3960] __lock_acquire+0x32cc/0x7620 [ 37.603083][ T3960] lock_acquire+0x240/0x77c [ 37.604211][ T3960] __mutex_lock_common+0x194/0x2154 [ 37.605537][ T3960] mutex_lock_nested+0xa4/0xf8 [ 37.606739][ T3960] hfsplus_file_truncate+0x6d4/0x9cc [ 37.608111][ T3960] hfsplus_setattr+0x18c/0x25c [ 37.609367][ T3960] notify_change+0xac4/0xd60 [ 37.610529][ T3960] do_truncate+0x1c0/0x28c [ 37.611650][ T3960] vfs_truncate+0x2e0/0x388 [ 37.612794][ T3960] do_sys_truncate+0xec/0x1b4 [ 37.613974][ T3960] __arm64_sys_truncate+0x5c/0x70 [ 37.615255][ T3960] invoke_syscall+0x98/0x2b8 [ 37.616420][ T3960] el0_svc_common+0x138/0x258 [ 37.617590][ T3960] do_el0_svc+0x58/0x14c [ 37.618644][ T3960] el0_svc+0x7c/0x1f0 [ 37.619630][ T3960] el0t_64_sync_handler+0x84/0xe4 [ 37.620958][ T3960] el0t_64_sync+0x1a0/0x1a4 [ 37.622232][ T3960] [ 37.622232][ T3960] other info that might help us debug this: [ 37.622232][ T3960] [ 37.624620][ T3960] Possible unsafe locking scenario: [ 37.624620][ T3960] [ 37.626319][ T3960] CPU0 CPU1 [ 37.627557][ T3960] ---- ---- [ 37.628875][ T3960] lock(&HFSPLUS_I(inode)->extents_lock); [ 37.630300][ T3960] lock(&tree->tree_lock); [ 37.631829][ T3960] lock(&HFSPLUS_I(inode)->extents_lock); [ 37.633801][ T3960] lock(&tree->tree_lock); [ 37.634824][ T3960] [ 37.634824][ T3960] *** DEADLOCK *** [ 37.634824][ T3960] [ 37.636714][ T3960] 3 locks held by syz-executor224/3960: [ 37.637925][ T3960] #0: ffff0000c8c62460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 37.640050][ T3960] #1: ffff0000c92b2b80 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c [ 37.642471][ T3960] #2: ffff0000c92b2988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x254/0x9cc [ 37.645201][ T3960] [ 37.645201][ T3960] stack backtrace: [ 37.646597][ T3960] CPU: 1 PID: 3960 Comm: syz-executor224 Not tainted 5.15.114-syzkaller #0 [ 37.648556][ T3960] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 [ 37.650847][ T3960] Call trace: [ 37.651584][ T3960] dump_backtrace+0x0/0x530 [ 37.652580][ T3960] show_stack+0x2c/0x3c [ 37.653572][ T3960] dump_stack_lvl+0x108/0x170 [ 37.654600][ T3960] dump_stack+0x1c/0x58 [ 37.655524][ T3960] print_circular_bug+0x150/0x1b8 [ 37.656776][ T3960] check_noncircular+0x2cc/0x378 [ 37.657970][ T3960] __lock_acquire+0x32cc/0x7620 [ 37.659221][ T3960] lock_acquire+0x240/0x77c [ 37.660246][ T3960] __mutex_lock_common+0x194/0x2154 [ 37.661488][ T3960] mutex_lock_nested+0xa4/0xf8 [ 37.662531][ T3960] hfsplus_file_truncate+0x6d4/0x9cc [ 37.663686][ T3960] hfsplus_setattr+0x18c/0x25c [ 37.664816][ T3960] notify_change+0xac4/0xd60 [ 37.665917][ T3960] do_truncate+0x1c0/0x28c [ 37.666962][ T3960] vfs_truncate+0x2e0/0x388 [ 37.668090][ T3960] do_sys_truncate+0xec/0x1b4 [ 37.669273][ T3960] __arm64_sys_truncate+0x5c/0x70 [ 37.670436][ T3960] invoke_syscall+0x98/0x2b8 [ 37.671517][ T3960] el0_svc_common+0x138/0x258 [ 37.672585][ T3960] do_el0_svc+0x58/0x14c [ 37.673504][ T3960] el0_svc+0x7c/0x1f0 [ 37.674432][ T3960] el0t_64_sync_handler+0x84/0xe4 [ 37.675563][ T3960] el0t_64_sync+0x1a0/0x1a4