[ 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.1.127' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 35.087206] hfsplus: xattr searching failed [ 35.092019] audit: type=1800 audit(1672046775.899:2): pid=8107 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor126" name="file1" dev="loop0" ino=20 res=0 [ 35.092126] hfsplus: xattr searching failed [ 35.121065] [ 35.122699] ============================================ [ 35.128136] WARNING: possible recursive locking detected [ 35.133578] 4.19.211-syzkaller #0 Not tainted [ 35.138058] -------------------------------------------- [ 35.143494] syz-executor126/8107 is trying to acquire lock: [ 35.149180] 0000000034a1c4b4 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 35.158699] [ 35.158699] but task is already holding lock: [ 35.164648] 000000002aa99dcb (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 35.174603] [ 35.174603] other info that might help us debug this: [ 35.181241] Possible unsafe locking scenario: [ 35.181241] [ 35.187273] CPU0 [ 35.189829] ---- [ 35.192388] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.197465] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.202558] [ 35.202558] *** DEADLOCK *** [ 35.202558] [ 35.208589] May be due to missing lock nesting notation [ 35.208589] [ 35.215494] 4 locks held by syz-executor126/8107: [ 35.220308] #0: 0000000010473df8 (sb_writers#11){.+.+}, at: do_sys_ftruncate+0x297/0x560 [ 35.228620] #1: 00000000e03bdcac (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 35.238354] #2: 000000002aa99dcb (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 35.248744] #3: 00000000e987ed97 (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 35.257475] [ 35.257475] stack backtrace: [ 35.261952] CPU: 0 PID: 8107 Comm: syz-executor126 Not tainted 4.19.211-syzkaller #0 [ 35.269813] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 35.279146] Call Trace: [ 35.281729] dump_stack+0x1fc/0x2ef [ 35.285344] __lock_acquire.cold+0x121/0x57e [ 35.289737] ? mark_held_locks+0xf0/0xf0 [ 35.293781] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 35.299158] ? save_trace+0xd6/0x290 [ 35.302856] ? __lock_acquire+0x22f9/0x3ff0 [ 35.307177] lock_acquire+0x170/0x3c0 [ 35.310958] ? hfsplus_get_block+0x292/0x960 [ 35.315360] ? hfsplus_get_block+0x292/0x960 [ 35.319757] __mutex_lock+0xd7/0x1190 [ 35.323546] ? hfsplus_get_block+0x292/0x960 [ 35.327940] ? check_preemption_disabled+0x41/0x280 [ 35.332938] ? hfsplus_get_block+0x292/0x960 [ 35.337329] ? mutex_trylock+0x1a0/0x1a0 [ 35.341371] ? create_page_buffers+0x212/0x350 [ 35.345937] ? alloc_page_buffers+0x2da/0x5c0 [ 35.350428] ? lock_downgrade+0x720/0x720 [ 35.354557] ? do_raw_spin_lock+0xcb/0x220 [ 35.358777] hfsplus_get_block+0x292/0x960 [ 35.362998] block_read_full_page+0x288/0xd10 [ 35.367474] ? hfsplus_file_extend+0xf40/0xf40 [ 35.372037] ? __bread_gfp+0x300/0x300 [ 35.375903] ? add_to_page_cache_locked+0x40/0x40 [ 35.380724] do_read_cache_page+0x533/0x1170 [ 35.385110] ? hfsplus_bmap+0x30/0x30 [ 35.388888] hfsplus_block_free+0x18b/0x5d0 [ 35.393197] ? __mutex_unlock_slowpath+0xea/0x610 [ 35.398022] hfsplus_free_extents+0x228/0x520 [ 35.402496] hfsplus_file_truncate+0xd96/0x1040 [ 35.407154] ? hfsplus_get_block+0x960/0x960 [ 35.411549] ? up_write+0x18/0x150 [ 35.415073] ? unmap_mapping_pages+0x121/0x2b0 [ 35.419636] ? inode_newsize_ok+0x121/0x1e0 [ 35.423940] hfsplus_setattr+0x1e7/0x310 [ 35.428067] ? hfsplus_file_open+0x140/0x140 [ 35.432457] notify_change+0x70b/0xfc0 [ 35.436321] do_truncate+0x134/0x1f0 [ 35.440018] ? dentry_open+0x1d0/0x1d0 [ 35.443883] ? apparmor_path_truncate+0x183/0x200 [ 35.448702] do_sys_ftruncate+0x492/0x560 [ 35.452826] do_syscall_64+0xf9/0x620 [ 35.456634] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.461826] RIP: 0033:0x7f90f98977b9 [ 35.465516] 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.484403] RSP: 002b:00007ffc4148de98 EFLAGS: 00000