[ OK ] Started Getty on tty2. [ OK ] Started Serial Getty on ttyS0. [ OK ] Started Getty on tty1. [ 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.0.255' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 32.616943] hfsplus: xattr searching failed [ 32.621806] [ 32.623443] ============================================ [ 32.628890] WARNING: possible recursive locking detected [ 32.634330] 4.19.211-syzkaller #0 Not tainted [ 32.638805] -------------------------------------------- [ 32.644229] syz-executor340/8105 is trying to acquire lock: [ 32.649911] 00000000f7fe57dc (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 32.659431] [ 32.659431] but task is already holding lock: [ 32.665381] 000000004bfa527d (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 32.675337] [ 32.675337] other info that might help us debug this: [ 32.681976] Possible unsafe locking scenario: [ 32.681976] [ 32.688015] CPU0 [ 32.690574] ---- [ 32.693129] lock(&HFSPLUS_I(inode)->extents_lock); [ 32.698204] lock(&HFSPLUS_I(inode)->extents_lock); [ 32.703282] [ 32.703282] *** DEADLOCK *** [ 32.703282] [ 32.709316] May be due to missing lock nesting notation [ 32.709316] [ 32.716219] 4 locks held by syz-executor340/8105: [ 32.721031] #0: 000000002c328a35 (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 32.729006] #1: 00000000e2624486 (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 32.738089] #2: 000000004bfa527d (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 32.748472] #3: 000000000d3f09a6 (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 32.757204] [ 32.757204] stack backtrace: [ 32.761679] CPU: 1 PID: 8105 Comm: syz-executor340 Not tainted 4.19.211-syzkaller #0 [ 32.769532] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 32.778860] Call Trace: [ 32.781427] dump_stack+0x1fc/0x2ef [ 32.785042] __lock_acquire.cold+0x121/0x57e [ 32.789429] ? mark_held_locks+0xf0/0xf0 [ 32.793473] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 32.798814] ? save_trace+0xd6/0x290 [ 32.802506] ? __lock_acquire+0x22f9/0x3ff0 [ 32.806806] lock_acquire+0x170/0x3c0 [ 32.810584] ? hfsplus_get_block+0x292/0x960 [ 32.814977] ? hfsplus_get_block+0x292/0x960 [ 32.819361] __mutex_lock+0xd7/0x1190 [ 32.823138] ? hfsplus_get_block+0x292/0x960 [ 32.827526] ? check_preemption_disabled+0x41/0x280 [ 32.832521] ? hfsplus_get_block+0x292/0x960 [ 32.836905] ? mutex_trylock+0x1a0/0x1a0 [ 32.840945] ? create_page_buffers+0x212/0x350 [ 32.845540] ? alloc_page_buffers+0x2da/0x5c0 [ 32.850016] ? lock_downgrade+0x720/0x720 [ 32.854150] ? do_raw_spin_lock+0xcb/0x220 [ 32.858367] hfsplus_get_block+0x292/0x960 [ 32.862584] block_read_full_page+0x288/0xd10 [ 32.867067] ? hfsplus_file_extend+0xf40/0xf40 [ 32.871633] ? __bread_gfp+0x300/0x300 [ 32.875498] ? add_to_page_cache_locked+0x40/0x40 [ 32.880336] do_read_cache_page+0x533/0x1170 [ 32.884742] ? hfsplus_bmap+0x30/0x30 [ 32.888520] hfsplus_block_free+0x18b/0x5d0 [ 32.892821] ? __mutex_unlock_slowpath+0xea/0x610 [ 32.897640] hfsplus_free_extents+0x228/0x520 [ 32.902111] hfsplus_file_truncate+0xd96/0x1040 [ 32.906767] ? hfsplus_get_block+0x960/0x960 [ 32.911154] ? up_write+0x18/0x150 [ 32.914674] ? unmap_mapping_pages+0x121/0x2b0 [ 32.919235] ? inode_newsize_ok+0x121/0x1e0 [ 32.923534] hfsplus_setattr+0x1e7/0x310 [ 32.927573] ? hfsplus_file_open+0x140/0x140 [ 32.931959] notify_change+0x70b/0xfc0 [ 32.935824] do_truncate+0x134/0x1f0 [ 32.939514] ? dentry_open+0x1d0/0x1d0 [ 32.943378] ? apparmor_path_truncate+0x183/0x200 [ 32.948201] ? inode_permission+0x3d/0x140 [ 32.952413] path_openat+0x2308/0x2df0 [ 32.956283] ? path_lookupat+0x8d0/0x8d0 [ 32.960321] ? mark_held_locks+0xf0/0xf0 [ 32.964361] ? __lock_acquire+0x6de/0x3ff0 [ 32.968573] do_filp_open+0x18c/0x3f0 [ 32.972351] ? may_open_dev+0xf0/0xf0 [ 32.976131] ? lock_downgrade+0x720/0x720 [ 32.980256] ? lock_acquire+0x170/0x3c0 [ 32.984208] ? __alloc_fd+0x34/0x570 [ 32.987899] ? do_raw_spin_unlock+0x171/0x230 [ 32.992371] ? _raw_spin_unlock+0x29/0x40 [ 32.996494] ? __alloc_fd+0x28d/0x570 [ 33.000271] do_sys_open+0x3b3/0x520 [ 33.003965] ? filp_open+0x70/0x70 [ 33.007493] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.012835] ? trace_hardirqs_off_caller+0x6e/0x210 [ 33.017833] ? do_syscall_64+0x21/0x620 [ 33.021788] do_syscall_64+0xf9/0x620 [ 33.025567] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.030735] RIP: 0033:0x7f9e05bef779 [ 33.034432] 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.053397] RSP: 002b:00007ffc36fcbab8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 33.061080] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f9e05bef779 [ 33.0