Starting System Logging Service... Starting getty on tty2-tty6 if dbus and logind are not available... [ OK ] Started Permit User Sessions. [ OK ] Found device /dev/ttyS0. [ OK ] Started getty on tty2-tty6 if dbus and logind are not available. [ OK ] Started System Logging Service. [ OK ] Started OpenBSD Secure Shell server. [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [ OK ] Started Getty on tty6. [ OK ] Started Getty on tty5. [ OK ] Started Getty on tty4. [ OK ] Started Getty on tty3. [ OK ] Started Getty on tty2. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ 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.1.143' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 31.633351] hfsplus: xattr searching failed [ 31.638092] [ 31.639725] ============================================ [ 31.645161] WARNING: possible recursive locking detected [ 31.650601] 4.19.211-syzkaller #0 Not tainted [ 31.655081] -------------------------------------------- [ 31.660506] syz-executor249/8103 is trying to acquire lock: [ 31.666192] 0000000043119287 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 31.675708] [ 31.675708] but task is already holding lock: [ 31.681657] 00000000be3c02ad (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 31.691611] [ 31.691611] other info that might help us debug this: [ 31.698260] Possible unsafe locking scenario: [ 31.698260] [ 31.704296] CPU0 [ 31.706854] ---- [ 31.709429] lock(&HFSPLUS_I(inode)->extents_lock); [ 31.714506] lock(&HFSPLUS_I(inode)->extents_lock); [ 31.719588] [ 31.719588] *** DEADLOCK *** [ 31.719588] [ 31.725624] May be due to missing lock nesting notation [ 31.725624] [ 31.732529] 4 locks held by syz-executor249/8103: [ 31.737363] #0: 00000000cd5dc6a0 (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 31.745319] #1: 00000000dde20780 (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 31.754400] #2: 00000000be3c02ad (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 31.764782] #3: 0000000027950b31 (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 31.773515] [ 31.773515] stack backtrace: [ 31.777993] CPU: 0 PID: 8103 Comm: syz-executor249 Not tainted 4.19.211-syzkaller #0 [ 31.785853] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 31.795179] Call Trace: [ 31.797748] dump_stack+0x1fc/0x2ef [ 31.801356] __lock_acquire.cold+0x121/0x57e [ 31.805761] ? mark_held_locks+0xf0/0xf0 [ 31.809805] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 31.815147] ? save_trace+0xd6/0x290 [ 31.818848] ? __lock_acquire+0x22f9/0x3ff0 [ 31.823152] lock_acquire+0x170/0x3c0 [ 31.826938] ? hfsplus_get_block+0x292/0x960 [ 31.831328] ? hfsplus_get_block+0x292/0x960 [ 31.835717] __mutex_lock+0xd7/0x1190 [ 31.839498] ? hfsplus_get_block+0x292/0x960 [ 31.843889] ? check_preemption_disabled+0x41/0x280 [ 31.848887] ? hfsplus_get_block+0x292/0x960 [ 31.853272] ? mutex_trylock+0x1a0/0x1a0 [ 31.857314] ? create_page_buffers+0x212/0x350 [ 31.861874] ? alloc_page_buffers+0x2da/0x5c0 [ 31.866348] ? lock_downgrade+0x720/0x720 [ 31.870474] ? do_raw_spin_lock+0xcb/0x220 [ 31.874691] hfsplus_get_block+0x292/0x960 [ 31.878907] block_read_full_page+0x288/0xd10 [ 31.883384] ? hfsplus_file_extend+0xf40/0xf40 [ 31.887945] ? __bread_gfp+0x300/0x300 [ 31.891812] ? add_to_page_cache_locked+0x40/0x40 [ 31.896640] do_read_cache_page+0x533/0x1170 [ 31.901029] ? hfsplus_bmap+0x30/0x30 [ 31.904807] hfsplus_block_free+0x18b/0x5d0 [ 31.909109] ? __mutex_unlock_slowpath+0xea/0x610 [ 31.913955] hfsplus_free_extents+0x228/0x520 [ 31.918542] hfsplus_file_truncate+0xd96/0x1040 [ 31.923201] ? hfsplus_get_block+0x960/0x960 [ 31.927591] ? up_write+0x18/0x150 [ 31.931111] ? unmap_mapping_pages+0x121/0x2b0 [ 31.935681] ? inode_newsize_ok+0x121/0x1e0 [ 31.939989] hfsplus_setattr+0x1e7/0x310 [ 31.944034] ? hfsplus_file_open+0x140/0x140 [ 31.948422] notify_change+0x70b/0xfc0 [ 31.952377] do_truncate+0x134/0x1f0 [ 31.956075] ? dentry_open+0x1d0/0x1d0 [ 31.959943] ? apparmor_path_truncate+0x183/0x200 [ 31.964767] ? inode_permission+0x3d/0x140 [ 31.968981] path_openat+0x2308/0x2df0 [ 31.972851] ? path_lookupat+0x8d0/0x8d0 [ 31.976891] ? mark_held_locks+0xf0/0xf0 [ 31.980929] ? __lock_acquire+0x6de/0x3ff0 [ 31.985150] do_filp_open+0x18c/0x3f0 [ 31.988929] ? may_open_dev+0xf0/0xf0 [ 31.992707] ? lock_downgrade+0x720/0x720 [ 31.996832] ? lock_acquire+0x170/0x3c0 [ 32.000791] ? __alloc_fd+0x34/0x570 [ 32.004488] ? do_raw_spin_unlock+0x171/0x230 [ 32.008963] ? _raw_spin_unlock+0x29/0x40 [ 32.013089] ? __alloc_fd+0x28d/0x570 [ 32.016872] do_sys_open+0x3b3/0x520 [ 32.020565] ? filp_open+0x70/0x70 [ 32.024092] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.029434] ? trace_hardirqs_off_caller+0x6e/0x210 [ 32.034430] ? do_syscall_64+0x21/0x620 [ 32.038382] do_syscall_64+0xf9/0x620 [ 32.042165] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.047336] RIP: 0033:0x7f05242eb779 [ 32.051027] 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 [ 32.069905] RSP: 002b:00007ffd68190198 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 32.077591] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007f05242eb779 [ 32.0