[ 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.0.37' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 35.301606] hfsplus: xattr searching failed [ 35.306431] [ 35.308060] ============================================ [ 35.313512] WARNING: possible recursive locking detected [ 35.319384] 4.19.211-syzkaller #0 Not tainted [ 35.323868] -------------------------------------------- [ 35.329305] syz-executor715/8111 is trying to acquire lock: [ 35.334989] 000000007dda33b4 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 35.344509] [ 35.344509] but task is already holding lock: [ 35.350464] 000000009a776cc7 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 35.360413] [ 35.360413] other info that might help us debug this: [ 35.367054] Possible unsafe locking scenario: [ 35.367054] [ 35.373086] CPU0 [ 35.375642] ---- [ 35.378208] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.383283] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.388358] [ 35.388358] *** DEADLOCK *** [ 35.388358] [ 35.394389] May be due to missing lock nesting notation [ 35.394389] [ 35.401308] 4 locks held by syz-executor715/8111: [ 35.406134] #0: 00000000f65d2384 (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 35.414093] #1: 00000000254c0830 (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 35.423171] #2: 000000009a776cc7 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 35.433553] #3: 00000000019eeb6b (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 35.442283] [ 35.442283] stack backtrace: [ 35.446759] CPU: 1 PID: 8111 Comm: syz-executor715 Not tainted 4.19.211-syzkaller #0 [ 35.454624] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 35.464043] Call Trace: [ 35.466641] dump_stack+0x1fc/0x2ef [ 35.470282] __lock_acquire.cold+0x121/0x57e [ 35.474719] ? mark_held_locks+0xf0/0xf0 [ 35.478776] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 35.484122] ? save_trace+0xd6/0x290 [ 35.487829] ? __lock_acquire+0x22f9/0x3ff0 [ 35.492133] lock_acquire+0x170/0x3c0 [ 35.495916] ? hfsplus_get_block+0x292/0x960 [ 35.500309] ? hfsplus_get_block+0x292/0x960 [ 35.504697] __mutex_lock+0xd7/0x1190 [ 35.508490] ? hfsplus_get_block+0x292/0x960 [ 35.512896] ? check_preemption_disabled+0x41/0x280 [ 35.517898] ? hfsplus_get_block+0x292/0x960 [ 35.522285] ? mutex_trylock+0x1a0/0x1a0 [ 35.526325] ? create_page_buffers+0x212/0x350 [ 35.530883] ? alloc_page_buffers+0x2da/0x5c0 [ 35.535355] ? lock_downgrade+0x720/0x720 [ 35.539477] ? do_raw_spin_lock+0xcb/0x220 [ 35.543687] hfsplus_get_block+0x292/0x960 [ 35.547901] block_read_full_page+0x288/0xd10 [ 35.552372] ? hfsplus_file_extend+0xf40/0xf40 [ 35.556932] ? __bread_gfp+0x300/0x300 [ 35.560797] ? add_to_page_cache_locked+0x40/0x40 [ 35.565618] do_read_cache_page+0x533/0x1170 [ 35.570004] ? hfsplus_bmap+0x30/0x30 [ 35.573783] hfsplus_block_free+0x18b/0x5d0 [ 35.578083] ? __mutex_unlock_slowpath+0xea/0x610 [ 35.582901] hfsplus_free_extents+0x228/0x520 [ 35.587375] hfsplus_file_truncate+0xd96/0x1040 [ 35.592024] ? hfsplus_get_block+0x960/0x960 [ 35.596426] ? up_write+0x18/0x150 [ 35.599949] ? unmap_mapping_pages+0x121/0x2b0 [ 35.604523] ? inode_newsize_ok+0x121/0x1e0 [ 35.608825] hfsplus_setattr+0x1e7/0x310 [ 35.612868] ? hfsplus_file_open+0x140/0x140 [ 35.617259] notify_change+0x70b/0xfc0 [ 35.621140] do_truncate+0x134/0x1f0 [ 35.625179] ? dentry_open+0x1d0/0x1d0 [ 35.629045] ? apparmor_path_truncate+0x183/0x200 [ 35.633865] ? inode_permission+0x3d/0x140 [ 35.638080] path_openat+0x2308/0x2df0 [ 35.641947] ? path_lookupat+0x8d0/0x8d0 [ 35.645988] ? mark_held_locks+0xf0/0xf0 [ 35.650025] ? __lock_acquire+0x6de/0x3ff0 [ 35.654235] do_filp_open+0x18c/0x3f0 [ 35.658097] ? may_open_dev+0xf0/0xf0 [ 35.661877] ? lock_downgrade+0x720/0x720 [ 35.666009] ? lock_acquire+0x170/0x3c0 [ 35.669958] ? __alloc_fd+0x34/0x570 [ 35.673646] ? do_raw_spin_unlock+0x171/0x230 [ 35.678129] ? _raw_spin_unlock+0x29/0x40 [ 35.682267] ? __alloc_fd+0x28d/0x570 [ 35.686051] do_sys_open+0x3b3/0x520 [ 35.689742] ? filp_open+0x70/0x70 [ 35.693260] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.698621] ? trace_hardirqs_off_caller+0x6e/0x210 [ 35.703624] ? do_syscall_64+0x21/0x620 [ 35.707580] do_syscall_64+0xf9/0x620 [ 35.711366] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.716533] RIP: 0033:0x7f627a04a789 [ 35.720240] 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.739125] RSP: 002b:00007ffc22364e98 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 35.746813] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f627a04a789