[ 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.10.59' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 35.840570] hfsplus: xattr searching failed [ 35.845343] [ 35.846961] ============================================ [ 35.852390] WARNING: possible recursive locking detected [ 35.857814] 4.14.302-syzkaller #0 Not tainted [ 35.862279] -------------------------------------------- [ 35.867706] syz-executor381/7979 is trying to acquire lock: [ 35.873388] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 35.883337] [ 35.883337] but task is already holding lock: [ 35.889277] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 35.899568] [ 35.899568] other info that might help us debug this: [ 35.906204] Possible unsafe locking scenario: [ 35.906204] [ 35.912286] CPU0 [ 35.914854] ---- [ 35.917410] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.922483] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.927557] [ 35.927557] *** DEADLOCK *** [ 35.927557] [ 35.933587] May be due to missing lock nesting notation [ 35.933587] [ 35.940494] 5 locks held by syz-executor381/7979: [ 35.945307] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 35.953690] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 35.963110] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 35.974006] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 35.983249] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 35.992408] [ 35.992408] stack backtrace: [ 35.996878] CPU: 0 PID: 7979 Comm: syz-executor381 Not tainted 4.14.302-syzkaller #0 [ 36.004726] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 36.014050] Call Trace: [ 36.016615] dump_stack+0x1b2/0x281 [ 36.020224] __lock_acquire.cold+0x180/0x97c [ 36.024610] ? register_lock_class+0x1d0/0x1180 [ 36.029254] ? trace_hardirqs_on+0x10/0x10 [ 36.033467] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 36.038811] ? save_trace+0xd6/0x290 [ 36.042504] ? __lock_acquire+0x2190/0x3f20 [ 36.046800] lock_acquire+0x170/0x3f0 [ 36.050576] ? hfsplus_get_block+0x1f9/0x820 [ 36.054967] ? hfsplus_get_block+0x1f9/0x820 [ 36.059353] __mutex_lock+0xc4/0x1310 [ 36.063126] ? hfsplus_get_block+0x1f9/0x820 [ 36.067506] ? hfsplus_get_block+0x1f9/0x820 [ 36.071886] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 36.077313] ? lock_acquire+0x170/0x3f0 [ 36.081271] ? create_page_buffers+0x14d/0x1c0 [ 36.085824] hfsplus_get_block+0x1f9/0x820 [ 36.090032] ? _raw_spin_unlock+0x29/0x40 [ 36.094167] ? create_page_buffers+0xce/0x1c0 [ 36.098634] block_read_full_page+0x25e/0x8d0 [ 36.103099] ? hfsplus_file_extend+0xef0/0xef0 [ 36.107650] ? __lru_cache_add+0x178/0x250 [ 36.111855] ? __bread_gfp+0x2e0/0x2e0 [ 36.115714] ? add_to_page_cache_lru+0x136/0x2b0 [ 36.120438] ? add_to_page_cache_locked+0x40/0x40 [ 36.125261] ? alloc_pages_current+0x15d/0x260 [ 36.129835] do_read_cache_page+0x38e/0xc10 [ 36.134133] ? hfsplus_bmap+0x30/0x30 [ 36.137912] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 36.143336] hfsplus_block_free+0x177/0x560 [ 36.147633] hfsplus_free_extents+0x170/0x440 [ 36.152102] hfsplus_file_truncate+0xbc0/0xe80 [ 36.156656] ? hfsplus_get_block+0x820/0x820 [ 36.161033] ? up_write+0x17/0x60 [ 36.164460] ? unmap_mapping_range+0xe9/0x250 [ 36.168925] ? inode_newsize_ok+0x145/0x1c0 [ 36.173216] hfsplus_setattr+0x182/0x310 [ 36.177247] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 36.181808] notify_change+0x56b/0xd10 [ 36.185665] do_truncate+0xff/0x1a0 [ 36.189270] ? finish_open+0x170/0x170 [ 36.193128] ? apparmor_path_truncate+0x163/0x1d0 [ 36.197945] path_openat+0x1dcc/0x2970 [ 36.201803] ? path_lookupat+0x780/0x780 [ 36.205837] ? trace_hardirqs_on+0x10/0x10 [ 36.210067] ? trace_hardirqs_on+0x10/0x10 [ 36.214272] do_filp_open+0x179/0x3c0 [ 36.218046] ? may_open_dev+0xe0/0xe0 [ 36.221818] ? lock_downgrade+0x740/0x740 [ 36.225940] ? do_raw_spin_unlock+0x164/0x220 [ 36.230405] ? _raw_spin_unlock+0x29/0x40 [ 36.234526] ? __alloc_fd+0x1be/0x490 [ 36.238297] ? _raw_spin_unlock_irq+0x24/0x80 [ 36.242768] do_sys_open+0x296/0x410 [ 36.246463] ? filp_open+0x60/0x60 [ 36.249976] ? do_syscall_64+0x4c/0x640 [ 36.253919] ? compat_SyS_openat+0x30/0x30 [ 36.258138] do_syscall_64+0x1d5/0x640 [ 36.261997] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 36.267157] RIP: 0033:0x7f94d247d779 [ 36.270854] RSP: 002b:00007ffe65802058 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 36.278533] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007f94d247d779 [ 36.285791] RDX: 00007f94d243bdf3 RSI: 0000000000000040 RDI: 0000000020000000 [ 36.293116] RBP: 00007f94d243d010 R08: 00000000000005e5 R09: 0000000000000000 [ 36.300356] R10: 00007ffe65801f20 R11: 0000000000000246 R12: 00007f94d243d0a0 [ 36.307595] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000