[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.103' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 28.931319] hfsplus: xattr searching failed [ 28.936991] [ 28.938640] ============================================ [ 28.944167] WARNING: possible recursive locking detected [ 28.949697] 4.14.301-syzkaller #0 Not tainted [ 28.954187] -------------------------------------------- [ 28.959619] syz-executor192/7971 is trying to acquire lock: [ 28.965399] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 28.977872] [ 28.977872] but task is already holding lock: [ 28.985037] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 28.999101] [ 28.999101] other info that might help us debug this: [ 29.006429] Possible unsafe locking scenario: [ 29.006429] [ 29.013523] CPU0 [ 29.016081] ---- [ 29.019082] lock(&HFSPLUS_I(inode)->extents_lock); [ 29.024240] lock(&HFSPLUS_I(inode)->extents_lock); [ 29.029783] [ 29.029783] *** DEADLOCK *** [ 29.029783] [ 29.036967] May be due to missing lock nesting notation [ 29.036967] [ 29.044201] 5 locks held by syz-executor192/7971: [ 29.049016] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 29.059364] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 29.068968] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 29.080421] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 29.089810] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 29.098998] [ 29.098998] stack backtrace: [ 29.103480] CPU: 1 PID: 7971 Comm: syz-executor192 Not tainted 4.14.301-syzkaller #0 [ 29.111344] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 29.120792] Call Trace: [ 29.123368] dump_stack+0x1b2/0x281 [ 29.126981] __lock_acquire.cold+0x180/0x97c [ 29.131531] ? register_lock_class+0x1d0/0x1180 [ 29.136210] ? trace_hardirqs_on+0x10/0x10 [ 29.140424] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 29.145787] ? save_trace+0xd6/0x290 [ 29.149485] ? __lock_acquire+0x2190/0x3f20 [ 29.154440] lock_acquire+0x170/0x3f0 [ 29.158267] ? hfsplus_get_block+0x1f9/0x820 [ 29.162647] ? hfsplus_get_block+0x1f9/0x820 [ 29.167032] __mutex_lock+0xc4/0x1310 [ 29.170818] ? hfsplus_get_block+0x1f9/0x820 [ 29.175204] ? hfsplus_get_block+0x1f9/0x820 [ 29.179595] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 29.185022] ? lock_acquire+0x170/0x3f0 [ 29.188998] ? create_page_buffers+0x14d/0x1c0 [ 29.193553] hfsplus_get_block+0x1f9/0x820 [ 29.197782] ? _raw_spin_unlock+0x29/0x40 [ 29.201901] ? create_page_buffers+0xce/0x1c0 [ 29.206452] block_read_full_page+0x25e/0x8d0 [ 29.210918] ? hfsplus_file_extend+0xef0/0xef0 [ 29.215584] ? __lru_cache_add+0x178/0x250 [ 29.219799] ? __bread_gfp+0x2e0/0x2e0 [ 29.223666] ? add_to_page_cache_lru+0x136/0x2b0 [ 29.228489] ? add_to_page_cache_locked+0x40/0x40 [ 29.234847] ? alloc_pages_current+0x15d/0x260 [ 29.239405] do_read_cache_page+0x38e/0xc10 [ 29.243711] ? hfsplus_bmap+0x30/0x30 [ 29.247489] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 29.253377] hfsplus_block_free+0x177/0x560 [ 29.257952] hfsplus_free_extents+0x170/0x440 [ 29.263236] hfsplus_file_truncate+0xbc0/0xe80 [ 29.267843] ? hfsplus_get_block+0x820/0x820 [ 29.272321] ? up_write+0x17/0x60 [ 29.275896] ? unmap_mapping_range+0xe9/0x250 [ 29.280456] ? inode_newsize_ok+0x145/0x1c0 [ 29.284754] hfsplus_setattr+0x182/0x310 [ 29.289015] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 29.293643] notify_change+0x56b/0xd10 [ 29.298033] do_truncate+0xff/0x1a0 [ 29.301645] ? finish_open+0x170/0x170 [ 29.305605] ? apparmor_path_truncate+0x163/0x1d0 [ 29.310420] path_openat+0x1dcc/0x2970 [ 29.314412] ? path_lookupat+0x780/0x780 [ 29.318558] ? trace_hardirqs_on+0x10/0x10 [ 29.322778] ? trace_hardirqs_on+0x10/0x10 [ 29.326987] do_filp_open+0x179/0x3c0 [ 29.331041] ? may_open_dev+0xe0/0xe0 [ 29.334853] ? lock_downgrade+0x740/0x740 [ 29.339061] ? do_raw_spin_unlock+0x164/0x220 [ 29.343564] ? _raw_spin_unlock+0x29/0x40 [ 29.347778] ? __alloc_fd+0x1be/0x490 [ 29.351654] ? _raw_spin_unlock_irq+0x24/0x80 [ 29.356306] do_sys_open+0x296/0x410 [ 29.360100] ? filp_open+0x60/0x60 [ 29.363634] ? do_syscall_64+0x4c/0x640 [ 29.367762] ? compat_SyS_openat+0x30/0x30 [ 29.372004] do_syscall_64+0x1d5/0x640 [ 29.376015] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 29.381408] RIP: 0033:0x7faeaa8a4779 [ 29.385181] RSP: 002b:00007ffe49616328 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 29.393098] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007faeaa8a4779 [ 29.400621] RDX: 00007faeaa862df3 RSI: 0000000000000091 RDI: 0000000020000080 [ 29.407987] RBP: 00007faeaa864010 R08: 00000000000005cd R09: 0000000000000000 [ 29.416184] R10: 00007ffe496161f0 R11: 0000000000000246 R12: 00007faeaa8640a0 [ 29.423439] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000