[ 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.123' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 44.592123] hfsplus: xattr searching failed [ 44.596752] [ 44.598377] ============================================ [ 44.603805] WARNING: possible recursive locking detected [ 44.609243] 4.19.211-syzkaller #0 Not tainted [ 44.613708] -------------------------------------------- [ 44.619134] syz-executor214/8087 is trying to acquire lock: [ 44.624906] 00000000e684cf92 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 44.634421] [ 44.634421] but task is already holding lock: [ 44.640394] 00000000bf762b5c (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 44.650430] [ 44.650430] other info that might help us debug this: [ 44.657066] Possible unsafe locking scenario: [ 44.657066] [ 44.663095] CPU0 [ 44.665651] ---- [ 44.668207] lock(&HFSPLUS_I(inode)->extents_lock); [ 44.673282] lock(&HFSPLUS_I(inode)->extents_lock); [ 44.678364] [ 44.678364] *** DEADLOCK *** [ 44.678364] [ 44.684440] May be due to missing lock nesting notation [ 44.684440] [ 44.691339] 4 locks held by syz-executor214/8087: [ 44.696149] #0: 000000008dea7a95 (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 44.704115] #1: 000000002b7e5236 (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 44.713193] #2: 00000000bf762b5c (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 44.723577] #3: 000000000bfed2d4 (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 44.732308] [ 44.732308] stack backtrace: [ 44.736780] CPU: 0 PID: 8087 Comm: syz-executor214 Not tainted 4.19.211-syzkaller #0 [ 44.744638] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 44.753963] Call Trace: [ 44.756531] dump_stack+0x1fc/0x2ef [ 44.760145] __lock_acquire.cold+0x121/0x57e [ 44.764547] ? mark_held_locks+0xf0/0xf0 [ 44.768586] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 44.773927] ? save_trace+0xd6/0x290 [ 44.777620] ? __lock_acquire+0x22f9/0x3ff0 [ 44.781929] lock_acquire+0x170/0x3c0 [ 44.785711] ? hfsplus_get_block+0x292/0x960 [ 44.790098] ? hfsplus_get_block+0x292/0x960 [ 44.794582] __mutex_lock+0xd7/0x1190 [ 44.798364] ? hfsplus_get_block+0x292/0x960 [ 44.802749] ? check_preemption_disabled+0x41/0x280 [ 44.807743] ? hfsplus_get_block+0x292/0x960 [ 44.812213] ? mutex_trylock+0x1a0/0x1a0 [ 44.816261] ? create_page_buffers+0x212/0x350 [ 44.820833] ? alloc_page_buffers+0x2da/0x5c0 [ 44.825401] ? lock_downgrade+0x720/0x720 [ 44.829529] ? do_raw_spin_lock+0xcb/0x220 [ 44.833740] hfsplus_get_block+0x292/0x960 [ 44.837954] block_read_full_page+0x288/0xd10 [ 44.842428] ? hfsplus_file_extend+0xf40/0xf40 [ 44.846986] ? __bread_gfp+0x300/0x300 [ 44.850851] ? add_to_page_cache_locked+0x40/0x40 [ 44.855671] do_read_cache_page+0x533/0x1170 [ 44.860144] ? hfsplus_bmap+0x30/0x30 [ 44.863922] hfsplus_block_free+0x18b/0x5d0 [ 44.868219] ? __mutex_unlock_slowpath+0xea/0x610 [ 44.873041] hfsplus_free_extents+0x228/0x520 [ 44.877519] hfsplus_file_truncate+0xd96/0x1040 [ 44.882168] ? hfsplus_get_block+0x960/0x960 [ 44.886554] ? up_write+0x18/0x150 [ 44.890070] ? unmap_mapping_pages+0x121/0x2b0 [ 44.894810] ? inode_newsize_ok+0x121/0x1e0 [ 44.899113] hfsplus_setattr+0x1e7/0x310 [ 44.903149] ? hfsplus_file_open+0x140/0x140 [ 44.907532] notify_change+0x70b/0xfc0 [ 44.911398] do_truncate+0x134/0x1f0 [ 44.915088] ? dentry_open+0x1d0/0x1d0 [ 44.919040] ? apparmor_path_truncate+0x183/0x200 [ 44.923865] ? inode_permission+0x3d/0x140 [ 44.928079] path_openat+0x2308/0x2df0 [ 44.931945] ? path_lookupat+0x8d0/0x8d0 [ 44.935984] ? mark_held_locks+0xf0/0xf0 [ 44.940023] ? __lock_acquire+0x6de/0x3ff0 [ 44.944233] do_filp_open+0x18c/0x3f0 [ 44.948010] ? may_open_dev+0xf0/0xf0 [ 44.951788] ? lock_downgrade+0x720/0x720 [ 44.955925] ? lock_acquire+0x170/0x3c0 [ 44.959873] ? __alloc_fd+0x34/0x570 [ 44.963577] ? do_raw_spin_unlock+0x171/0x230 [ 44.968144] ? _raw_spin_unlock+0x29/0x40 [ 44.972266] ? __alloc_fd+0x28d/0x570 [ 44.976043] do_sys_open+0x3b3/0x520 [ 44.979730] ? filp_open+0x70/0x70 [ 44.983253] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 44.988591] ? trace_hardirqs_off_caller+0x6e/0x210 [ 44.993584] ? do_syscall_64+0x21/0x620 [ 44.997568] do_syscall_64+0xf9/0x620 [ 45.001350] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.006540] RIP: 0033:0x7f39949f9779 [ 45.010278] 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 [ 45.029181] RSP: 002b:00007ffc4c2b86d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 45.036953] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007f39949f9779 [