[ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.100' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 28.683386] hfsplus: xattr searching failed [ 28.688308] [ 28.689932] ============================================ [ 28.695358] WARNING: possible recursive locking detected [ 28.700784] 4.14.302-syzkaller #0 Not tainted [ 28.705247] -------------------------------------------- [ 28.710667] syz-executor335/7964 is trying to acquire lock: [ 28.716343] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 28.726285] [ 28.726285] but task is already holding lock: [ 28.732223] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 28.742512] [ 28.742512] other info that might help us debug this: [ 28.749153] Possible unsafe locking scenario: [ 28.749153] [ 28.755181] CPU0 [ 28.757736] ---- [ 28.760288] lock(&HFSPLUS_I(inode)->extents_lock); [ 28.765365] lock(&HFSPLUS_I(inode)->extents_lock); [ 28.770437] [ 28.770437] *** DEADLOCK *** [ 28.770437] [ 28.776461] May be due to missing lock nesting notation [ 28.776461] [ 28.783353] 5 locks held by syz-executor335/7964: [ 28.788161] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 28.796540] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 28.805960] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 28.816679] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 28.825923] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 28.835078] [ 28.835078] stack backtrace: [ 28.839546] CPU: 1 PID: 7964 Comm: syz-executor335 Not tainted 4.14.302-syzkaller #0 [ 28.847393] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 28.856719] Call Trace: [ 28.859279] dump_stack+0x1b2/0x281 [ 28.862877] __lock_acquire.cold+0x180/0x97c [ 28.867257] ? register_lock_class+0x1d0/0x1180 [ 28.871894] ? trace_hardirqs_on+0x10/0x10 [ 28.876101] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 28.881446] ? save_trace+0xd6/0x290 [ 28.885128] ? __lock_acquire+0x2190/0x3f20 [ 28.889423] lock_acquire+0x170/0x3f0 [ 28.893202] ? hfsplus_get_block+0x1f9/0x820 [ 28.897581] ? hfsplus_get_block+0x1f9/0x820 [ 28.901959] __mutex_lock+0xc4/0x1310 [ 28.905728] ? hfsplus_get_block+0x1f9/0x820 [ 28.910108] ? hfsplus_get_block+0x1f9/0x820 [ 28.914485] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.919904] ? lock_acquire+0x170/0x3f0 [ 28.923851] ? create_page_buffers+0x14d/0x1c0 [ 28.928403] hfsplus_get_block+0x1f9/0x820 [ 28.932607] ? _raw_spin_unlock+0x29/0x40 [ 28.936725] ? create_page_buffers+0xce/0x1c0 [ 28.941193] block_read_full_page+0x25e/0x8d0 [ 28.945660] ? hfsplus_file_extend+0xef0/0xef0 [ 28.950218] ? __lru_cache_add+0x178/0x250 [ 28.954420] ? __bread_gfp+0x2e0/0x2e0 [ 28.958278] ? add_to_page_cache_lru+0x136/0x2b0 [ 28.963006] ? add_to_page_cache_locked+0x40/0x40 [ 28.967822] ? alloc_pages_current+0x15d/0x260 [ 28.972376] do_read_cache_page+0x38e/0xc10 [ 28.976666] ? hfsplus_bmap+0x30/0x30 [ 28.980439] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.985858] hfsplus_block_free+0x177/0x560 [ 28.990152] hfsplus_free_extents+0x170/0x440 [ 28.994620] hfsplus_file_truncate+0xbc0/0xe80 [ 28.999175] ? hfsplus_get_block+0x820/0x820 [ 29.003555] ? up_write+0x17/0x60 [ 29.006980] ? unmap_mapping_range+0xe9/0x250 [ 29.011453] ? inode_newsize_ok+0x145/0x1c0 [ 29.015745] hfsplus_setattr+0x182/0x310 [ 29.019776] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 29.024241] notify_change+0x56b/0xd10 [ 29.028098] do_truncate+0xff/0x1a0 [ 29.031693] ? finish_open+0x170/0x170 [ 29.035557] ? apparmor_path_truncate+0x163/0x1d0 [ 29.040370] path_openat+0x1dcc/0x2970 [ 29.044231] ? path_lookupat+0x780/0x780 [ 29.048266] ? trace_hardirqs_on+0x10/0x10 [ 29.052472] ? trace_hardirqs_on+0x10/0x10 [ 29.056678] do_filp_open+0x179/0x3c0 [ 29.060448] ? may_open_dev+0xe0/0xe0 [ 29.064228] ? lock_downgrade+0x740/0x740 [ 29.068346] ? do_raw_spin_unlock+0x164/0x220 [ 29.072814] ? _raw_spin_unlock+0x29/0x40 [ 29.076932] ? __alloc_fd+0x1be/0x490 [ 29.080705] ? _raw_spin_unlock_irq+0x24/0x80 [ 29.085257] do_sys_open+0x296/0x410 [ 29.088944] ? filp_open+0x60/0x60 [ 29.092464] ? do_syscall_64+0x4c/0x640 [ 29.096408] ? compat_SyS_openat+0x30/0x30 [ 29.100611] do_syscall_64+0x1d5/0x640 [ 29.104470] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 29.109628] RIP: 0033:0x7ff69cd76789 [ 29.113309] RSP: 002b:00007ffc531a0078 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 29.120990] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff69cd76789 [ 29.128229] RDX: 00007ff69cd34e03 RSI: 00000000000000b0 RDI: 0000000020000280 [ 29.135468] RBP: 00007ff69cd36020 R08: 00000000000005e1 R09: 0000000000000000 [ 29.142708] R10: 00007ffc5319ff40 R11: 0000000000000246 R12: 00007ff69cd360b0 [ 29.149946] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000