Warning: Permanently added '10.128.0.124' (ED25519) to the list of known hosts. executing program [ 72.359031][ T4248] loop0: detected capacity change from 0 to 1024 [ 72.384201][ T4248] hfsplus: xattr searching failed [ 72.390403][ T4248] hfsplus: xattr searching failed [ 72.409458][ T4248] hfsplus: xattr searching failed [ 72.414894][ T4248] [ 72.417248][ T4248] ====================================================== [ 72.424280][ T4248] WARNING: possible circular locking dependency detected [ 72.431328][ T4248] 6.1.141-syzkaller #0 Not tainted [ 72.436461][ T4248] ------------------------------------------------------ [ 72.443582][ T4248] syz-executor299/4248 is trying to acquire lock: [ 72.450017][ T4248] ffff88801dfe00b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x150/0x1c0 [ 72.459787][ T4248] [ 72.459787][ T4248] but task is already holding lock: [ 72.467186][ T4248] ffff888079890108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x28f/0xb30 [ 72.478376][ T4248] [ 72.478376][ T4248] which lock already depends on the new lock. [ 72.478376][ T4248] [ 72.488796][ T4248] [ 72.488796][ T4248] the existing dependency chain (in reverse order) is: [ 72.497825][ T4248] [ 72.497825][ T4248] -> #1 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}: [ 72.506890][ T4248] __mutex_lock+0x120/0xaf0 [ 72.511934][ T4248] hfsplus_file_extend+0x1b3/0x1950 [ 72.517655][ T4248] hfsplus_bmap_reserve+0x11e/0x4f0 [ 72.523378][ T4248] __hfsplus_ext_write_extent+0x28d/0x5b0 [ 72.529622][ T4248] __hfsplus_ext_cache_extent+0x89/0xe20 [ 72.535776][ T4248] hfsplus_file_extend+0x445/0x1950 [ 72.541495][ T4248] hfsplus_get_block+0x40e/0x1530 [ 72.547044][ T4248] __block_write_begin_int+0x54b/0x1a70 [ 72.553117][ T4248] block_write_begin+0x96/0x1e0 [ 72.558496][ T4248] cont_write_begin+0x5c4/0x7d0 [ 72.563874][ T4248] hfsplus_write_begin+0x87/0xd0 [ 72.569333][ T4248] generic_perform_write+0x2db/0x560 [ 72.575171][ T4248] __generic_file_write_iter+0x172/0x430 [ 72.581364][ T4248] generic_file_write_iter+0xab/0x2e0 [ 72.587265][ T4248] vfs_write+0x44c/0x960 [ 72.592026][ T4248] ksys_write+0x143/0x240 [ 72.596871][ T4248] do_syscall_64+0x4c/0xa0 [ 72.601812][ T4248] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 72.608231][ T4248] [ 72.608231][ T4248] -> #0 (&tree->tree_lock/1){+.+.}-{3:3}: [ 72.616141][ T4248] __lock_acquire+0x2cf8/0x7c50 [ 72.621514][ T4248] lock_acquire+0x1b4/0x490 [ 72.626538][ T4248] __mutex_lock+0x120/0xaf0 [ 72.631572][ T4248] hfsplus_find_init+0x150/0x1c0 [ 72.637048][ T4248] hfsplus_file_truncate+0x37e/0xb30 [ 72.642865][ T4248] hfsplus_setattr+0x1c0/0x280 [ 72.648172][ T4248] notify_change+0xc74/0xf40 [ 72.653301][ T4248] do_truncate+0x197/0x220 [ 72.658245][ T4248] path_openat+0x27f2/0x2e70 [ 72.663385][ T4248] do_filp_open+0x1c1/0x3c0 [ 72.668415][ T4248] do_sys_openat2+0x142/0x490 [ 72.673618][ T4248] __x64_sys_creat+0x8c/0xb0 [ 72.678741][ T4248] do_syscall_64+0x4c/0xa0 [ 72.683691][ T4248] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 72.690139][ T4248] [ 72.690139][ T4248] other info that might help us debug this: [ 72.690139][ T4248] [ 72.700376][ T4248] Possible unsafe locking scenario: [ 72.700376][ T4248] [ 72.707830][ T4248] CPU0 CPU1 [ 72.713196][ T4248] ---- ---- [ 72.718564][ T4248] lock(&HFSPLUS_I(inode)->extents_lock); [ 72.724371][ T4248] lock(&tree->tree_lock/1); [ 72.731578][ T4248] lock(&HFSPLUS_I(inode)->extents_lock); [ 72.739907][ T4248] lock(&tree->tree_lock/1); [ 72.744593][ T4248] [ 72.744593][ T4248] *** DEADLOCK *** [ 72.744593][ T4248] [ 72.752742][ T4248] 3 locks held by syz-executor299/4248: [ 72.758287][ T4248] #0: ffff888020376460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3d/0x90 [ 72.767439][ T4248] #1: ffff888079890300 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x183/0x220 [ 72.777813][ T4248] #2: ffff888079890108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x28f/0xb30 [ 72.789391][ T4248] [ 72.789391][ T4248] stack backtrace: [ 72.795296][ T4248] CPU: 1 PID: 4248 Comm: syz-executor299 Not tainted 6.1.141-syzkaller #0 [ 72.803796][ T4248] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 [ 72.813877][ T4248] Call Trace: [ 72.817186][ T4248] [ 72.820121][ T4248] dump_stack_lvl+0x168/0x22e [ 72.824813][ T4248] ? load_image+0x3b0/0x3b0 [ 72.829325][ T4248] ? show_regs_print_info+0x12/0x12 [ 72.834543][ T4248] ? print_circular_bug+0x12b/0x1a0 [ 72.839840][ T4248] check_noncircular+0x274/0x310 [ 72.844796][ T4248] ? add_chain_block+0x940/0x940 [ 72.849744][ T4248] ? lockdep_lock+0xdc/0x1e0 [ 72.854345][ T4248] ? _find_first_zero_bit+0xcf/0x100 [ 72.859637][ T4248] __lock_acquire+0x2cf8/0x7c50 [ 72.864495][ T4248] ? mark_lock+0x94/0x320 [ 72.868837][ T4248] ? _raw_spin_unlock_irqrestore+0x82/0x100 [ 72.874754][ T4248] ? verify_lock_unused+0x140/0x140 [ 72.879982][ T4248] ? _raw_spin_unlock_irqrestore+0xaa/0x100 [ 72.885881][ T4248] ? _raw_spin_unlock+0x40/0x40 [ 72.890824][ T4248] ? stack_trace_save+0x98/0xe0 [ 72.895680][ T4248] ? __stack_depot_save+0x421/0x460 [ 72.900888][ T4248] lock_acquire+0x1b4/0x490 [ 72.905502][ T4248] ? hfsplus_find_init+0x150/0x1c0 [ 72.910610][ T4248] ? hfsplus_file_truncate+0x37e/0xb30 [ 72.916072][ T4248] ? hfsplus_setattr+0x1c0/0x280 [ 72.921021][ T4248] ? __x64_sys_creat+0x8c/0xb0 [ 72.925812][ T4248] ? __might_sleep+0xd0/0xd0 [ 72.930410][ T4248] ? read_lock_is_recursive+0x10/0x10 [ 72.935788][ T4248] __mutex_lock+0x120/0xaf0 [ 72.940289][ T4248] ? hfsplus_find_init+0x150/0x1c0 [ 72.945406][ T4248] ? hfsplus_find_init+0x150/0x1c0 [ 72.950520][ T4248] ? mutex_lock_nested+0x10/0x10 [ 72.955561][ T4248] ? __kmem_cache_alloc_node+0x140/0x260 [ 72.961205][ T4248] ? hfsplus_find_init+0x85/0x1c0 [ 72.966260][ T4248] ? hfsplus_find_init+0x85/0x1c0 [ 72.971308][ T4248] ? __kmalloc+0xe1/0x240 [ 72.975645][ T4248] hfsplus_find_init+0x150/0x1c0 [ 72.980599][ T4248] hfsplus_file_truncate+0x37e/0xb30 [ 72.985900][ T4248] ? hfsplus_add_extent+0x890/0x890 [ 72.991121][ T4248] ? __up_read+0x27c/0x660 [ 72.995551][ T4248] ? unmap_mapping_range+0x91/0x100 [ 73.000750][ T4248] hfsplus_setattr+0x1c0/0x280 [ 73.005604][ T4248] ? hfsplus_fileattr_set+0x330/0x330 [ 73.010979][ T4248] notify_change+0xc74/0xf40 [ 73.015584][ T4248] do_truncate+0x197/0x220 [ 73.020039][ T4248] ? aa_get_current_label+0x110/0x1d0 [ 73.025439][ T4248] ? put_page_bootmem+0x2c0/0x2c0 [ 73.030484][ T4248] ? ima_bprm_check+0x1f0/0x1f0 [ 73.035347][ T4248] ? bpf_lsm_path_truncate+0x5/0x10 [ 73.040557][ T4248] path_openat+0x27f2/0x2e70 [ 73.045158][ T4248] ? do_filp_open+0x3c0/0x3c0 [ 73.049870][ T4248] do_filp_open+0x1c1/0x3c0 [ 73.054413][ T4248] ? vfs_tmpfile+0x480/0x480 [ 73.059018][ T4248] ? _raw_spin_unlock+0x24/0x40 [ 73.063874][ T4248] ? alloc_fd+0x58f/0x630 [ 73.068217][ T4248] do_sys_openat2+0x142/0x490 [ 73.072904][ T4248] ? do_sys_open+0xe0/0xe0 [ 73.077324][ T4248] ? lockdep_hardirqs_on_prepare+0x3fc/0x760 [ 73.083312][ T4248] ? lock_chain_count+0x20/0x20 [ 73.088176][ T4248] __x64_sys_creat+0x8c/0xb0 [ 73.092781][ T4248] do_syscall_64+0x4c/0xa0 [ 73.097265][ T4248] ? clear_bhb_loop+0x60/0xb0 [ 73.101942][ T4248] ? clear_bhb_loop+0x60/0xb0 [ 73.106624][ T4248] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 73.112527][ T4248] RIP: 0033:0x7fcffcb16939 [ 73.116953][ T4248] 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 [ 73.136613][ T4248] RSP: 002b:00007fffe184a328 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 73.145028][ T4248] RAX: ffffffffffffffda RBX: 0000200000000040 RCX: 00007fcffcb16939 [ 73.153009][ T4248] RDX: 00007fcffcb16939 RSI: 0000000000000180 RDI: 0000200000000000 [ 73.160984][ T4248]