[ 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.194' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 28.163782] hfsplus: xattr searching failed [ 28.169074] hfsplus: xattr searching failed [ 28.174699] [ 28.176313] ============================================ [ 28.181741] WARNING: possible recursive locking detected [ 28.187173] 4.14.300-syzkaller #0 Not tainted [ 28.191646] -------------------------------------------- [ 28.197075] syz-executor142/7994 is trying to acquire lock: [ 28.202765] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 28.212707] [ 28.212707] but task is already holding lock: [ 28.218646] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 28.228934] [ 28.228934] other info that might help us debug this: [ 28.235564] Possible unsafe locking scenario: [ 28.235564] [ 28.241589] CPU0 [ 28.244165] ---- [ 28.246802] lock(&HFSPLUS_I(inode)->extents_lock); [ 28.252138] lock(&HFSPLUS_I(inode)->extents_lock); [ 28.257208] [ 28.257208] *** DEADLOCK *** [ 28.257208] [ 28.263233] May be due to missing lock nesting notation [ 28.263233] [ 28.270127] 5 locks held by syz-executor142/7994: [ 28.274935] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 28.283314] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 28.292735] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 28.303457] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 28.312701] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 28.321859] [ 28.321859] stack backtrace: [ 28.326328] CPU: 0 PID: 7994 Comm: syz-executor142 Not tainted 4.14.300-syzkaller #0 [ 28.334178] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 28.343501] Call Trace: [ 28.346064] dump_stack+0x1b2/0x281 [ 28.349665] __lock_acquire.cold+0x180/0x97c [ 28.354044] ? register_lock_class+0x1d0/0x1180 [ 28.358684] ? trace_hardirqs_on+0x10/0x10 [ 28.362888] ? entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.368220] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 28.373554] ? save_trace+0xd6/0x290 [ 28.377240] ? __lock_acquire+0x2190/0x3f20 [ 28.381530] lock_acquire+0x170/0x3f0 [ 28.385301] ? hfsplus_get_block+0x1f9/0x820 [ 28.389679] ? hfsplus_get_block+0x1f9/0x820 [ 28.394058] __mutex_lock+0xc4/0x1310 [ 28.397828] ? hfsplus_get_block+0x1f9/0x820 [ 28.402205] ? hfsplus_get_block+0x1f9/0x820 [ 28.406583] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.412089] ? lock_acquire+0x170/0x3f0 [ 28.416033] ? create_page_buffers+0x14d/0x1c0 [ 28.420585] hfsplus_get_block+0x1f9/0x820 [ 28.424788] ? _raw_spin_unlock+0x29/0x40 [ 28.428904] ? create_page_buffers+0xce/0x1c0 [ 28.433368] block_read_full_page+0x25e/0x8d0 [ 28.437919] ? hfsplus_file_extend+0xef0/0xef0 [ 28.442472] ? __lru_cache_add+0x178/0x250 [ 28.446674] ? __bread_gfp+0x2e0/0x2e0 [ 28.450529] ? add_to_page_cache_lru+0x136/0x2b0 [ 28.455256] ? add_to_page_cache_locked+0x40/0x40 [ 28.460067] ? alloc_pages_current+0x15d/0x260 [ 28.464619] do_read_cache_page+0x38e/0xc10 [ 28.468912] ? hfsplus_bmap+0x30/0x30 [ 28.472683] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.478102] hfsplus_block_free+0x177/0x560 [ 28.482397] hfsplus_free_extents+0x170/0x440 [ 28.486865] hfsplus_file_truncate+0xbc0/0xe80 [ 28.491415] ? hfsplus_get_block+0x820/0x820 [ 28.495808] ? up_write+0x17/0x60 [ 28.499230] ? unmap_mapping_range+0xe9/0x250 [ 28.503694] ? inode_newsize_ok+0x145/0x1c0 [ 28.508014] hfsplus_setattr+0x182/0x310 [ 28.512046] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 28.516509] notify_change+0x56b/0xd10 [ 28.520366] do_truncate+0xff/0x1a0 [ 28.523961] ? finish_open+0x170/0x170 [ 28.527818] ? apparmor_path_truncate+0x163/0x1d0 [ 28.532632] path_openat+0x1dcc/0x2970 [ 28.536517] ? path_lookupat+0x780/0x780 [ 28.540548] ? trace_hardirqs_on+0x10/0x10 [ 28.544771] ? trace_hardirqs_on+0x10/0x10 [ 28.548998] do_filp_open+0x179/0x3c0 [ 28.552767] ? may_open_dev+0xe0/0xe0 [ 28.556540] ? lock_downgrade+0x740/0x740 [ 28.560658] ? do_raw_spin_unlock+0x164/0x220 [ 28.565125] ? _raw_spin_unlock+0x29/0x40 [ 28.569242] ? __alloc_fd+0x1be/0x490 [ 28.573011] ? _raw_spin_unlock_irq+0x24/0x80 [ 28.577477] do_sys_open+0x296/0x410 [ 28.581508] ? filp_open+0x60/0x60 [ 28.585018] ? do_syscall_64+0x4c/0x640 [ 28.588965] ? SyS_open+0x30/0x30 [ 28.592395] do_syscall_64+0x1d5/0x640 [ 28.596254] entry_SYSCALL_64_after_hwframe+0x5e/0xd3