[ OK ] Started Getty on tty1. [ OK ] Reached target Login Prompts. [ OK ] Started OpenBSD Secure Shell server. [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.10.19' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 27.765528] [ 27.767183] ============================================ [ 27.772620] WARNING: possible recursive locking detected [ 27.778067] 4.14.300-syzkaller #0 Not tainted [ 27.782540] -------------------------------------------- [ 27.787978] syz-executor213/7991 is trying to acquire lock: [ 27.793669] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 27.803634] [ 27.803634] but task is already holding lock: [ 27.809584] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 27.819892] [ 27.819892] other info that might help us debug this: [ 27.826714] Possible unsafe locking scenario: [ 27.826714] [ 27.833190] CPU0 [ 27.835752] ---- [ 27.838337] lock(&HFSPLUS_I(inode)->extents_lock); [ 27.843427] lock(&HFSPLUS_I(inode)->extents_lock); [ 27.848517] [ 27.848517] *** DEADLOCK *** [ 27.848517] [ 27.854564] May be due to missing lock nesting notation [ 27.854564] [ 27.861478] 5 locks held by syz-executor213/7991: [ 27.866298] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 27.874717] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 27.884158] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 27.894902] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 27.904176] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 27.913356] [ 27.913356] stack backtrace: [ 27.917840] CPU: 1 PID: 7991 Comm: syz-executor213 Not tainted 4.14.300-syzkaller #0 [ 27.925698] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 27.935054] Call Trace: [ 27.937630] dump_stack+0x1b2/0x281 [ 27.941253] __lock_acquire.cold+0x180/0x97c [ 27.945655] ? register_lock_class+0x1d0/0x1180 [ 27.950407] ? trace_hardirqs_on+0x10/0x10 [ 27.954635] ? entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.960016] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 27.965369] ? save_trace+0xd6/0x290 [ 27.969076] ? __lock_acquire+0x2190/0x3f20 [ 27.973395] lock_acquire+0x170/0x3f0 [ 27.977186] ? hfsplus_get_block+0x1f9/0x820 [ 27.981591] ? hfsplus_get_block+0x1f9/0x820 [ 27.985989] __mutex_lock+0xc4/0x1310 [ 27.989782] ? hfsplus_get_block+0x1f9/0x820 [ 27.994188] ? hfsplus_get_block+0x1f9/0x820 [ 27.998600] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.004046] ? lock_acquire+0x170/0x3f0 [ 28.008009] ? create_page_buffers+0x14d/0x1c0 [ 28.012676] hfsplus_get_block+0x1f9/0x820 [ 28.016905] ? _raw_spin_unlock+0x29/0x40 [ 28.021045] ? create_page_buffers+0xce/0x1c0 [ 28.025529] block_read_full_page+0x25e/0x8d0 [ 28.030045] ? hfsplus_file_extend+0xef0/0xef0 [ 28.034621] ? __lru_cache_add+0x178/0x250 [ 28.038848] ? __bread_gfp+0x2e0/0x2e0 [ 28.042730] ? add_to_page_cache_lru+0x136/0x2b0 [ 28.047479] ? add_to_page_cache_locked+0x40/0x40 [ 28.052319] ? alloc_pages_current+0x15d/0x260 [ 28.056893] do_read_cache_page+0x38e/0xc10 [ 28.061305] ? hfsplus_bmap+0x30/0x30 [ 28.065094] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.070555] hfsplus_block_free+0x177/0x560 [ 28.074873] hfsplus_free_extents+0x170/0x440 [ 28.079366] hfsplus_file_truncate+0xbc0/0xe80 [ 28.083947] ? hfsplus_get_block+0x820/0x820 [ 28.088345] ? up_write+0x17/0x60 [ 28.091789] ? unmap_mapping_range+0xe9/0x250 [ 28.096274] ? inode_newsize_ok+0x145/0x1c0 [ 28.100592] hfsplus_setattr+0x182/0x310 [ 28.104649] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 28.109134] notify_change+0x56b/0xd10 [ 28.113016] do_truncate+0xff/0x1a0 [ 28.116630] ? finish_open+0x170/0x170 [ 28.120511] ? apparmor_path_truncate+0x163/0x1d0 [ 28.125349] path_openat+0x1dcc/0x2970 [ 28.129231] ? path_lookupat+0x780/0x780 [ 28.133290] ? trace_hardirqs_on+0x10/0x10 [ 28.137513] ? trace_hardirqs_on+0x10/0x10 [ 28.141744] do_filp_open+0x179/0x3c0 [ 28.145543] ? may_open_dev+0xe0/0xe0 [ 28.149338] ? lock_downgrade+0x740/0x740 [ 28.153482] ? do_raw_spin_unlock+0x164/0x220 [ 28.157971] ? _raw_spin_unlock+0x29/0x40 [ 28.162116] ? __alloc_fd+0x1be/0x490 [ 28.165907] ? _raw_spin_unlock_irq+0x24/0x80 [ 28.170420] do_sys_open+0x296/0x410 [ 28.174125] ? filp_open+0x60/0x60 [ 28.177655] ? do_syscall_64+0x4c/0x640 [ 28.181641] ? compat_SyS_openat+0x30/0x30 [ 28.185865] do_syscall_64+0x1d5/0x640 [ 28.189895] entry_SYSCALL_64_after_hwframe+0x5e/0xd3