[ 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.102' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 34.228151] hfsplus: xattr searching failed [ 34.234080] hfsplus: xattr searching failed [ 34.239132] [ 34.240786] ============================================ [ 34.246313] WARNING: possible recursive locking detected [ 34.252040] 4.19.211-syzkaller #0 Not tainted [ 34.256655] -------------------------------------------- [ 34.262079] syz-executor418/8088 is trying to acquire lock: [ 34.268001] 00000000f61e85af (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 34.277992] [ 34.277992] but task is already holding lock: [ 34.283949] 000000002bfe2aa5 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 34.293913] [ 34.293913] other info that might help us debug this: [ 34.300978] Possible unsafe locking scenario: [ 34.300978] [ 34.307114] CPU0 [ 34.309817] ---- [ 34.312380] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.317463] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.322567] [ 34.322567] *** DEADLOCK *** [ 34.322567] [ 34.328611] May be due to missing lock nesting notation [ 34.328611] [ 34.335520] 4 locks held by syz-executor418/8088: [ 34.340338] #0: 0000000050d5bc9a (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 34.348310] #1: 0000000018e9feb8 (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 34.357401] #2: 000000002bfe2aa5 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 34.367792] #3: 00000000da31a94e (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 34.376524] [ 34.376524] stack backtrace: [ 34.381005] CPU: 1 PID: 8088 Comm: syz-executor418 Not tainted 4.19.211-syzkaller #0 [ 34.388858] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 34.398296] Call Trace: [ 34.400898] dump_stack+0x1fc/0x2ef [ 34.404507] __lock_acquire.cold+0x121/0x57e [ 34.408895] ? mark_held_locks+0xf0/0xf0 [ 34.412934] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 34.418378] ? save_trace+0xd6/0x290 [ 34.422077] ? __lock_acquire+0x22f9/0x3ff0 [ 34.426382] lock_acquire+0x170/0x3c0 [ 34.430164] ? hfsplus_get_block+0x292/0x960 [ 34.434621] ? hfsplus_get_block+0x292/0x960 [ 34.439113] __mutex_lock+0xd7/0x1190 [ 34.442890] ? hfsplus_get_block+0x292/0x960 [ 34.447280] ? check_preemption_disabled+0x41/0x280 [ 34.452277] ? hfsplus_get_block+0x292/0x960 [ 34.456675] ? mutex_trylock+0x1a0/0x1a0 [ 34.460716] ? create_page_buffers+0x212/0x350 [ 34.465276] ? alloc_page_buffers+0x2da/0x5c0 [ 34.469751] ? lock_downgrade+0x720/0x720 [ 34.473875] ? do_raw_spin_lock+0xcb/0x220 [ 34.478088] hfsplus_get_block+0x292/0x960 [ 34.482304] block_read_full_page+0x288/0xd10 [ 34.486779] ? hfsplus_file_extend+0xf40/0xf40 [ 34.491338] ? __bread_gfp+0x300/0x300 [ 34.495206] ? add_to_page_cache_locked+0x40/0x40 [ 34.500027] do_read_cache_page+0x533/0x1170 [ 34.504413] ? hfsplus_bmap+0x30/0x30 [ 34.508190] hfsplus_block_free+0x18b/0x5d0 [ 34.512500] ? __mutex_unlock_slowpath+0xea/0x610 [ 34.517328] hfsplus_free_extents+0x228/0x520 [ 34.521818] hfsplus_file_truncate+0xd96/0x1040 [ 34.526940] ? hfsplus_get_block+0x960/0x960 [ 34.531419] ? up_write+0x18/0x150 [ 34.534944] ? unmap_mapping_pages+0x121/0x2b0 [ 34.539512] ? inode_newsize_ok+0x121/0x1e0 [ 34.543820] hfsplus_setattr+0x1e7/0x310 [ 34.547862] ? hfsplus_file_open+0x140/0x140 [ 34.552250] notify_change+0x70b/0xfc0 [ 34.556207] do_truncate+0x134/0x1f0 [ 34.559902] ? dentry_open+0x1d0/0x1d0 [ 34.563769] ? apparmor_path_truncate+0x183/0x200 [ 34.568802] ? inode_permission+0x3d/0x140 [ 34.573018] path_openat+0x2308/0x2df0 [ 34.577047] ? path_lookupat+0x8d0/0x8d0 [ 34.581093] ? mark_held_locks+0xf0/0xf0 [ 34.585131] ? __lock_acquire+0x6de/0x3ff0 [ 34.589357] do_filp_open+0x18c/0x3f0 [ 34.593144] ? may_open_dev+0xf0/0xf0 [ 34.596932] ? lock_downgrade+0x720/0x720 [ 34.601068] ? lock_acquire+0x170/0x3c0 [ 34.605026] ? __alloc_fd+0x34/0x570 [ 34.608724] ? do_raw_spin_unlock+0x171/0x230 [ 34.613198] ? _raw_spin_unlock+0x29/0x40 [ 34.617324] ? __alloc_fd+0x28d/0x570 [ 34.621106] do_sys_open+0x3b3/0x520 [ 34.624800] ? filp_open+0x70/0x70 [ 34.628341] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.633701] ? trace_hardirqs_off_caller+0x6e/0x210 [ 34.638702] ? do_syscall_64+0x21/0x620 [ 34.642923] do_syscall_64+0xf9/0x620 [ 34.646707] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.651873] RIP: 0033:0x7f4e8f477789 [ 34.655568] 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 [ 34.674452] RSP: 002b:00007fffd7467a88 EFLAGS: 00000246 ORIG_RAX