Warning: Permanently added '10.128.1.173' (ED25519) to the list of known hosts. executing program [ 96.093069][ T5766] syz-executor117[5766]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 96.112573][ T5766] loop0: detected capacity change from 0 to 1024 [ 96.143960][ T5766] [ 96.146994][ T5766] ============================================ [ 96.153957][ T5766] WARNING: possible recursive locking detected [ 96.161615][ T5766] 6.6.94-syzkaller #0 Not tainted [ 96.166981][ T5766] -------------------------------------------- [ 96.174166][ T5766] syz-executor117/5766 is trying to acquire lock: [ 96.181587][ T5766] ffff88802ffa9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x39f/0x1530 [ 96.193335][ T5766] [ 96.193335][ T5766] but task is already holding lock: [ 96.201864][ T5766] ffff88802ffaa988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x293/0xb40 [ 96.214113][ T5766] [ 96.214113][ T5766] other info that might help us debug this: [ 96.223146][ T5766] Possible unsafe locking scenario: [ 96.223146][ T5766] [ 96.232513][ T5766] CPU0 [ 96.237231][ T5766] ---- [ 96.241411][ T5766] lock(&HFSPLUS_I(inode)->extents_lock); [ 96.248105][ T5766] lock(&HFSPLUS_I(inode)->extents_lock); [ 96.254098][ T5766] [ 96.254098][ T5766] *** DEADLOCK *** [ 96.254098][ T5766] [ 96.262643][ T5766] May be due to missing lock nesting notation [ 96.262643][ T5766] [ 96.272783][ T5766] 4 locks held by syz-executor117/5766: [ 96.279147][ T5766] #0: ffff88807f10c418 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 [ 96.289270][ T5766] #1: ffff88802ffaab90 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x187/0x220 [ 96.302273][ T5766] #2: ffff88802ffaa988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x293/0xb40 [ 96.314798][ T5766] #3: ffff88807e7de0f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xc3/0x4b0 [ 96.326022][ T5766] [ 96.326022][ T5766] stack backtrace: [ 96.332224][ T5766] CPU: 0 PID: 5766 Comm: syz-executor117 Not tainted 6.6.94-syzkaller #0 [ 96.342175][ T5766] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 [ 96.354617][ T5766] Call Trace: [ 96.358982][ T5766] [ 96.362210][ T5766] dump_stack_lvl+0x16c/0x230 [ 96.367098][ T5766] ? show_regs_print_info+0x20/0x20 [ 96.375127][ T5766] ? print_deadlock_bug+0x435/0x5d0 [ 96.381132][ T5766] __lock_acquire+0x5d40/0x7c80 [ 96.386602][ T5766] ? __kernel_text_address+0xd/0x30 [ 96.393214][ T5766] ? check_noncircular+0x175/0x3c0 [ 96.399169][ T5766] ? verify_lock_unused+0x140/0x140 [ 96.405087][ T5766] ? print_deadlock_bug+0x5d0/0x5d0 [ 96.412122][ T5766] ? lockdep_unlock+0x137/0x2d0 [ 96.417879][ T5766] ? lockdep_lock+0x220/0x220 [ 96.422883][ T5766] ? add_lock_to_list+0x191/0x280 [ 96.429623][ T5766] lock_acquire+0x197/0x410 [ 96.434422][ T5766] ? hfsplus_get_block+0x39f/0x1530 [ 96.439759][ T5766] ? __might_sleep+0xe0/0xe0 [ 96.445079][ T5766] ? read_lock_is_recursive+0x20/0x20 [ 96.452056][ T5766] ? verify_lock_unused+0x140/0x140 [ 96.460016][ T5766] __mutex_lock+0x129/0xcc0 [ 96.467315][ T5766] ? hfsplus_get_block+0x39f/0x1530 [ 96.473956][ T5766] ? __asan_memset+0x22/0x40 [ 96.479191][ T5766] ? hfsplus_get_block+0x39f/0x1530 [ 96.484832][ T5766] ? mutex_lock_nested+0x20/0x20 [ 96.490431][ T5766] hfsplus_get_block+0x39f/0x1530 [ 96.496282][ T5766] ? hfsplus_ext_write_extent+0x200/0x200 [ 96.502293][ T5766] ? do_raw_spin_unlock+0x121/0x230 [ 96.507951][ T5766] ? _raw_spin_unlock+0x28/0x40 [ 96.513344][ T5766] ? folio_create_empty_buffers+0x540/0x730 [ 96.520458][ T5766] block_read_full_folio+0x42e/0xf40 [ 96.526082][ T5766] ? hfsplus_ext_write_extent+0x200/0x200 [ 96.533664][ T5766] ? block_is_partially_uptodate+0x5d0/0x5d0 [ 96.540650][ T5766] ? folio_add_lru+0x320/0xd50 [ 96.545898][ T5766] ? __lock_acquire+0x7c80/0x7c80 [ 96.552601][ T5766] filemap_read_folio+0x167/0x760 [ 96.558281][ T5766] ? folio_batch_add_and_move+0x168/0x2b0 [ 96.564775][ T5766] ? hfsplus_writepage+0x30/0x30 [ 96.570228][ T5766] ? maybe_unlock_mmap_for_io+0xf0/0xf0 [ 96.577476][ T5766] ? folio_add_lru+0x54f/0xd50 [ 96.583052][ T5766] ? filemap_add_folio+0x192/0x3c0 [ 96.589148][ T5766] do_read_cache_folio+0x470/0x7e0 [ 96.594452][ T5766] ? hfsplus_writepage+0x30/0x30 [ 96.600148][ T5766] do_read_cache_page+0x32/0x250 [ 96.605455][ T5766] hfsplus_block_free+0x12c/0x4b0 [ 96.612530][ T5766] ? hfsplus_find_init+0x89/0x1d0 [ 96.617859][ T5766] hfsplus_free_extents+0x176/0xac0 [ 96.623671][ T5766] hfsplus_file_truncate+0x735/0xb40 [ 96.629982][ T5766] ? hfsplus_add_extent+0x890/0x890 [ 96.636854][ T5766] ? unmap_mapping_range+0xdf/0x170 [ 96.642615][ T5766] ? unmap_mapping_pages+0x150/0x150 [ 96.648279][ T5766] hfsplus_setattr+0x1c3/0x280 [ 96.655331][ T5766] ? hfsplus_fileattr_set+0x2f0/0x2f0 [ 96.661121][ T5766] notify_change+0xb0d/0xe10 [ 96.666144][ T5766] do_truncate+0x19b/0x220 [ 96.671145][ T5766] ? put_page_bootmem+0x2c0/0x2c0 [ 96.678229][ T5766] ? apparmor_file_truncate+0x23f/0x2d0 [ 96.685524][ T5766] ? ima_bprm_check+0x1f0/0x1f0 [ 96.691725][ T5766] path_openat+0x298c/0x3190 [ 96.697621][ T5766] ? do_filp_open+0x3d0/0x3d0 [ 96.702338][ T5766] do_filp_open+0x1c5/0x3d0 [ 96.707139][ T5766] ? vfs_tmpfile+0x490/0x490 [ 96.712050][ T5766] ? _raw_spin_unlock+0x28/0x40 [ 96.717013][ T5766] ? alloc_fd+0x58f/0x630 [ 96.722803][ T5766] do_sys_openat2+0x12c/0x1c0 [ 96.728067][ T5766] ? do_sys_open+0xe0/0xe0 [ 96.733654][ T5766] ? lockdep_hardirqs_on_prepare+0x400/0x760 [ 96.741705][ T5766] ? lock_chain_count+0x20/0x20 [ 96.748062][ T5766] __x64_sys_creat+0x90/0xb0 [ 96.753796][ T5766] do_syscall_64+0x55/0xb0 [ 96.759238][ T5766] ? clear_bhb_loop+0x40/0x90 [ 96.765083][ T5766] ? clear_bhb_loop+0x40/0x90 [ 96.769931][ T5766] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 96.776308][ T5766] RIP: 0033:0x7fcb884349f9 [ 96.781801][ T5766] 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 [ 96.806030][ T5766] RSP: 002b:00007ffe247e6288 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 96.815365][ T5766] RAX: ffffffffffffffda RBX: 00007fcb8847d05e RCX: 00007fcb884349f9 [ 96.825475][ T5766] RDX: 00007fcb88433cf0 RSI: 0000000000000002 RDI: 0000200000000200 [ 96.835491][ T5766] RBP: 0031656c69662f2e R08: 00000000000005ee R09: 0000000000000000 [ 96.845021][ T5766] R10: