Warning: Permanently added '10.128.0.20' (ECDSA) to the list of known hosts. executing program [ 42.670124][ T3500] loop0: detected capacity change from 0 to 1024 [ 42.678106][ T3500] ======================================================= [ 42.678106][ T3500] WARNING: The mand mount option has been deprecated and [ 42.678106][ T3500] and is ignored by this kernel. Remove the mand [ 42.678106][ T3500] option from the mount to silence this warning. [ 42.678106][ T3500] ======================================================= [ 42.729260][ T3500] [ 42.731619][ T3500] ============================================ [ 42.737851][ T3500] WARNING: possible recursive locking detected [ 42.743995][ T3500] 5.15.113-syzkaller #0 Not tainted [ 42.749170][ T3500] -------------------------------------------- [ 42.755296][ T3500] syz-executor310/3500 is trying to acquire lock: [ 42.761688][ T3500] ffff888015de1548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x37f/0x14e0 [ 42.772814][ T3500] [ 42.772814][ T3500] but task is already holding lock: [ 42.780156][ T3500] ffff88807b340108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2e1/0xb80 [ 42.791257][ T3500] [ 42.791257][ T3500] other info that might help us debug this: [ 42.799298][ T3500] Possible unsafe locking scenario: [ 42.799298][ T3500] [ 42.806721][ T3500] CPU0 [ 42.809987][ T3500] ---- [ 42.813375][ T3500] lock(&HFSPLUS_I(inode)->extents_lock); [ 42.819180][ T3500] lock(&HFSPLUS_I(inode)->extents_lock); [ 42.824981][ T3500] [ 42.824981][ T3500] *** DEADLOCK *** [ 42.824981][ T3500] [ 42.834141][ T3500] May be due to missing lock nesting notation [ 42.834141][ T3500] [ 42.843005][ T3500] 4 locks held by syz-executor310/3500: [ 42.850197][ T3500] #0: ffff8880155b0460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 42.859493][ T3500] #1: ffff88807b340300 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x208/0x300 [ 42.869826][ T3500] #2: ffff88807b340108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2e1/0xb80 [ 42.884201][ T3500] #3: ffff88802074b0f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xb7/0x4f0 [ 42.894186][ T3500] [ 42.894186][ T3500] stack backtrace: [ 42.900052][ T3500] CPU: 0 PID: 3500 Comm: syz-executor310 Not tainted 5.15.113-syzkaller #0 [ 42.908667][ T3500] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 42.918875][ T3500] Call Trace: [ 42.922145][ T3500] [ 42.925246][ T3500] dump_stack_lvl+0x1e3/0x2cb [ 42.929923][ T3500] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 42.935549][ T3500] ? panic+0x84d/0x84d [ 42.939693][ T3500] validate_chain+0x46cf/0x58b0 [ 42.944541][ T3500] ? stack_trace_save+0x113/0x1c0 [ 42.949556][ T3500] ? stack_trace_snprint+0xe0/0xe0 [ 42.955615][ T3500] ? check_noncircular+0x1e1/0x3b0 [ 42.960938][ T3500] ? reacquire_held_locks+0x660/0x660 [ 42.966393][ T3500] ? add_chain_block+0x850/0x850 [ 42.971327][ T3500] ? lockdep_unlock+0x166/0x300 [ 42.976347][ T3500] ? look_up_lock_class+0x77/0x120 [ 42.981611][ T3500] ? register_lock_class+0x100/0x9a0 [ 42.987094][ T3500] ? is_dynamic_key+0x1f0/0x1f0 [ 42.991957][ T3500] ? validate_chain+0x13b7/0x58b0 [ 42.997218][ T3500] ? mark_lock+0x98/0x340 [ 43.001526][ T3500] __lock_acquire+0x1295/0x1ff0 [ 43.006352][ T3500] lock_acquire+0x1db/0x4f0 [ 43.010833][ T3500] ? hfsplus_get_block+0x37f/0x14e0 [ 43.016009][ T3500] ? read_lock_is_recursive+0x10/0x10 [ 43.021361][ T3500] ? __might_sleep+0xc0/0xc0 [ 43.025924][ T3500] ? hfsplus_file_truncate+0x822/0xb80 [ 43.031359][ T3500] ? is_dynamic_key+0x1f0/0x1f0 [ 43.036185][ T3500] ? vfs_truncate+0x2dd/0x3a0 [ 43.040837][ T3500] ? do_syscall_64+0x3d/0xb0 [ 43.045401][ T3500] ? mark_lock+0x98/0x340 [ 43.049703][ T3500] __mutex_lock_common+0x1da/0x25a0 [ 43.055050][ T3500] ? hfsplus_get_block+0x37f/0x14e0 [ 43.060226][ T3500] ? hfsplus_get_block+0x37f/0x14e0 [ 43.065409][ T3500] ? mutex_lock_io_nested+0x60/0x60 [ 43.070672][ T3500] ? lockdep_softirqs_off+0x420/0x420 [ 43.076114][ T3500] mutex_lock_nested+0x17/0x20 [ 43.080876][ T3500] hfsplus_get_block+0x37f/0x14e0 [ 43.085877][ T3500] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 43.091662][ T3500] ? do_raw_spin_unlock+0x137/0x8b0 [ 43.096921][ T3500] ? create_empty_buffers+0x5c0/0x6d0 [ 43.102993][ T3500] ? create_page_buffers+0x24b/0x330 [ 43.108335][ T3500] block_read_full_page+0x2f9/0xde0 [ 43.113629][ T3500] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 43.119323][ T3500] ? block_is_partially_uptodate+0x2c0/0x2c0 [ 43.125281][ T3500] ? hfsplus_writepage+0x30/0x30 [ 43.130194][ T3500] do_read_cache_page+0x752/0x1040 [ 43.135288][ T3500] hfsplus_block_free+0x120/0x4f0 [ 43.140289][ T3500] hfsplus_free_extents+0x17a/0xae0 [ 43.145463][ T3500] hfsplus_file_truncate+0x822/0xb80 [ 43.150730][ T3500] ? hfsplus_add_extent+0x880/0x880 [ 43.155939][ T3500] ? unmap_mapping_range+0x1ae/0x3e0 [ 43.161202][ T3500] ? unmap_mapping_pages+0x1e0/0x1e0 [ 43.166462][ T3500] ? truncate_setsize+0xcb/0xf0 [ 43.171991][ T3500] hfsplus_setattr+0x1b9/0x280 [ 43.176732][ T3500] ? hfsplus_write_failed+0x90/0x90 [ 43.181997][ T3500] notify_change+0xd4d/0x1000 [ 43.186776][ T3500] do_truncate+0x21c/0x300 [ 43.191260][ T3500] ? put_page_bootmem+0x280/0x280 [ 43.196508][ T3500] ? bpf_lsm_path_truncate+0x5/0x10 [ 43.201706][ T3500] vfs_truncate+0x2dd/0x3a0 [ 43.206197][ T3500] do_sys_truncate+0xda/0x190 [ 43.210855][ T3500] ? break_lease+0xd0/0xd0 [ 43.215249][ T3500] ? syscall_enter_from_user_mode+0x2e/0x230 [ 43.221206][ T3500] ? lockdep_hardirqs_on+0x94/0x130 [ 43.226475][ T3500] ? syscall_enter_from_user_mode+0x2e/0x230 [ 43.232428][ T3500] do_syscall_64+0x3d/0xb0 [ 43.236836][ T3500] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 43.242704][ T3500] RIP: 0033:0x7f726bd5f789 [ 43.247094][ T3500] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 43.266867][ T3500] RSP: 002b:00007ffdca786ed8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c [ 43.275440][ T3500] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 0