Warning: Permanently added '10.128.0.235' (ED25519) to the list of known hosts. executing program [ 54.641385][ T3499] loop0: detected capacity change from 0 to 1024 [ 54.758607][ T3499] [ 54.761063][ T3499] ============================================ [ 54.767391][ T3499] WARNING: possible recursive locking detected [ 54.774610][ T3499] 5.15.153-syzkaller #0 Not tainted [ 54.779915][ T3499] -------------------------------------------- [ 54.786078][ T3499] syz-executor208/3499 is trying to acquire lock: [ 54.792799][ T3499] ffff8880796d1548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x37f/0x14e0 [ 54.804178][ T3499] [ 54.804178][ T3499] but task is already holding lock: [ 54.811536][ T3499] ffff8880796d2988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2e1/0xb80 [ 54.822702][ T3499] [ 54.822702][ T3499] other info that might help us debug this: [ 54.831274][ T3499] Possible unsafe locking scenario: [ 54.831274][ T3499] [ 54.838719][ T3499] CPU0 [ 54.842078][ T3499] ---- [ 54.845359][ T3499] lock(&HFSPLUS_I(inode)->extents_lock); [ 54.851939][ T3499] lock(&HFSPLUS_I(inode)->extents_lock); [ 54.857853][ T3499] [ 54.857853][ T3499] *** DEADLOCK *** [ 54.857853][ T3499] [ 54.866604][ T3499] May be due to missing lock nesting notation [ 54.866604][ T3499] [ 54.875018][ T3499] 4 locks held by syz-executor208/3499: [ 54.880665][ T3499] #0: ffff8880788fc460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 54.890575][ T3499] #1: ffff8880796d2b80 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x208/0x300 [ 54.901119][ T3499] #2: ffff8880796d2988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2e1/0xb80 [ 54.912985][ T3499] #3: ffff88807ea6a8f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xb7/0x4f0 [ 54.923115][ T3499] [ 54.923115][ T3499] stack backtrace: [ 54.929106][ T3499] CPU: 0 PID: 3499 Comm: syz-executor208 Not tainted 5.15.153-syzkaller #0 [ 54.937796][ T3499] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 54.947946][ T3499] Call Trace: [ 54.951236][ T3499] [ 54.954169][ T3499] dump_stack_lvl+0x1e3/0x2cb [ 54.959278][ T3499] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 54.964931][ T3499] ? panic+0x84d/0x84d [ 54.969027][ T3499] validate_chain+0x46d2/0x5930 [ 54.973883][ T3499] ? stack_trace_save+0x113/0x1c0 [ 54.979000][ T3499] ? stack_trace_snprint+0xe0/0xe0 [ 54.984230][ T3499] ? check_noncircular+0x1e1/0x3b0 [ 54.989562][ T3499] ? reacquire_held_locks+0x660/0x660 [ 54.995023][ T3499] ? add_chain_block+0x850/0x850 [ 54.999985][ T3499] ? lockdep_unlock+0x166/0x300 [ 55.005387][ T3499] ? look_up_lock_class+0x77/0x120 [ 55.010510][ T3499] ? register_lock_class+0x100/0x9a0 [ 55.015904][ T3499] ? is_dynamic_key+0x1f0/0x1f0 [ 55.021090][ T3499] ? validate_chain+0x13bd/0x5930 [ 55.026146][ T3499] ? mark_lock+0x98/0x340 [ 55.030592][ T3499] __lock_acquire+0x1295/0x1ff0 [ 55.035454][ T3499] lock_acquire+0x1db/0x4f0 [ 55.039963][ T3499] ? hfsplus_get_block+0x37f/0x14e0 [ 55.045549][ T3499] ? read_lock_is_recursive+0x10/0x10 [ 55.051032][ T3499] ? __might_sleep+0xc0/0xc0 [ 55.055759][ T3499] ? hfsplus_file_truncate+0x822/0xb80 [ 55.061409][ T3499] ? is_dynamic_key+0x1f0/0x1f0 [ 55.066270][ T3499] ? path_openat+0x28a0/0x2f20 [ 55.071049][ T3499] ? do_sys_openat2+0x13b/0x500 [ 55.075993][ T3499] ? mark_lock+0x98/0x340 [ 55.080319][ T3499] __mutex_lock_common+0x1da/0x25a0 [ 55.085597][ T3499] ? hfsplus_get_block+0x37f/0x14e0 [ 55.090815][ T3499] ? hfsplus_get_block+0x37f/0x14e0 [ 55.096233][ T3499] ? mutex_lock_io_nested+0x60/0x60 [ 55.101545][ T3499] ? lockdep_softirqs_off+0x420/0x420 [ 55.107371][ T3499] mutex_lock_nested+0x17/0x20 [ 55.112152][ T3499] hfsplus_get_block+0x37f/0x14e0 [ 55.117191][ T3499] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 55.123050][ T3499] ? do_raw_spin_unlock+0x137/0x8b0 [ 55.128264][ T3499] ? create_empty_buffers+0x5c0/0x6d0 [ 55.133654][ T3499] ? create_page_buffers+0x24b/0x330 [ 55.139445][ T3499] block_read_full_page+0x2f9/0xde0 [ 55.144840][ T3499] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 55.150581][ T3499] ? block_is_partially_uptodate+0x2c0/0x2c0 [ 55.156854][ T3499] ? hfsplus_writepage+0x30/0x30 [ 55.162369][ T3499] do_read_cache_page+0x752/0x1040 [ 55.168132][ T3499] hfsplus_block_free+0x120/0x4f0 [ 55.173365][ T3499] hfsplus_free_extents+0x17a/0xae0 [ 55.178582][ T3499] hfsplus_file_truncate+0x822/0xb80 [ 55.183882][ T3499] ? hfsplus_add_extent+0x880/0x880 [ 55.189381][ T3499] ? unmap_mapping_range+0x1ae/0x3e0 [ 55.194839][ T3499] ? unmap_mapping_pages+0x1e0/0x1e0 [ 55.200650][ T3499] ? truncate_setsize+0xcb/0xf0 [ 55.205666][ T3499] hfsplus_setattr+0x1b9/0x280 [ 55.210730][ T3499] ? hfsplus_write_failed+0x90/0x90 [ 55.216083][ T3499] notify_change+0xc6d/0xf50 [ 55.221220][ T3499] do_truncate+0x21c/0x300 [ 55.226240][ T3499] ? rcu_lock_release+0x20/0x20 [ 55.231218][ T3499] ? ima_bprm_check+0x2b0/0x2b0 [ 55.236091][ T3499] ? bpf_lsm_path_truncate+0x5/0x10 [ 55.241431][ T3499] path_openat+0x28a0/0x2f20 [ 55.246097][ T3499] ? do_filp_open+0x460/0x460 [ 55.251008][ T3499] do_filp_open+0x21c/0x460 [ 55.255894][ T3499] ? vfs_tmpfile+0x2e0/0x2e0 [ 55.260746][ T3499] ? _raw_spin_unlock+0x24/0x40 [ 55.265885][ T3499] ? alloc_fd+0x594/0x630 [ 55.270442][ T3499] do_sys_openat2+0x13b/0x500 [ 55.275350][ T3499] ? read_lock_is_recursive+0x10/0x10 [ 55.280765][ T3499] ? __context_tracking_exit+0x4c/0x80 [ 55.286351][ T3499] ? do_sys_open+0x220/0x220 [ 55.291340][ T3499] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 55.297389][ T3499] __x64_sys_creat+0x11f/0x160 [ 55.302396][ T3499] ? __x64_compat_sys_openat+0x290/0x290 [ 55.308323][ T3499] ? syscall_enter_from_user_mode+0x2e/0x230 [ 55.314725][ T3499] ? lockdep_hardirqs_on+0x94/0x130 [ 55.320169][ T3499] ? syscall_enter_from_user_mode+0x2e/0x230 [ 55.326708][ T3499] do_syscall_64+0x3d/0xb0 [ 55.331309][ T3499] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 55.337757][ T3499] RIP: 0033:0x7fcb8deb45f9 [ 55.342612][ T3499] 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 [ 55.364629][ T3499] RSP: 002b:00007ffc18595798 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 55.373271][ T3499] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fcb8deb45f9 [ 55.381475][ T3499] RDX: 00007fcb8deb38f0 RSI: 0000000000000000 RDI: 0000000020000100 [ 55.390238][ T3499] RBP: 00007fcb8df27610 R08: 0000000000000685 R09: 0000000000000000 [ 55.398400][ T3499] R10: 00007ffc18595660 R11: 0000000000000246 R12: 0000000000000001 [ 55.406880][ T3499] R13: 00007ffc18595968 R14: 0000000000000001 R15: 0000000000000001 [ 55.415102][ T3499] [ 55.421791][ T3499] hfsplus: request for non-existent node 16777216 in B*Tree [ 55.429240][ T3499] hfsplus: request for non-existent node 16777216 in B*Tree [ 55.438146][ T3499] hfsplus: request for non-existent node 16777216 in B*Tree [ 55.446286][ T3499] hfsplus: request for non-existent node 16777216 in B*Tree [ 55.455328][ T3499] hfsplus: request for non-existent node 16777216 in