[ 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.0.20' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 40.196307] hfsplus: xattr searching failed [ 40.201168] [ 40.202800] ============================================ [ 40.208227] WARNING: possible recursive locking detected [ 40.213746] 4.14.302-syzkaller #0 Not tainted [ 40.218222] -------------------------------------------- [ 40.223737] syz-executor384/7976 is trying to acquire lock: [ 40.229416] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 40.239361] [ 40.239361] but task is already holding lock: [ 40.245301] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 40.255590] [ 40.255590] other info that might help us debug this: [ 40.262223] Possible unsafe locking scenario: [ 40.262223] [ 40.268248] CPU0 [ 40.270912] ---- [ 40.273466] lock(&HFSPLUS_I(inode)->extents_lock); [ 40.278539] lock(&HFSPLUS_I(inode)->extents_lock); [ 40.283610] [ 40.283610] *** DEADLOCK *** [ 40.283610] [ 40.289641] May be due to missing lock nesting notation [ 40.289641] [ 40.296543] 5 locks held by syz-executor384/7976: [ 40.301351] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 40.309732] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 40.319150] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 40.330391] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 40.339635] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 40.348799] [ 40.348799] stack backtrace: [ 40.353264] CPU: 1 PID: 7976 Comm: syz-executor384 Not tainted 4.14.302-syzkaller #0 [ 40.361112] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 40.370441] Call Trace: [ 40.373006] dump_stack+0x1b2/0x281 [ 40.376679] __lock_acquire.cold+0x180/0x97c [ 40.381064] ? register_lock_class+0x1d0/0x1180 [ 40.385703] ? trace_hardirqs_on+0x10/0x10 [ 40.389909] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 40.395242] ? save_trace+0xd6/0x290 [ 40.398934] ? __lock_acquire+0x2190/0x3f20 [ 40.403225] lock_acquire+0x170/0x3f0 [ 40.406996] ? hfsplus_get_block+0x1f9/0x820 [ 40.411374] ? hfsplus_get_block+0x1f9/0x820 [ 40.415752] __mutex_lock+0xc4/0x1310 [ 40.419525] ? hfsplus_get_block+0x1f9/0x820 [ 40.423905] ? hfsplus_get_block+0x1f9/0x820 [ 40.428303] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 40.433728] ? lock_acquire+0x170/0x3f0 [ 40.437672] ? create_page_buffers+0x14d/0x1c0 [ 40.442224] hfsplus_get_block+0x1f9/0x820 [ 40.446431] ? _raw_spin_unlock+0x29/0x40 [ 40.450549] ? create_page_buffers+0xce/0x1c0 [ 40.455017] block_read_full_page+0x25e/0x8d0 [ 40.459500] ? hfsplus_file_extend+0xef0/0xef0 [ 40.464054] ? __lru_cache_add+0x178/0x250 [ 40.468258] ? __bread_gfp+0x2e0/0x2e0 [ 40.472119] ? add_to_page_cache_lru+0x136/0x2b0 [ 40.476842] ? add_to_page_cache_locked+0x40/0x40 [ 40.481656] ? alloc_pages_current+0x15d/0x260 [ 40.486209] do_read_cache_page+0x38e/0xc10 [ 40.490527] ? hfsplus_bmap+0x30/0x30 [ 40.494299] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 40.499718] hfsplus_block_free+0x177/0x560 [ 40.504011] hfsplus_free_extents+0x170/0x440 [ 40.508562] hfsplus_file_truncate+0xbc0/0xe80 [ 40.513114] ? hfsplus_get_block+0x820/0x820 [ 40.517495] ? up_write+0x17/0x60 [ 40.520918] ? unmap_mapping_range+0xe9/0x250 [ 40.525384] ? inode_newsize_ok+0x145/0x1c0 [ 40.529683] hfsplus_setattr+0x182/0x310 [ 40.533721] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 40.538187] notify_change+0x56b/0xd10 [ 40.542043] do_truncate+0xff/0x1a0 [ 40.545648] ? finish_open+0x170/0x170 [ 40.549508] ? apparmor_path_truncate+0x163/0x1d0 [ 40.554323] path_openat+0x1dcc/0x2970 [ 40.558180] ? path_lookupat+0x780/0x780 [ 40.562214] ? trace_hardirqs_on+0x10/0x10 [ 40.566419] ? trace_hardirqs_on+0x10/0x10 [ 40.570625] do_filp_open+0x179/0x3c0 [ 40.574410] ? may_open_dev+0xe0/0xe0 [ 40.578182] ? lock_downgrade+0x740/0x740 [ 40.582299] ? do_raw_spin_unlock+0x164/0x220 [ 40.586766] ? _raw_spin_unlock+0x29/0x40 [ 40.590883] ? __alloc_fd+0x1be/0x490 [ 40.594829] ? _raw_spin_unlock_irq+0x24/0x80 [ 40.599296] do_sys_open+0x296/0x410 [ 40.602981] ? filp_open+0x60/0x60 [ 40.606492] ? do_syscall_64+0x4c/0x640 [ 40.610434] ? compat_SyS_openat+0x30/0x30 [ 40.614637] do_syscall_64+0x1d5/0x640 [ 40.618496] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 40.623659] RIP: 0033:0x7f0e9039d779 [ 40.627340] RSP: 002b:00007ffc95bd13a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 40.635022] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007f0e9039d779 [ 40.642265] RDX: 00007f0e9035bdf3 RSI: 0000000000000002 RDI: 0000000020000100 [ 40.649505] RBP: 00007f0e9035d010 R08: 00000000000005cd R09: 0000000000000000 [ 40.656747] R10: 00007ffc95bd1270 R11: 0000000000000246 R12: 00007f0e9035d0a0 [ 40.663997] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000