[ OK ] Started Getty on tty2. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ 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. 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.10.6' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 33.020085] hfsplus: xattr searching failed [ 33.024859] [ 33.026489] ============================================ [ 33.031934] WARNING: possible recursive locking detected [ 33.037381] 4.19.211-syzkaller #0 Not tainted [ 33.041869] -------------------------------------------- [ 33.047310] syz-executor863/8102 is trying to acquire lock: [ 33.053012] 00000000ce4e9cf5 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 33.062553] [ 33.062553] but task is already holding lock: [ 33.068676] 0000000079ae5e06 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 33.078636] [ 33.078636] other info that might help us debug this: [ 33.085283] Possible unsafe locking scenario: [ 33.085283] [ 33.091332] CPU0 [ 33.093895] ---- [ 33.096452] lock(&HFSPLUS_I(inode)->extents_lock); [ 33.101544] lock(&HFSPLUS_I(inode)->extents_lock); [ 33.106624] [ 33.106624] *** DEADLOCK *** [ 33.106624] [ 33.112659] May be due to missing lock nesting notation [ 33.112659] [ 33.119564] 4 locks held by syz-executor863/8102: [ 33.124380] #0: 0000000022eff18d (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 33.132342] #1: 00000000a764edbc (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 33.141422] #2: 0000000079ae5e06 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 33.151805] #3: 000000004f9087df (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 33.160546] [ 33.160546] stack backtrace: [ 33.165021] CPU: 1 PID: 8102 Comm: syz-executor863 Not tainted 4.19.211-syzkaller #0 [ 33.172872] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 33.182200] Call Trace: [ 33.184770] dump_stack+0x1fc/0x2ef [ 33.188379] __lock_acquire.cold+0x121/0x57e [ 33.192767] ? mark_held_locks+0xf0/0xf0 [ 33.196807] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 33.202149] ? save_trace+0xd6/0x290 [ 33.205851] ? __lock_acquire+0x22f9/0x3ff0 [ 33.210154] lock_acquire+0x170/0x3c0 [ 33.213936] ? hfsplus_get_block+0x292/0x960 [ 33.218330] ? hfsplus_get_block+0x292/0x960 [ 33.222717] __mutex_lock+0xd7/0x1190 [ 33.226498] ? hfsplus_get_block+0x292/0x960 [ 33.230885] ? check_preemption_disabled+0x41/0x280 [ 33.235968] ? hfsplus_get_block+0x292/0x960 [ 33.240351] ? mutex_trylock+0x1a0/0x1a0 [ 33.244448] ? create_page_buffers+0x212/0x350 [ 33.249006] ? alloc_page_buffers+0x2da/0x5c0 [ 33.253481] ? lock_downgrade+0x720/0x720 [ 33.257604] ? do_raw_spin_lock+0xcb/0x220 [ 33.261822] hfsplus_get_block+0x292/0x960 [ 33.266044] block_read_full_page+0x288/0xd10 [ 33.270519] ? hfsplus_file_extend+0xf40/0xf40 [ 33.275088] ? __bread_gfp+0x300/0x300 [ 33.278954] ? add_to_page_cache_locked+0x40/0x40 [ 33.283776] do_read_cache_page+0x533/0x1170 [ 33.288163] ? hfsplus_bmap+0x30/0x30 [ 33.291947] hfsplus_block_free+0x18b/0x5d0 [ 33.296248] ? __mutex_unlock_slowpath+0xea/0x610 [ 33.301069] hfsplus_free_extents+0x228/0x520 [ 33.305542] hfsplus_file_truncate+0xd96/0x1040 [ 33.310191] ? hfsplus_get_block+0x960/0x960 [ 33.314933] ? up_write+0x18/0x150 [ 33.318450] ? unmap_mapping_pages+0x121/0x2b0 [ 33.323013] ? inode_newsize_ok+0x121/0x1e0 [ 33.327329] hfsplus_setattr+0x1e7/0x310 [ 33.331384] ? hfsplus_file_open+0x140/0x140 [ 33.335779] notify_change+0x70b/0xfc0 [ 33.339650] do_truncate+0x134/0x1f0 [ 33.343344] ? dentry_open+0x1d0/0x1d0 [ 33.347210] ? apparmor_path_truncate+0x183/0x200 [ 33.352052] ? inode_permission+0x3d/0x140 [ 33.356268] path_openat+0x2308/0x2df0 [ 33.360137] ? path_lookupat+0x8d0/0x8d0 [ 33.364177] ? mark_held_locks+0xf0/0xf0 [ 33.368222] ? __lock_acquire+0x6de/0x3ff0 [ 33.372442] do_filp_open+0x18c/0x3f0 [ 33.376220] ? may_open_dev+0xf0/0xf0 [ 33.380001] ? lock_downgrade+0x720/0x720 [ 33.384126] ? lock_acquire+0x170/0x3c0 [ 33.388082] ? __alloc_fd+0x34/0x570 [ 33.391774] ? do_raw_spin_unlock+0x171/0x230 [ 33.396248] ? _raw_spin_unlock+0x29/0x40 [ 33.400376] ? __alloc_fd+0x28d/0x570 [ 33.404157] do_sys_open+0x3b3/0x520 [ 33.407848] ? filp_open+0x70/0x70 [ 33.411366] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.416712] ? trace_hardirqs_off_caller+0x6e/0x210 [ 33.421708] ? do_syscall_64+0x21/0x620 [ 33.425658] do_syscall_64+0xf9/0x620 [ 33.429437] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.434603] RIP: 0033:0x7fa6eb010789 [ 33.438295] 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 [ 33.457196] RSP: 002b:00007ffcd045f3c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 33.464887] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa6eb010789 [