Warning: Permanently added '10.128.0.206' (ED25519) to the list of known hosts. executing program [ 52.719446][ T3540] loop0: detected capacity change from 0 to 1024 [ 52.754681][ T3540] [ 52.757040][ T3540] ============================================ [ 52.763708][ T3540] WARNING: possible recursive locking detected [ 52.769883][ T3540] 6.1.84-syzkaller #0 Not tainted [ 52.774889][ T3540] -------------------------------------------- [ 52.781025][ T3540] syz-executor262/3540 is trying to acquire lock: [ 52.787428][ T3540] ffff88807c9b07c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x37f/0x14e0 [ 52.798333][ T3540] [ 52.798333][ T3540] but task is already holding lock: [ 52.805861][ T3540] ffff888077369548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2d6/0xb40 [ 52.816981][ T3540] [ 52.816981][ T3540] other info that might help us debug this: [ 52.825372][ T3540] Possible unsafe locking scenario: [ 52.825372][ T3540] [ 52.833073][ T3540] CPU0 [ 52.836354][ T3540] ---- [ 52.839617][ T3540] lock(&HFSPLUS_I(inode)->extents_lock); [ 52.847146][ T3540] lock(&HFSPLUS_I(inode)->extents_lock); [ 52.852937][ T3540] [ 52.852937][ T3540] *** DEADLOCK *** [ 52.852937][ T3540] [ 52.861080][ T3540] May be due to missing lock nesting notation [ 52.861080][ T3540] [ 52.870174][ T3540] 4 locks held by syz-executor262/3540: [ 52.876059][ T3540] #0: ffff88807d90e460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 52.885488][ T3540] #1: ffff888077369740 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x208/0x300 [ 52.896362][ T3540] #2: ffff888077369548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2d6/0xb40 [ 52.908353][ T3540] #3: ffff888028d940f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xb7/0x4d0 [ 52.918743][ T3540] [ 52.918743][ T3540] stack backtrace: [ 52.924889][ T3540] CPU: 0 PID: 3540 Comm: syz-executor262 Not tainted 6.1.84-syzkaller #0 [ 52.933517][ T3540] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 52.943673][ T3540] Call Trace: [ 52.947074][ T3540] [ 52.950013][ T3540] dump_stack_lvl+0x1e3/0x2cb [ 52.954740][ T3540] ? nf_tcp_handle_invalid+0x642/0x642 [ 52.960475][ T3540] ? panic+0x75d/0x75d [ 52.964542][ T3540] validate_chain+0x4711/0x5950 [ 52.969396][ T3540] ? stack_trace_snprint+0xe0/0xe0 [ 52.974503][ T3540] ? add_chain_block+0x850/0x850 [ 52.979550][ T3540] ? reacquire_held_locks+0x660/0x660 [ 52.984918][ T3540] ? lockdep_unlock+0x165/0x300 [ 52.989762][ T3540] ? lockdep_lock+0x2a0/0x2a0 [ 52.994523][ T3540] ? add_lock_to_list+0x1de/0x2e0 [ 52.999542][ T3540] ? look_up_lock_class+0x77/0x140 [ 53.004642][ T3540] ? register_lock_class+0x100/0x990 [ 53.009920][ T3540] ? is_dynamic_key+0x260/0x260 [ 53.014857][ T3540] ? mark_lock+0x9a/0x340 [ 53.019193][ T3540] __lock_acquire+0x125b/0x1f80 [ 53.024146][ T3540] lock_acquire+0x1f8/0x5a0 [ 53.028849][ T3540] ? hfsplus_get_block+0x37f/0x14e0 [ 53.034405][ T3540] ? read_lock_is_recursive+0x10/0x10 [ 53.039785][ T3540] ? is_dynamic_key+0x260/0x260 [ 53.044751][ T3540] ? __might_sleep+0xb0/0xb0 [ 53.049515][ T3540] ? mark_lock+0x9a/0x340 [ 53.054022][ T3540] ? __lock_acquire+0x125b/0x1f80 [ 53.059071][ T3540] __mutex_lock+0x132/0xd80 [ 53.063843][ T3540] ? hfsplus_get_block+0x37f/0x14e0 [ 53.069070][ T3540] ? hfsplus_get_block+0x37f/0x14e0 [ 53.074346][ T3540] ? mutex_lock_nested+0x10/0x10 [ 53.079283][ T3540] hfsplus_get_block+0x37f/0x14e0 [ 53.084479][ T3540] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 53.090627][ T3540] ? do_raw_spin_unlock+0x137/0x8a0 [ 53.096066][ T3540] ? create_page_buffers+0x24e/0x4b0 [ 53.101358][ T3540] block_read_full_folio+0x403/0xf60 [ 53.106644][ T3540] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 53.112363][ T3540] ? block_is_partially_uptodate+0x590/0x590 [ 53.118345][ T3540] ? folio_add_lru+0xd70/0xd70 [ 53.123097][ T3540] ? folio_add_lru+0x34d/0xd70 [ 53.127847][ T3540] ? folio_add_lru+0x584/0xd70 [ 53.132753][ T3540] filemap_read_folio+0x199/0x780 [ 53.137801][ T3540] ? filemap_add_folio+0x570/0x570 [ 53.142938][ T3540] ? hfsplus_writepage+0x30/0x30 [ 53.148051][ T3540] ? maybe_unlock_mmap_for_io+0x130/0x130 [ 53.153943][ T3540] ? hfsplus_block_free+0xb7/0x4d0 [ 53.159177][ T3540] do_read_cache_folio+0x2ee/0x810 [ 53.164293][ T3540] ? hfsplus_writepage+0x30/0x30 [ 53.169235][ T3540] do_read_cache_page+0x32/0x220 [ 53.174170][ T3540] hfsplus_block_free+0x124/0x4d0 [ 53.179194][ T3540] hfsplus_free_extents+0x17a/0xae0 [ 53.184412][ T3540] hfsplus_file_truncate+0x7cc/0xb40 [ 53.189783][ T3540] ? hfsplus_add_extent+0x880/0x880 [ 53.195004][ T3540] ? unmap_mapping_range+0xf4/0x280 [ 53.200344][ T3540] ? unmap_mapping_pages+0x180/0x180 [ 53.205627][ T3540] ? current_time+0x1d1/0x2f0 [ 53.210306][ T3540] ? setattr_prepare+0x1e0/0xc20 [ 53.215322][ T3540] ? truncate_setsize+0xcb/0xf0 [ 53.220191][ T3540] hfsplus_setattr+0x1b9/0x280 [ 53.224990][ T3540] ? hfsplus_fileattr_set+0x330/0x330 [ 53.230374][ T3540] notify_change+0xce3/0xfc0 [ 53.235050][ T3540] do_truncate+0x21c/0x300 [ 53.239549][ T3540] ? put_page_bootmem+0x2e0/0x2e0 [ 53.244667][ T3540] ? ima_bprm_check+0x2b0/0x2b0 [ 53.249527][ T3540] ? bpf_lsm_path_truncate+0x5/0x10 [ 53.254811][ T3540] path_openat+0x27e2/0x2e60 [ 53.259753][ T3540] ? do_filp_open+0x480/0x480 [ 53.264539][ T3540] do_filp_open+0x230/0x480 [ 53.269057][ T3540] ? vfs_tmpfile+0x4a0/0x4a0 [ 53.273745][ T3540] ? _raw_spin_unlock+0x24/0x40 [ 53.278679][ T3540] ? alloc_fd+0x59c/0x640 [ 53.283090][ T3540] do_sys_openat2+0x13b/0x500 [ 53.287773][ T3540] ? do_sys_open+0x220/0x220 [ 53.292548][ T3540] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 53.298557][ T3540] __x64_sys_creat+0x11f/0x160 [ 53.303343][ T3540] ? __x64_compat_sys_openat+0x290/0x290 [ 53.309248][ T3540] ? syscall_enter_from_user_mode+0x2e/0x230 [ 53.315247][ T3540] ? lockdep_hardirqs_on+0x94/0x130 [ 53.320550][ T3540] ? syscall_enter_from_user_mode+0x2e/0x230 [ 53.327041][ T3540] do_syscall_64+0x3d/0xb0 [ 53.331540][ T3540] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.337606][ T3540] RIP: 0033:0x7f6341bd75f9 [ 53.342009][ T3540] 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 [ 53.361610][ T3540] RSP: 002b:00007ffdadc20d48 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 53.370024][ T3540] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f6341bd75f9 [ 53.378261][ T3540] RDX: 00007f6341bd68f0 RSI: 0000000000000000 RDI: 0000000020000100 [ 53.386548][ T3540] RBP: 00007f6341c4a610 R08: 0000000000000685 R09: 0000000000000000 [ 53.394507][ T3540] R10: 00007ffdadc20c10 R11: 0000000000000246 R12: 0000000000000001 [ 53.402554][ T3540] R13: 00007ffdadc20f18 R14: 0000000000000001 R15: 0000000000000001 [ 53.410639][ T3540] [ 53.414149][ T3540] hfsplus: request for non-existent node 16777216 in B*Tree [ 53.421586][ T