[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.85' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 36.900913] hfsplus: xattr search failed [ 36.905325] [ 36.906942] ============================================ [ 36.912368] WARNING: possible recursive locking detected [ 36.917786] 4.14.301-syzkaller #0 Not tainted [ 36.922246] -------------------------------------------- [ 36.927661] syz-executor128/7995 is trying to acquire lock: [ 36.933340] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 36.943283] [ 36.943283] but task is already holding lock: [ 36.949219] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 36.959502] [ 36.959502] other info that might help us debug this: [ 36.966132] Possible unsafe locking scenario: [ 36.966132] [ 36.972156] CPU0 [ 36.974706] ---- [ 36.977275] lock(&HFSPLUS_I(inode)->extents_lock); [ 36.982348] lock(&HFSPLUS_I(inode)->extents_lock); [ 36.987419] [ 36.987419] *** DEADLOCK *** [ 36.987419] [ 36.993444] May be due to missing lock nesting notation [ 36.993444] [ 37.000339] 7 locks held by syz-executor128/7995: [ 37.005149] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 37.013528] #1: (&type->i_mutex_dir_key#7/1){+.+.}, at: [] do_unlinkat+0x201/0x5c0 [ 37.022948] #2: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] vfs_unlink+0xc0/0x470 [ 37.032278] #3: (&sbi->vh_mutex){+.+.}, at: [] hfsplus_unlink+0x112/0x6b0 [ 37.040914] #4: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 37.051632] #5: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 37.060875] #6: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 37.070030] [ 37.070030] stack backtrace: [ 37.074495] CPU: 1 PID: 7995 Comm: syz-executor128 Not tainted 4.14.301-syzkaller #0 [ 37.082344] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 37.091678] Call Trace: [ 37.094238] dump_stack+0x1b2/0x281 [ 37.097837] __lock_acquire.cold+0x180/0x97c [ 37.102220] ? register_lock_class+0x1d0/0x1180 [ 37.106858] ? trace_hardirqs_on+0x10/0x10 [ 37.111064] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 37.116395] ? save_trace+0xd6/0x290 [ 37.120078] ? __lock_acquire+0x2190/0x3f20 [ 37.124368] lock_acquire+0x170/0x3f0 [ 37.128140] ? hfsplus_get_block+0x1f9/0x820 [ 37.132518] ? hfsplus_get_block+0x1f9/0x820 [ 37.136917] __mutex_lock+0xc4/0x1310 [ 37.140687] ? hfsplus_get_block+0x1f9/0x820 [ 37.145065] ? hfsplus_get_block+0x1f9/0x820 [ 37.149442] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 37.154859] ? lock_acquire+0x170/0x3f0 [ 37.158802] ? create_page_buffers+0x14d/0x1c0 [ 37.163355] hfsplus_get_block+0x1f9/0x820 [ 37.167560] ? _raw_spin_unlock+0x29/0x40 [ 37.171674] ? create_page_buffers+0xce/0x1c0 [ 37.176137] block_read_full_page+0x25e/0x8d0 [ 37.180602] ? hfsplus_file_extend+0xef0/0xef0 [ 37.185153] ? __lru_cache_add+0x178/0x250 [ 37.189355] ? __bread_gfp+0x2e0/0x2e0 [ 37.193211] ? add_to_page_cache_lru+0x136/0x2b0 [ 37.197937] ? add_to_page_cache_locked+0x40/0x40 [ 37.202750] ? alloc_pages_current+0x15d/0x260 [ 37.207301] do_read_cache_page+0x38e/0xc10 [ 37.211594] ? hfsplus_bmap+0x30/0x30 [ 37.215364] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 37.220783] hfsplus_block_free+0x177/0x560 [ 37.225073] hfsplus_free_extents+0x170/0x440 [ 37.229539] hfsplus_file_truncate+0xbc0/0xe80 [ 37.234091] ? hfsplus_delete_cat+0x10c/0xd70 [ 37.238559] ? hfsplus_get_block+0x820/0x820 [ 37.242937] hfsplus_delete_inode+0x160/0x1f0 [ 37.247580] hfsplus_unlink+0x48c/0x6b0 [ 37.251522] ? hfsplus_symlink+0x2a0/0x2a0 [ 37.255726] ? lock_acquire+0x170/0x3f0 [ 37.259672] ? vfs_unlink+0xc0/0x470 [ 37.263356] vfs_unlink+0x230/0x470 [ 37.266962] do_unlinkat+0x30c/0x5c0 [ 37.270645] ? do_rmdir+0x3c0/0x3c0 [ 37.274243] ? _raw_spin_unlock_irq+0x5a/0x80 [ 37.278704] ? task_work_run+0xfd/0x190 [ 37.282647] ? do_syscall_64+0x4c/0x640 [ 37.286592] ? SyS_unlinkat+0x70/0x70 [ 37.290362] do_syscall_64+0x1d5/0x640 [ 37.294219] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 37.299376] RIP: 0033:0x7ff467b28769 [ 37.303060] RSP: 002b:00007ffd45c6e5c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 [ 37.310735] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007ff467b28769 [ 37.317972] RDX: 00007ff467ae6de3 RSI: 0000000000000000 RDI: 00000000200000c0 [ 37.325210] RBP: 00007ff467ae8000 R08: 00000000000005cd R09: 0000000000000000 [ 37.332447] R10: 00007ffd45c6e490 R11: 0000000000000246 R12: 00007ff467ae8090 [ 37.339685] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000