[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.161' (ECDSA) to the list of known hosts. syzkaller login: [ 51.799870] IPVS: ftp: loaded support on port[0] = 21 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 55.644057] hfsplus: xattr searching failed [ 55.648948] [ 55.650578] ============================================ [ 55.656006] WARNING: possible recursive locking detected [ 55.661434] 4.14.300-syzkaller #0 Not tainted [ 55.665908] -------------------------------------------- [ 55.671339] syz-executor200/8478 is trying to acquire lock: [ 55.677026] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 55.686993] [ 55.686993] but task is already holding lock: [ 55.692950] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 55.703302] [ 55.703302] other info that might help us debug this: [ 55.710045] Possible unsafe locking scenario: [ 55.710045] [ 55.716078] CPU0 [ 55.718632] ---- [ 55.721184] lock(&HFSPLUS_I(inode)->extents_lock); [ 55.726259] lock(&HFSPLUS_I(inode)->extents_lock); [ 55.731333] [ 55.731333] *** DEADLOCK *** [ 55.731333] [ 55.737368] May be due to missing lock nesting notation [ 55.737368] [ 55.744446] 5 locks held by syz-executor200/8478: [ 55.749256] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 55.757642] #1: (&sb->s_type->i_mutex_key#18){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 55.767061] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 55.778079] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 55.787328] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 55.796490] [ 55.796490] stack backtrace: [ 55.800961] CPU: 0 PID: 8478 Comm: syz-executor200 Not tainted 4.14.300-syzkaller #0 [ 55.808810] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 55.818136] Call Trace: [ 55.820701] dump_stack+0x1b2/0x281 [ 55.824303] __lock_acquire.cold+0x180/0x97c [ 55.828688] ? register_lock_class+0x1d0/0x1180 [ 55.833329] ? trace_hardirqs_on+0x10/0x10 [ 55.837535] ? entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 55.842869] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 55.848202] ? save_trace+0xd6/0x290 [ 55.851887] ? __lock_acquire+0x2190/0x3f20 [ 55.856183] lock_acquire+0x170/0x3f0 [ 55.859956] ? hfsplus_get_block+0x1f9/0x820 [ 55.864336] ? hfsplus_get_block+0x1f9/0x820 [ 55.868805] __mutex_lock+0xc4/0x1310 [ 55.872575] ? hfsplus_get_block+0x1f9/0x820 [ 55.876964] ? hfsplus_get_block+0x1f9/0x820 [ 55.881342] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 55.886764] ? lock_acquire+0x170/0x3f0 [ 55.890711] ? create_page_buffers+0x14d/0x1c0 [ 55.895266] hfsplus_get_block+0x1f9/0x820 [ 55.899483] ? _raw_spin_unlock+0x29/0x40 [ 55.903602] ? create_page_buffers+0xce/0x1c0 [ 55.908070] block_read_full_page+0x25e/0x8d0 [ 55.912538] ? hfsplus_file_extend+0xef0/0xef0 [ 55.917097] ? __lru_cache_add+0x178/0x250 [ 55.921302] ? __bread_gfp+0x2e0/0x2e0 [ 55.925164] ? add_to_page_cache_lru+0x136/0x2b0 [ 55.929894] ? add_to_page_cache_locked+0x40/0x40 [ 55.934707] ? alloc_pages_current+0x15d/0x260 [ 55.939261] do_read_cache_page+0x38e/0xc10 [ 55.943556] ? hfsplus_bmap+0x30/0x30 [ 55.947329] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 55.952753] hfsplus_block_free+0x177/0x560 [ 55.957046] hfsplus_free_extents+0x170/0x440 [ 55.961515] hfsplus_file_truncate+0xbc0/0xe80 [ 55.966068] ? hfsplus_get_block+0x820/0x820 [ 55.970450] ? up_write+0x17/0x60 [ 55.973876] ? unmap_mapping_range+0xe9/0x250 [ 55.978345] ? inode_newsize_ok+0x145/0x1c0 [ 55.982645] hfsplus_setattr+0x182/0x310 [ 55.986678] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 55.991148] notify_change+0x56b/0xd10 [ 55.995007] do_truncate+0xff/0x1a0 [ 55.998603] ? finish_open+0x170/0x170 [ 56.002467] ? apparmor_path_truncate+0x163/0x1d0 [ 56.007280] path_openat+0x1dcc/0x2970 [ 56.011141] ? path_lookupat+0x780/0x780 [ 56.015178] ? trace_hardirqs_on+0x10/0x10 [ 56.019392] ? trace_hardirqs_on+0x10/0x10 [ 56.023597] do_filp_open+0x179/0x3c0 [ 56.027375] ? may_open_dev+0xe0/0xe0 [ 56.031160] ? lock_downgrade+0x740/0x740 [ 56.035277] ? do_raw_spin_unlock+0x164/0x220 [ 56.039744] ? _raw_spin_unlock+0x29/0x40 [ 56.043863] ? __alloc_fd+0x1be/0x490 [ 56.047640] do_sys_open+0x296/0x410 [ 56.051337] ? filp_open+0x60/0x60 [ 56.054858] ? do_syscall_64+0x4c/0x640 [ 56.058802] ? compat_SyS_openat+0x30/0x30 [ 56.063008] do_syscall_64+0x1d5/0x640 [ 56.067217] entry_SYSCALL_64_after_hwframe+0x5e/0xd3