[ 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.204' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 42.833069] hfsplus: xattr searching failed [ 42.837821] [ 42.839434] ============================================ [ 42.844855] WARNING: possible recursive locking detected [ 42.850294] 4.14.302-syzkaller #0 Not tainted [ 42.854759] -------------------------------------------- [ 42.860182] syz-executor290/7956 is trying to acquire lock: [ 42.865859] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 42.875802] [ 42.875802] but task is already holding lock: [ 42.881739] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 42.892026] [ 42.892026] other info that might help us debug this: [ 42.898657] Possible unsafe locking scenario: [ 42.898657] [ 42.904681] CPU0 [ 42.907231] ---- [ 42.909781] lock(&HFSPLUS_I(inode)->extents_lock); [ 42.914853] lock(&HFSPLUS_I(inode)->extents_lock); [ 42.919934] [ 42.919934] *** DEADLOCK *** [ 42.919934] [ 42.925961] May be due to missing lock nesting notation [ 42.925961] [ 42.932857] 5 locks held by syz-executor290/7956: [ 42.937663] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 42.946044] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 42.955460] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 42.966186] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 42.975428] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 42.984582] [ 42.984582] stack backtrace: [ 42.989051] CPU: 1 PID: 7956 Comm: syz-executor290 Not tainted 4.14.302-syzkaller #0 [ 42.996898] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 43.006220] Call Trace: [ 43.008779] dump_stack+0x1b2/0x281 [ 43.012375] __lock_acquire.cold+0x180/0x97c [ 43.016757] ? register_lock_class+0x1d0/0x1180 [ 43.021402] ? trace_hardirqs_on+0x10/0x10 [ 43.025605] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 43.030936] ? save_trace+0xd6/0x290 [ 43.034621] ? __lock_acquire+0x2190/0x3f20 [ 43.038913] lock_acquire+0x170/0x3f0 [ 43.042683] ? hfsplus_get_block+0x1f9/0x820 [ 43.047060] ? hfsplus_get_block+0x1f9/0x820 [ 43.051437] __mutex_lock+0xc4/0x1310 [ 43.055216] ? hfsplus_get_block+0x1f9/0x820 [ 43.059599] ? hfsplus_get_block+0x1f9/0x820 [ 43.063978] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 43.069396] ? lock_acquire+0x170/0x3f0 [ 43.073341] ? create_page_buffers+0x14d/0x1c0 [ 43.077893] hfsplus_get_block+0x1f9/0x820 [ 43.082095] ? _raw_spin_unlock+0x29/0x40 [ 43.086212] ? create_page_buffers+0xce/0x1c0 [ 43.090678] block_read_full_page+0x25e/0x8d0 [ 43.095152] ? hfsplus_file_extend+0xef0/0xef0 [ 43.099707] ? __lru_cache_add+0x178/0x250 [ 43.103910] ? __bread_gfp+0x2e0/0x2e0 [ 43.107770] ? add_to_page_cache_lru+0x136/0x2b0 [ 43.112495] ? add_to_page_cache_locked+0x40/0x40 [ 43.117309] ? alloc_pages_current+0x15d/0x260 [ 43.121859] do_read_cache_page+0x38e/0xc10 [ 43.126152] ? hfsplus_bmap+0x30/0x30 [ 43.129924] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 43.135343] hfsplus_block_free+0x177/0x560 [ 43.139635] hfsplus_free_extents+0x170/0x440 [ 43.144109] hfsplus_file_truncate+0xbc0/0xe80 [ 43.148661] ? hfsplus_get_block+0x820/0x820 [ 43.153039] ? up_write+0x17/0x60 [ 43.156462] ? unmap_mapping_range+0xe9/0x250 [ 43.160927] ? inode_newsize_ok+0x145/0x1c0 [ 43.165217] hfsplus_setattr+0x182/0x310 [ 43.169247] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 43.173712] notify_change+0x56b/0xd10 [ 43.177576] do_truncate+0xff/0x1a0 [ 43.181170] ? finish_open+0x170/0x170 [ 43.185030] ? apparmor_path_truncate+0x163/0x1d0 [ 43.189847] path_openat+0x1dcc/0x2970 [ 43.193704] ? path_lookupat+0x780/0x780 [ 43.197733] ? trace_hardirqs_on+0x10/0x10 [ 43.201938] ? trace_hardirqs_on+0x10/0x10 [ 43.206143] do_filp_open+0x179/0x3c0 [ 43.209914] ? may_open_dev+0xe0/0xe0 [ 43.213684] ? lock_downgrade+0x740/0x740 [ 43.217801] ? do_raw_spin_unlock+0x164/0x220 [ 43.222268] ? _raw_spin_unlock+0x29/0x40 [ 43.226385] ? __alloc_fd+0x1be/0x490 [ 43.230154] ? _raw_spin_unlock_irq+0x24/0x80 [ 43.234617] do_sys_open+0x296/0x410 [ 43.238302] ? filp_open+0x60/0x60 [ 43.241816] ? do_syscall_64+0x4c/0x640 [ 43.245758] ? compat_SyS_openat+0x30/0x30 [ 43.249962] do_syscall_64+0x1d5/0x640 [ 43.253818] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 43.258976] RIP: 0033:0x7f6c1dbd3779 [ 43.262655] RSP: 002b:00007ffc38080068 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 43.270332] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007f6c1dbd3779 [ 43.277570] RDX: 00007f6c1db91df3 RSI: 0000000000000000 RDI: 0000000020000780 [ 43.284809] RBP: 00007f6c1db93010 R08: 00000000000005e1 R09: 0000000000000000 [ 43.292051] R10: 00007ffc3807ff30 R11: 0000000000000246 R12: 00007f6c1db930a0 [ 43.299289] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000