[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.106' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 34.812082] hfsplus: xattr searching failed [ 34.817088] [ 34.818722] ============================================ [ 34.824162] WARNING: possible recursive locking detected [ 34.829610] 4.19.211-syzkaller #0 Not tainted [ 34.834078] -------------------------------------------- [ 34.839504] syz-executor188/8086 is trying to acquire lock: [ 34.845204] 000000003aaf911f (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 34.854835] [ 34.854835] but task is already holding lock: [ 34.860798] 000000005251c377 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 34.870781] [ 34.870781] other info that might help us debug this: [ 34.877427] Possible unsafe locking scenario: [ 34.877427] [ 34.883552] CPU0 [ 34.886116] ---- [ 34.888676] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.893785] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.898864] [ 34.898864] *** DEADLOCK *** [ 34.898864] [ 34.904898] May be due to missing lock nesting notation [ 34.904898] [ 34.911888] 4 locks held by syz-executor188/8086: [ 34.917014] #0: 00000000b0b83cb8 (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 34.924994] #1: 00000000d1b677d1 (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 34.934084] #2: 000000005251c377 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 34.944468] #3: 000000005ffc49ef (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 34.953640] [ 34.953640] stack backtrace: [ 34.958127] CPU: 1 PID: 8086 Comm: syz-executor188 Not tainted 4.19.211-syzkaller #0 [ 34.965981] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 34.975320] Call Trace: [ 34.977988] dump_stack+0x1fc/0x2ef [ 34.981600] __lock_acquire.cold+0x121/0x57e [ 34.985990] ? mark_held_locks+0xf0/0xf0 [ 34.990034] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 34.995466] ? save_trace+0xd6/0x290 [ 34.999161] ? __lock_acquire+0x22f9/0x3ff0 [ 35.003463] lock_acquire+0x170/0x3c0 [ 35.007270] ? hfsplus_get_block+0x292/0x960 [ 35.011658] ? hfsplus_get_block+0x292/0x960 [ 35.016045] __mutex_lock+0xd7/0x1190 [ 35.019845] ? hfsplus_get_block+0x292/0x960 [ 35.024248] ? check_preemption_disabled+0x41/0x280 [ 35.029272] ? hfsplus_get_block+0x292/0x960 [ 35.033670] ? mutex_trylock+0x1a0/0x1a0 [ 35.037719] ? create_page_buffers+0x212/0x350 [ 35.042278] ? alloc_page_buffers+0x2da/0x5c0 [ 35.046751] ? lock_downgrade+0x720/0x720 [ 35.050873] ? do_raw_spin_lock+0xcb/0x220 [ 35.055089] hfsplus_get_block+0x292/0x960 [ 35.059307] block_read_full_page+0x288/0xd10 [ 35.063796] ? hfsplus_file_extend+0xf40/0xf40 [ 35.068443] ? __bread_gfp+0x300/0x300 [ 35.072308] ? add_to_page_cache_locked+0x40/0x40 [ 35.077152] do_read_cache_page+0x533/0x1170 [ 35.081542] ? hfsplus_bmap+0x30/0x30 [ 35.085333] hfsplus_block_free+0x18b/0x5d0 [ 35.089643] ? __mutex_unlock_slowpath+0xea/0x610 [ 35.094470] hfsplus_free_extents+0x228/0x520 [ 35.098983] hfsplus_file_truncate+0xd96/0x1040 [ 35.103671] ? hfsplus_get_block+0x960/0x960 [ 35.108082] ? up_write+0x18/0x150 [ 35.111607] ? unmap_mapping_pages+0x121/0x2b0 [ 35.116182] ? inode_newsize_ok+0x121/0x1e0 [ 35.120489] hfsplus_setattr+0x1e7/0x310 [ 35.124623] ? hfsplus_file_open+0x140/0x140 [ 35.129011] notify_change+0x70b/0xfc0 [ 35.132884] do_truncate+0x134/0x1f0 [ 35.136575] ? dentry_open+0x1d0/0x1d0 [ 35.140479] ? apparmor_path_truncate+0x183/0x200 [ 35.145322] ? inode_permission+0x3d/0x140 [ 35.149543] path_openat+0x2308/0x2df0 [ 35.153420] ? path_lookupat+0x8d0/0x8d0 [ 35.157467] ? mark_held_locks+0xf0/0xf0 [ 35.161512] ? __lock_acquire+0x6de/0x3ff0 [ 35.165736] do_filp_open+0x18c/0x3f0 [ 35.169514] ? may_open_dev+0xf0/0xf0 [ 35.173293] ? lock_downgrade+0x720/0x720 [ 35.177522] ? lock_acquire+0x170/0x3c0 [ 35.181474] ? __alloc_fd+0x34/0x570 [ 35.185166] ? do_raw_spin_unlock+0x171/0x230 [ 35.189639] ? _raw_spin_unlock+0x29/0x40 [ 35.193765] ? __alloc_fd+0x28d/0x570 [ 35.197586] do_sys_open+0x3b3/0x520 [ 35.201275] ? filp_open+0x70/0x70 [ 35.204797] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.210154] ? trace_hardirqs_off_caller+0x6e/0x210 [ 35.215148] ? do_syscall_64+0x21/0x620 [ 35.219101] do_syscall_64+0xf9/0x620 [ 35.222897] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.228064] RIP: 0033:0x7fcf7d8d7779 [ 35.231776] 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 [ 35.250751] RSP: 002b:00007fff1ac42038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 35.258473] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 000