Warning: Permanently added '10.128.0.13' (ED25519) to the list of known hosts. executing program [ 67.722831][ T3542] loop0: detected capacity change from 0 to 1024 [ 67.732093][ T3542] ======================================================= [ 67.732093][ T3542] WARNING: The mand mount option has been deprecated and [ 67.732093][ T3542] and is ignored by this kernel. Remove the mand [ 67.732093][ T3542] option from the mount to silence this warning. [ 67.732093][ T3542] ======================================================= [ 67.791588][ T3542] [ 67.794114][ T3542] ====================================================== [ 67.801659][ T3542] WARNING: possible circular locking dependency detected [ 67.808734][ T3542] 6.1.42-syzkaller #0 Not tainted [ 67.813794][ T3542] ------------------------------------------------------ [ 67.820927][ T3542] syz-executor368/3542 is trying to acquire lock: [ 67.827361][ T3542] ffff88807af060b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x80d/0xb40 [ 67.837228][ T3542] [ 67.837228][ T3542] but task is already holding lock: [ 67.844739][ T3542] ffff88807e3e0108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2d6/0xb40 [ 67.856088][ T3542] [ 67.856088][ T3542] which lock already depends on the new lock. [ 67.856088][ T3542] [ 67.866774][ T3542] [ 67.866774][ T3542] the existing dependency chain (in reverse order) is: [ 67.875988][ T3542] [ 67.875988][ T3542] -> #1 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}: [ 67.886453][ T3542] lock_acquire+0x1f8/0x5a0 [ 67.891590][ T3542] __mutex_lock_common+0x1d4/0x2520 [ 67.897482][ T3542] mutex_lock_nested+0x17/0x20 [ 67.903107][ T3542] hfsplus_file_extend+0x1d2/0x1b10 [ 67.909305][ T3542] hfsplus_bmap_reserve+0x101/0x4e0 [ 67.915233][ T3542] hfsplus_create_cat+0x1a9/0x1ba0 [ 67.921565][ T3542] hfsplus_fill_super+0x13e6/0x1c90 [ 67.927761][ T3542] mount_bdev+0x2c9/0x3f0 [ 67.932838][ T3542] legacy_get_tree+0xeb/0x180 [ 67.938167][ T3542] vfs_get_tree+0x88/0x270 [ 67.943490][ T3542] do_new_mount+0x28b/0xae0 [ 67.948738][ T3542] __se_sys_mount+0x2d5/0x3c0 [ 67.954358][ T3542] do_syscall_64+0x3d/0xb0 [ 67.959328][ T3542] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 67.965809][ T3542] [ 67.965809][ T3542] -> #0 (&tree->tree_lock){+.+.}-{3:3}: [ 67.974009][ T3542] validate_chain+0x1667/0x58e0 [ 67.980025][ T3542] __lock_acquire+0x125b/0x1f80 [ 67.986393][ T3542] lock_acquire+0x1f8/0x5a0 [ 67.991937][ T3542] __mutex_lock_common+0x1d4/0x2520 [ 67.998336][ T3542] mutex_lock_nested+0x17/0x20 [ 68.004007][ T3542] hfsplus_file_truncate+0x80d/0xb40 [ 68.010165][ T3542] hfsplus_setattr+0x1b9/0x280 [ 68.015585][ T3542] notify_change+0xdcd/0x1080 [ 68.020830][ T3542] do_truncate+0x21c/0x300 [ 68.025904][ T3542] vfs_truncate+0x2dd/0x3a0 [ 68.031391][ T3542] do_sys_truncate+0xda/0x190 [ 68.036710][ T3542] do_syscall_64+0x3d/0xb0 [ 68.041771][ T3542] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 68.048413][ T3542] [ 68.048413][ T3542] other info that might help us debug this: [ 68.048413][ T3542] [ 68.058856][ T3542] Possible unsafe locking scenario: [ 68.058856][ T3542] [ 68.066658][ T3542] CPU0 CPU1 [ 68.072055][ T3542] ---- ---- [ 68.077575][ T3542] lock(&HFSPLUS_I(inode)->extents_lock); [ 68.083914][ T3542] lock(&tree->tree_lock); [ 68.090990][ T3542] lock(&HFSPLUS_I(inode)->extents_lock); [ 68.099697][ T3542] lock(&tree->tree_lock); [ 68.104246][ T3542] [ 68.104246][ T3542] *** DEADLOCK *** [ 68.104246][ T3542] [ 68.112708][ T3542] 3 locks held by syz-executor368/3542: [ 68.118398][ T3542] #0: ffff88807d1b6460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 68.127984][ T3542] #1: ffff88807e3e0300 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x208/0x300 [ 68.138400][ T3542] #2: ffff88807e3e0108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2d6/0xb40 [ 68.150030][ T3542] [ 68.150030][ T3542] stack backtrace: [ 68.155938][ T3542] CPU: 0 PID: 3542 Comm: syz-executor368 Not tainted 6.1.42-syzkaller #0 [ 68.164456][ T3542] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 68.174536][ T3542] Call Trace: [ 68.177908][ T3542] [ 68.180873][ T3542] dump_stack_lvl+0x1e3/0x2cb [ 68.185682][ T3542] ? nf_tcp_handle_invalid+0x642/0x642 [ 68.191353][ T3542] ? print_circular_bug+0x12b/0x1a0 [ 68.196678][ T3542] check_noncircular+0x2fa/0x3b0 [ 68.201837][ T3542] ? add_chain_block+0x850/0x850 [ 68.207273][ T3542] ? add_chain_block+0x850/0x850 [ 68.212233][ T3542] ? lockdep_lock+0x11f/0x2a0 [ 68.217017][ T3542] ? add_chain_block+0x850/0x850 [ 68.222453][ T3542] ? _find_first_zero_bit+0xd0/0x100 [ 68.228145][ T3542] validate_chain+0x1667/0x58e0 [ 68.233300][ T3542] ? reacquire_held_locks+0x660/0x660 [ 68.239695][ T3542] ? reacquire_held_locks+0x660/0x660 [ 68.245212][ T3542] ? look_up_lock_class+0x77/0x140 [ 68.250552][ T3542] ? register_lock_class+0x100/0x990 [ 68.255950][ T3542] ? mark_lock+0x9a/0x340 [ 68.260296][ T3542] ? is_dynamic_key+0x1f0/0x1f0 [ 68.265185][ T3542] ? __lock_acquire+0x125b/0x1f80 [ 68.270331][ T3542] ? mark_lock+0x9a/0x340 [ 68.274798][ T3542] __lock_acquire+0x125b/0x1f80 [ 68.279722][ T3542] lock_acquire+0x1f8/0x5a0 [ 68.284264][ T3542] ? hfsplus_file_truncate+0x80d/0xb40 [ 68.289842][ T3542] ? read_lock_is_recursive+0x10/0x10 [ 68.295246][ T3542] ? __might_sleep+0xb0/0xb0 [ 68.299867][ T3542] __mutex_lock_common+0x1d4/0x2520 [ 68.305099][ T3542] ? hfsplus_file_truncate+0x80d/0xb40 [ 68.310579][ T3542] ? hfsplus_file_truncate+0x80d/0xb40 [ 68.316049][ T3542] ? mutex_lock_io_nested+0x60/0x60 [ 68.321290][ T3542] ? hfsplus_free_extents+0x47e/0xae0 [ 68.326689][ T3542] mutex_lock_nested+0x17/0x20 [ 68.331488][ T3542] hfsplus_file_truncate+0x80d/0xb40 [ 68.336805][ T3542] ? hfsplus_add_extent+0x880/0x880 [ 68.342050][ T3542] ? unmap_mapping_range+0xf4/0x280 [ 68.347297][ T3542] ? unmap_mapping_pages+0x180/0x180 [ 68.352798][ T3542] ? current_time+0x1d1/0x2f0 [ 68.357505][ T3542] ? setattr_prepare+0x1e0/0xc20 [ 68.362483][ T3542] ? truncate_setsize+0xcb/0xf0 [ 68.367370][ T3542] hfsplus_setattr+0x1b9/0x280 [ 68.372280][ T3542] ? hfsplus_fileattr_set+0x330/0x330 [ 68.378127][ T3542] notify_change+0xdcd/0x1080 [ 68.382882][ T3542] do_truncate+0x21c/0x300 [ 68.387504][ T3542] ? put_page_bootmem+0x2e0/0x2e0 [ 68.392684][ T3542] ? bpf_lsm_path_truncate+0x5/0x10 [ 68.398220][ T3542] vfs_truncate+0x2dd/0x3a0 [ 68.403038][ T3542] do_sys_truncate+0xda/0x190 [ 68.407872][ T3542] ? break_lease+0xd0/0xd0 [ 68.412584][ T3542] ? syscall_enter_from_user_mode+0x2e/0x220 [ 68.418589][ T3542] ? lockdep_hardirqs_on+0x94/0x130 [ 68.423909][ T3542] ? syscall_enter_from_user_mode+0x2e/0x220 [ 68.430097][ T3542] do_syscall_64+0x3d/0xb0 [ 68.434546][ T3542] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 68.440457][ T3542] RIP: 0033:0x7f67b67115f9 [ 68.444888][ T3542] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 68.466700][ T3542] RSP: 002b:00007ffd268124d8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c [ 68.475342][ T3542] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f67b67115f9 [ 68.483705][ T3542] RDX: 00007f67b67108f0 RSI: 0000000000000000 RDI: 0000000020000080 [ 68.491684][ T3542] RBP: 00007f