[ 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.210' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 35.821329] hfsplus: xattr searching failed [ 35.826145] [ 35.827786] ============================================ [ 35.833215] WARNING: possible recursive locking detected [ 35.838672] 4.19.211-syzkaller #0 Not tainted [ 35.843155] -------------------------------------------- [ 35.848605] syz-executor399/8104 is trying to acquire lock: [ 35.854305] 00000000e89ab4f9 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 35.863862] [ 35.863862] but task is already holding lock: [ 35.869814] 000000003c34bffb (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 35.879764] [ 35.879764] other info that might help us debug this: [ 35.886401] Possible unsafe locking scenario: [ 35.886401] [ 35.892517] CPU0 [ 35.895072] ---- [ 35.897639] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.902718] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.907809] [ 35.907809] *** DEADLOCK *** [ 35.907809] [ 35.913841] May be due to missing lock nesting notation [ 35.913841] [ 35.920743] 4 locks held by syz-executor399/8104: [ 35.925555] #0: 000000000131b509 (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 35.933514] #1: 00000000be06e138 (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 35.942608] #2: 000000003c34bffb (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 35.952995] #3: 00000000a6d7128e (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 35.961729] [ 35.961729] stack backtrace: [ 35.966211] CPU: 1 PID: 8104 Comm: syz-executor399 Not tainted 4.19.211-syzkaller #0 [ 35.974070] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 35.983399] Call Trace: [ 35.985969] dump_stack+0x1fc/0x2ef [ 35.989591] __lock_acquire.cold+0x121/0x57e [ 35.994073] ? mark_held_locks+0xf0/0xf0 [ 35.998124] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 36.003467] ? save_trace+0xd6/0x290 [ 36.007160] ? __lock_acquire+0x22f9/0x3ff0 [ 36.011458] lock_acquire+0x170/0x3c0 [ 36.015238] ? hfsplus_get_block+0x292/0x960 [ 36.019626] ? hfsplus_get_block+0x292/0x960 [ 36.024017] __mutex_lock+0xd7/0x1190 [ 36.027796] ? hfsplus_get_block+0x292/0x960 [ 36.032193] ? check_preemption_disabled+0x41/0x280 [ 36.037185] ? hfsplus_get_block+0x292/0x960 [ 36.041577] ? mutex_trylock+0x1a0/0x1a0 [ 36.045617] ? create_page_buffers+0x212/0x350 [ 36.050178] ? alloc_page_buffers+0x2da/0x5c0 [ 36.054651] ? lock_downgrade+0x720/0x720 [ 36.058774] ? do_raw_spin_lock+0xcb/0x220 [ 36.062986] hfsplus_get_block+0x292/0x960 [ 36.067202] block_read_full_page+0x288/0xd10 [ 36.071683] ? hfsplus_file_extend+0xf40/0xf40 [ 36.076244] ? __bread_gfp+0x300/0x300 [ 36.080113] ? add_to_page_cache_locked+0x40/0x40 [ 36.084937] do_read_cache_page+0x533/0x1170 [ 36.089323] ? hfsplus_bmap+0x30/0x30 [ 36.093099] hfsplus_block_free+0x18b/0x5d0 [ 36.097398] ? __mutex_unlock_slowpath+0xea/0x610 [ 36.102220] hfsplus_free_extents+0x228/0x520 [ 36.106693] hfsplus_file_truncate+0xd96/0x1040 [ 36.111342] ? hfsplus_get_block+0x960/0x960 [ 36.115747] ? up_write+0x18/0x150 [ 36.119285] ? unmap_mapping_pages+0x121/0x2b0 [ 36.123863] ? inode_newsize_ok+0x121/0x1e0 [ 36.128169] hfsplus_setattr+0x1e7/0x310 [ 36.132217] ? hfsplus_file_open+0x140/0x140 [ 36.137023] notify_change+0x70b/0xfc0 [ 36.140894] do_truncate+0x134/0x1f0 [ 36.144587] ? dentry_open+0x1d0/0x1d0 [ 36.148456] ? apparmor_path_truncate+0x183/0x200 [ 36.153283] ? inode_permission+0x3d/0x140 [ 36.157496] path_openat+0x2308/0x2df0 [ 36.161363] ? path_lookupat+0x8d0/0x8d0 [ 36.165403] ? mark_held_locks+0xf0/0xf0 [ 36.169440] ? __lock_acquire+0x6de/0x3ff0 [ 36.173651] do_filp_open+0x18c/0x3f0 [ 36.177427] ? may_open_dev+0xf0/0xf0 [ 36.181221] ? lock_downgrade+0x720/0x720 [ 36.185349] ? lock_acquire+0x170/0x3c0 [ 36.189307] ? __alloc_fd+0x34/0x570 [ 36.193010] ? do_raw_spin_unlock+0x171/0x230 [ 36.197490] ? _raw_spin_unlock+0x29/0x40 [ 36.201648] ? __alloc_fd+0x28d/0x570 [ 36.205425] do_sys_open+0x3b3/0x520 [ 36.209116] ? filp_open+0x70/0x70 [ 36.212637] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.217978] ? trace_hardirqs_off_caller+0x6e/0x210 [ 36.222972] ? do_syscall_64+0x21/0x620 [ 36.226922] do_syscall_64+0xf9/0x620 [ 36.230703] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.235871] RIP: 0033:0x7f7e70a9a779 [ 36.239563] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 36.258452] RSP: 002b:00007fff0f0e5198 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 36.266143] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007f7e70a9a779 [