[ 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.10' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 35.751710] hfsplus: xattr searching failed [ 35.756516] [ 35.758161] ============================================ [ 35.763632] WARNING: possible recursive locking detected [ 35.769693] 4.14.302-syzkaller #0 Not tainted [ 35.774166] -------------------------------------------- [ 35.779595] syz-executor317/7978 is trying to acquire lock: [ 35.785303] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 35.795262] [ 35.795262] but task is already holding lock: [ 35.801317] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 35.811620] [ 35.811620] other info that might help us debug this: [ 35.818266] Possible unsafe locking scenario: [ 35.818266] [ 35.824304] CPU0 [ 35.826883] ---- [ 35.829445] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.834540] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.839637] [ 35.839637] *** DEADLOCK *** [ 35.839637] [ 35.845692] May be due to missing lock nesting notation [ 35.845692] [ 35.852606] 5 locks held by syz-executor317/7978: [ 35.857446] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 35.865862] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 35.875318] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 35.886060] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 35.895635] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 35.905103] [ 35.905103] stack backtrace: [ 35.909591] CPU: 1 PID: 7978 Comm: syz-executor317 Not tainted 4.14.302-syzkaller #0 [ 35.917455] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 35.926790] Call Trace: [ 35.929383] dump_stack+0x1b2/0x281 [ 35.932998] __lock_acquire.cold+0x180/0x97c [ 35.937398] ? register_lock_class+0x1d0/0x1180 [ 35.942104] ? trace_hardirqs_on+0x10/0x10 [ 35.946325] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 35.951693] ? save_trace+0xd6/0x290 [ 35.955409] ? __lock_acquire+0x2190/0x3f20 [ 35.959718] lock_acquire+0x170/0x3f0 [ 35.963505] ? hfsplus_get_block+0x1f9/0x820 [ 35.967902] ? hfsplus_get_block+0x1f9/0x820 [ 35.972405] __mutex_lock+0xc4/0x1310 [ 35.976224] ? hfsplus_get_block+0x1f9/0x820 [ 35.980630] ? hfsplus_get_block+0x1f9/0x820 [ 35.985028] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 35.990499] ? lock_acquire+0x170/0x3f0 [ 35.994471] ? create_page_buffers+0x14d/0x1c0 [ 35.999045] hfsplus_get_block+0x1f9/0x820 [ 36.003270] ? _raw_spin_unlock+0x29/0x40 [ 36.007401] ? create_page_buffers+0xce/0x1c0 [ 36.011879] block_read_full_page+0x25e/0x8d0 [ 36.016364] ? hfsplus_file_extend+0xef0/0xef0 [ 36.020939] ? __lru_cache_add+0x178/0x250 [ 36.025160] ? __bread_gfp+0x2e0/0x2e0 [ 36.029046] ? add_to_page_cache_lru+0x136/0x2b0 [ 36.033786] ? add_to_page_cache_locked+0x40/0x40 [ 36.038758] ? alloc_pages_current+0x15d/0x260 [ 36.043340] do_read_cache_page+0x38e/0xc10 [ 36.047667] ? hfsplus_bmap+0x30/0x30 [ 36.051466] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 36.056940] hfsplus_block_free+0x177/0x560 [ 36.061262] hfsplus_free_extents+0x170/0x440 [ 36.065751] hfsplus_file_truncate+0xbc0/0xe80 [ 36.070409] ? hfsplus_get_block+0x820/0x820 [ 36.074804] ? up_write+0x17/0x60 [ 36.078243] ? unmap_mapping_range+0xe9/0x250 [ 36.082872] ? inode_newsize_ok+0x145/0x1c0 [ 36.087198] hfsplus_setattr+0x182/0x310 [ 36.091250] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 36.095896] notify_change+0x56b/0xd10 [ 36.099780] do_truncate+0xff/0x1a0 [ 36.103397] ? finish_open+0x170/0x170 [ 36.107277] ? apparmor_path_truncate+0x163/0x1d0 [ 36.112135] path_openat+0x1dcc/0x2970 [ 36.116011] ? path_lookupat+0x780/0x780 [ 36.120057] ? trace_hardirqs_on+0x10/0x10 [ 36.124742] ? trace_hardirqs_on+0x10/0x10 [ 36.128959] do_filp_open+0x179/0x3c0 [ 36.132836] ? may_open_dev+0xe0/0xe0 [ 36.136620] ? lock_downgrade+0x740/0x740 [ 36.140770] ? do_raw_spin_unlock+0x164/0x220 [ 36.145251] ? _raw_spin_unlock+0x29/0x40 [ 36.149385] ? __alloc_fd+0x1be/0x490 [ 36.153173] ? _raw_spin_unlock_irq+0x24/0x80 [ 36.157651] do_sys_open+0x296/0x410 [ 36.161366] ? filp_open+0x60/0x60 [ 36.164900] ? do_syscall_64+0x4c/0x640 [ 36.168859] ? compat_SyS_openat+0x30/0x30 [ 36.173081] do_syscall_64+0x1d5/0x640 [ 36.176975] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 36.182151] RIP: 0033:0x7fb943585779 [ 36.185845] RSP: 002b:00007ffe840cb4b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 36.193555] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007fb943585779 [ 36.200814] RDX: 00007fb943543df3 RSI: 0000000000000102 RDI: 0000000020000000 [ 36.208245] RBP: 00007fb943545010 R08: 00000000000005cd R09: 0000000000000000 [ 36.215497] R10: 00007ffe840cb380 R11: 0000000000000246 R12: 00007fb9435450a0 [ 36.222749] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000