[ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.229' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 26.309602] [ 26.311257] ============================================ [ 26.316681] WARNING: possible recursive locking detected [ 26.322101] 4.14.301-syzkaller #0 Not tainted [ 26.326566] -------------------------------------------- [ 26.331985] syz-executor313/7993 is trying to acquire lock: [ 26.337661] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 26.347607] [ 26.347607] but task is already holding lock: [ 26.353556] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 26.363941] [ 26.363941] other info that might help us debug this: [ 26.370592] Possible unsafe locking scenario: [ 26.370592] [ 26.376619] CPU0 [ 26.379178] ---- [ 26.381731] lock(&HFSPLUS_I(inode)->extents_lock); [ 26.386817] lock(&HFSPLUS_I(inode)->extents_lock); [ 26.391887] [ 26.391887] *** DEADLOCK *** [ 26.391887] [ 26.397918] May be due to missing lock nesting notation [ 26.397918] [ 26.404814] 5 locks held by syz-executor313/7993: [ 26.409620] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 26.417997] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 26.427413] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 26.438136] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 26.447395] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 26.456560] [ 26.456560] stack backtrace: [ 26.461038] CPU: 0 PID: 7993 Comm: syz-executor313 Not tainted 4.14.301-syzkaller #0 [ 26.468884] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 26.478204] Call Trace: [ 26.480761] dump_stack+0x1b2/0x281 [ 26.484357] __lock_acquire.cold+0x180/0x97c [ 26.488743] ? register_lock_class+0x1d0/0x1180 [ 26.493384] ? trace_hardirqs_on+0x10/0x10 [ 26.497595] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 26.502923] ? save_trace+0xd6/0x290 [ 26.506602] ? __lock_acquire+0x2190/0x3f20 [ 26.510999] lock_acquire+0x170/0x3f0 [ 26.514857] ? hfsplus_get_block+0x1f9/0x820 [ 26.519232] ? hfsplus_get_block+0x1f9/0x820 [ 26.523607] __mutex_lock+0xc4/0x1310 [ 26.527380] ? hfsplus_get_block+0x1f9/0x820 [ 26.531758] ? hfsplus_get_block+0x1f9/0x820 [ 26.536140] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 26.541557] ? lock_acquire+0x170/0x3f0 [ 26.545497] ? create_page_buffers+0x14d/0x1c0 [ 26.550046] hfsplus_get_block+0x1f9/0x820 [ 26.554248] ? _raw_spin_unlock+0x29/0x40 [ 26.558362] ? create_page_buffers+0xce/0x1c0 [ 26.562824] block_read_full_page+0x25e/0x8d0 [ 26.567285] ? hfsplus_file_extend+0xef0/0xef0 [ 26.571835] ? __lru_cache_add+0x178/0x250 [ 26.576036] ? __bread_gfp+0x2e0/0x2e0 [ 26.579891] ? add_to_page_cache_lru+0x136/0x2b0 [ 26.584613] ? add_to_page_cache_locked+0x40/0x40 [ 26.589510] ? alloc_pages_current+0x15d/0x260 [ 26.594066] do_read_cache_page+0x38e/0xc10 [ 26.598354] ? hfsplus_bmap+0x30/0x30 [ 26.602133] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 26.607554] hfsplus_block_free+0x177/0x560 [ 26.611843] hfsplus_free_extents+0x170/0x440 [ 26.616305] hfsplus_file_truncate+0xbc0/0xe80 [ 26.620860] ? hfsplus_get_block+0x820/0x820 [ 26.625233] ? up_write+0x17/0x60 [ 26.628663] ? unmap_mapping_range+0xe9/0x250 [ 26.633124] ? inode_newsize_ok+0x145/0x1c0 [ 26.637414] hfsplus_setattr+0x182/0x310 [ 26.641448] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 26.645908] notify_change+0x56b/0xd10 [ 26.649769] do_truncate+0xff/0x1a0 [ 26.653362] ? finish_open+0x170/0x170 [ 26.657222] ? apparmor_path_truncate+0x163/0x1d0 [ 26.662031] path_openat+0x1dcc/0x2970 [ 26.666421] ? path_lookupat+0x780/0x780 [ 26.670447] ? trace_hardirqs_on+0x10/0x10 [ 26.674646] ? trace_hardirqs_on+0x10/0x10 [ 26.678848] do_filp_open+0x179/0x3c0 [ 26.682614] ? may_open_dev+0xe0/0xe0 [ 26.686381] ? lock_downgrade+0x740/0x740 [ 26.690495] ? do_raw_spin_unlock+0x164/0x220 [ 26.694955] ? _raw_spin_unlock+0x29/0x40 [ 26.699068] ? __alloc_fd+0x1be/0x490 [ 26.702835] ? _raw_spin_unlock_irq+0x24/0x80 [ 26.707297] do_sys_open+0x296/0x410 [ 26.710977] ? filp_open+0x60/0x60 [ 26.714485] ? do_syscall_64+0x4c/0x640 [ 26.718426] ? compat_SyS_openat+0x30/0x30 [ 26.722628] do_syscall_64+0x1d5/0x640 [ 26.726488] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 26.731651] RIP: 0033:0x7f905f833789 [ 26.735330] RSP: 002b:00007ffef219c7c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 26.743004] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f905f833789 [ 26.750245] RDX: 00007f905f7f1e03 RSI: 0000000000000000 RDI: 0000000020000000 [ 26.757481] RBP: 00007f905f7f3020 R08: 0000000000000609 R09: 0000000000000000 [ 26.764722] R10: 00007ffef219c690 R11: 0000000000000246 R12: 00007f905f7f30b0 [ 26.771960] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000