[ 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.106' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 34.207762] hfsplus: xattr searching failed [ 34.212319] [ 34.213926] ============================================ [ 34.219347] WARNING: possible recursive locking detected [ 34.224772] 4.14.302-syzkaller #0 Not tainted [ 34.229236] -------------------------------------------- [ 34.234681] syz-executor413/7981 is trying to acquire lock: [ 34.240365] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 34.250318] [ 34.250318] but task is already holding lock: [ 34.256284] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 34.266603] [ 34.266603] other info that might help us debug this: [ 34.273247] Possible unsafe locking scenario: [ 34.273247] [ 34.279273] CPU0 [ 34.281826] ---- [ 34.284379] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.289455] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.294529] [ 34.294529] *** DEADLOCK *** [ 34.294529] [ 34.300558] May be due to missing lock nesting notation [ 34.300558] [ 34.307456] 5 locks held by syz-executor413/7981: [ 34.312274] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 34.320658] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 34.330100] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 34.340822] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 34.350071] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 34.359230] [ 34.359230] stack backtrace: [ 34.363698] CPU: 1 PID: 7981 Comm: syz-executor413 Not tainted 4.14.302-syzkaller #0 [ 34.371549] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 34.380872] Call Trace: [ 34.383435] dump_stack+0x1b2/0x281 [ 34.387037] __lock_acquire.cold+0x180/0x97c [ 34.391420] ? register_lock_class+0x1d0/0x1180 [ 34.396064] ? trace_hardirqs_on+0x10/0x10 [ 34.400276] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 34.405612] ? save_trace+0xd6/0x290 [ 34.409304] ? __lock_acquire+0x2190/0x3f20 [ 34.413607] lock_acquire+0x170/0x3f0 [ 34.417385] ? hfsplus_get_block+0x1f9/0x820 [ 34.421770] ? hfsplus_get_block+0x1f9/0x820 [ 34.426163] __mutex_lock+0xc4/0x1310 [ 34.429959] ? hfsplus_get_block+0x1f9/0x820 [ 34.434343] ? hfsplus_get_block+0x1f9/0x820 [ 34.438747] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 34.444173] ? lock_acquire+0x170/0x3f0 [ 34.448122] ? create_page_buffers+0x14d/0x1c0 [ 34.452677] hfsplus_get_block+0x1f9/0x820 [ 34.456887] ? _raw_spin_unlock+0x29/0x40 [ 34.461011] ? create_page_buffers+0xce/0x1c0 [ 34.465511] block_read_full_page+0x25e/0x8d0 [ 34.469986] ? hfsplus_file_extend+0xef0/0xef0 [ 34.474541] ? __lru_cache_add+0x178/0x250 [ 34.478752] ? __bread_gfp+0x2e0/0x2e0 [ 34.482613] ? add_to_page_cache_lru+0x136/0x2b0 [ 34.487340] ? add_to_page_cache_locked+0x40/0x40 [ 34.492157] ? alloc_pages_current+0x15d/0x260 [ 34.496711] do_read_cache_page+0x38e/0xc10 [ 34.501026] ? hfsplus_bmap+0x30/0x30 [ 34.504802] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 34.510225] hfsplus_block_free+0x177/0x560 [ 34.514520] hfsplus_free_extents+0x170/0x440 [ 34.518989] hfsplus_file_truncate+0xbc0/0xe80 [ 34.523543] ? hfsplus_get_block+0x820/0x820 [ 34.527926] ? up_write+0x17/0x60 [ 34.531354] ? unmap_mapping_range+0xe9/0x250 [ 34.535822] ? inode_newsize_ok+0x145/0x1c0 [ 34.540115] hfsplus_setattr+0x182/0x310 [ 34.544148] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 34.548629] notify_change+0x56b/0xd10 [ 34.552491] do_truncate+0xff/0x1a0 [ 34.556090] ? finish_open+0x170/0x170 [ 34.559953] ? apparmor_path_truncate+0x163/0x1d0 [ 34.564768] path_openat+0x1dcc/0x2970 [ 34.568629] ? path_lookupat+0x780/0x780 [ 34.572751] ? trace_hardirqs_on+0x10/0x10 [ 34.576960] ? trace_hardirqs_on+0x10/0x10 [ 34.581167] do_filp_open+0x179/0x3c0 [ 34.584962] ? may_open_dev+0xe0/0xe0 [ 34.588734] ? lock_downgrade+0x740/0x740 [ 34.592852] ? do_raw_spin_unlock+0x164/0x220 [ 34.597363] ? _raw_spin_unlock+0x29/0x40 [ 34.601483] ? __alloc_fd+0x1be/0x490 [ 34.605262] ? _raw_spin_unlock_irq+0x24/0x80 [ 34.609732] do_sys_open+0x296/0x410 [ 34.613417] ? filp_open+0x60/0x60 [ 34.616934] ? do_syscall_64+0x4c/0x640 [ 34.620879] ? compat_SyS_openat+0x30/0x30 [ 34.625105] do_syscall_64+0x1d5/0x640 [ 34.628988] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 34.634151] RIP: 0033:0x7f6914ced789 [ 34.637833] RSP: 002b:00007ffecc75d198 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 34.645514] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6914ced789 [ 34.652755] RDX: 00007f6914cabe03 RSI: 0000000000000000 RDI: 00000000200000c0 [ 34.660178] RBP: 00007f6914cad020 R08: 00000000000005e1 R09: 0000000000000000 [ 34.667452] R10: 00007ffecc75d060 R11: 0000000000000246 R12: 00007f6914cad0b0 [ 34.674694] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000