Warning: Permanently added '10.128.1.23' (ECDSA) to the list of known hosts. executing program [ 32.649369] ====================================================== [ 32.649369] WARNING: the mand mount option is being deprecated and [ 32.649369] will be removed in v5.15! [ 32.649369] ====================================================== [ 32.679681] [ 32.681323] ============================================ [ 32.686756] WARNING: possible recursive locking detected [ 32.692189] 4.14.302-syzkaller #0 Not tainted [ 32.696655] -------------------------------------------- [ 32.702084] syz-executor106/7969 is trying to acquire lock: [ 32.707783] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 32.717747] [ 32.717747] but task is already holding lock: [ 32.723690] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 32.734010] [ 32.734010] other info that might help us debug this: [ 32.740732] Possible unsafe locking scenario: [ 32.740732] [ 32.746760] CPU0 [ 32.749349] ---- [ 32.751939] lock(&HFSPLUS_I(inode)->extents_lock); [ 32.757021] lock(&HFSPLUS_I(inode)->extents_lock); [ 32.762098] [ 32.762098] *** DEADLOCK *** [ 32.762098] [ 32.768126] May be due to missing lock nesting notation [ 32.768126] [ 32.775039] 5 locks held by syz-executor106/7969: [ 32.779854] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 32.788248] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 32.797692] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 32.808416] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 32.817663] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 32.826826] [ 32.826826] stack backtrace: [ 32.831299] CPU: 0 PID: 7969 Comm: syz-executor106 Not tainted 4.14.302-syzkaller #0 [ 32.839153] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 32.848478] Call Trace: [ 32.851041] dump_stack+0x1b2/0x281 [ 32.854643] __lock_acquire.cold+0x180/0x97c [ 32.859033] ? register_lock_class+0x1d0/0x1180 [ 32.863677] ? trace_hardirqs_on+0x10/0x10 [ 32.867919] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 32.873370] ? save_trace+0xd6/0x290 [ 32.877056] ? __lock_acquire+0x2190/0x3f20 [ 32.881357] lock_acquire+0x170/0x3f0 [ 32.885144] ? hfsplus_get_block+0x1f9/0x820 [ 32.889525] ? hfsplus_get_block+0x1f9/0x820 [ 32.893907] __mutex_lock+0xc4/0x1310 [ 32.897681] ? hfsplus_get_block+0x1f9/0x820 [ 32.902078] ? hfsplus_get_block+0x1f9/0x820 [ 32.906476] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 32.911913] ? lock_acquire+0x170/0x3f0 [ 32.915862] ? create_page_buffers+0x14d/0x1c0 [ 32.920419] hfsplus_get_block+0x1f9/0x820 [ 32.924630] ? _raw_spin_unlock+0x29/0x40 [ 32.928751] ? create_page_buffers+0xce/0x1c0 [ 32.933217] block_read_full_page+0x25e/0x8d0 [ 32.937687] ? hfsplus_file_extend+0xef0/0xef0 [ 32.942245] ? __lru_cache_add+0x178/0x250 [ 32.946459] ? __bread_gfp+0x2e0/0x2e0 [ 32.950320] ? add_to_page_cache_lru+0x136/0x2b0 [ 32.955050] ? add_to_page_cache_locked+0x40/0x40 [ 32.959871] ? alloc_pages_current+0x15d/0x260 [ 32.964439] do_read_cache_page+0x38e/0xc10 [ 32.968748] ? hfsplus_bmap+0x30/0x30 [ 32.972529] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 32.977958] hfsplus_block_free+0x177/0x560 [ 32.982259] hfsplus_free_extents+0x170/0x440 [ 32.986729] hfsplus_file_truncate+0xbc0/0xe80 [ 32.991284] ? hfsplus_get_block+0x820/0x820 [ 32.995665] ? up_write+0x17/0x60 [ 32.999100] ? unmap_mapping_range+0xe9/0x250 [ 33.003569] ? inode_newsize_ok+0x145/0x1c0 [ 33.007864] hfsplus_setattr+0x182/0x310 [ 33.011921] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 33.016390] notify_change+0x56b/0xd10 [ 33.020252] do_truncate+0xff/0x1a0 [ 33.023859] ? finish_open+0x170/0x170 [ 33.027720] ? apparmor_path_truncate+0x163/0x1d0 [ 33.032625] path_openat+0x1dcc/0x2970 [ 33.036485] ? path_lookupat+0x780/0x780 [ 33.040520] ? trace_hardirqs_on+0x10/0x10 [ 33.044728] ? trace_hardirqs_on+0x10/0x10 [ 33.048936] do_filp_open+0x179/0x3c0 [ 33.052711] ? may_open_dev+0xe0/0xe0 [ 33.056488] ? lock_downgrade+0x740/0x740 [ 33.060608] ? do_raw_spin_unlock+0x164/0x220 [ 33.065078] ? _raw_spin_unlock+0x29/0x40 [ 33.069200] ? __alloc_fd+0x1be/0x490 [ 33.072973] ? _raw_spin_unlock_irq+0x24/0x80 [ 33.077442] do_sys_open+0x296/0x410 [ 33.081128] ? filp_open+0x60/0x60 [ 33.084642] ? do_syscall_64+0x4c/0x640 [ 33.088674] ? compat_SyS_openat+0x30/0x30 [ 33.092892] do_syscall_64+0x1d5/0x640 [ 33.096777] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 33.101958] RIP: 0033:0x7f56655e3789 [ 33.105649] RSP: 002b:00007ffe89a6d488 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 33.113334] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f56655e3789 [ 33.120579] RDX: 00007f56655a1e03 RSI: 000000000000000a RDI: 0000000020000200 [ 33.128139] RBP: 00007f56655a3020 R08: 0000000000000604 R09: 0000000000000000 [ 33.135476] R10: 00007ffe89a6d350 R11: 0000000000000246 R12: 00007f56655a30b0 [ 33.142736] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000