Warning: Permanently added '10.128.1.173' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 34.667563] hfsplus: xattr searching failed [ 34.672380] [ 34.674108] ============================================ [ 34.679625] WARNING: possible recursive locking detected [ 34.685049] 4.19.211-syzkaller #0 Not tainted [ 34.689521] -------------------------------------------- [ 34.694961] syz-executor230/8085 is trying to acquire lock: [ 34.700653] 0000000014ad2508 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 34.710181] [ 34.710181] but task is already holding lock: [ 34.716137] 000000004c8e57b8 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 34.726090] [ 34.726090] other info that might help us debug this: [ 34.732730] Possible unsafe locking scenario: [ 34.732730] [ 34.738763] CPU0 [ 34.741320] ---- [ 34.743872] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.748946] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.754022] [ 34.754022] *** DEADLOCK *** [ 34.754022] [ 34.760056] May be due to missing lock nesting notation [ 34.760056] [ 34.766957] 4 locks held by syz-executor230/8085: [ 34.771770] #0: 00000000715df61d (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 34.779724] #1: 000000005a738c52 (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 34.788801] #2: 000000004c8e57b8 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 34.799183] #3: 00000000fe152d3a (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 34.807911] [ 34.807911] stack backtrace: [ 34.812385] CPU: 1 PID: 8085 Comm: syz-executor230 Not tainted 4.19.211-syzkaller #0 [ 34.820236] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 34.829563] Call Trace: [ 34.832164] dump_stack+0x1fc/0x2ef [ 34.835770] __lock_acquire.cold+0x121/0x57e [ 34.840157] ? mark_held_locks+0xf0/0xf0 [ 34.844193] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 34.849532] ? save_trace+0xd6/0x290 [ 34.853221] ? __lock_acquire+0x22f9/0x3ff0 [ 34.857519] lock_acquire+0x170/0x3c0 [ 34.861295] ? hfsplus_get_block+0x292/0x960 [ 34.865681] ? hfsplus_get_block+0x292/0x960 [ 34.870063] __mutex_lock+0xd7/0x1190 [ 34.873842] ? hfsplus_get_block+0x292/0x960 [ 34.878229] ? check_preemption_disabled+0x41/0x280 [ 34.883220] ? hfsplus_get_block+0x292/0x960 [ 34.888043] ? mutex_trylock+0x1a0/0x1a0 [ 34.892083] ? create_page_buffers+0x212/0x350 [ 34.896641] ? alloc_page_buffers+0x2da/0x5c0 [ 34.901119] ? lock_downgrade+0x720/0x720 [ 34.905240] ? do_raw_spin_lock+0xcb/0x220 [ 34.909451] hfsplus_get_block+0x292/0x960 [ 34.913664] block_read_full_page+0x288/0xd10 [ 34.918134] ? hfsplus_file_extend+0xf40/0xf40 [ 34.922708] ? __bread_gfp+0x300/0x300 [ 34.926574] ? add_to_page_cache_locked+0x40/0x40 [ 34.931394] do_read_cache_page+0x533/0x1170 [ 34.935786] ? hfsplus_bmap+0x30/0x30 [ 34.939560] hfsplus_block_free+0x18b/0x5d0 [ 34.943856] ? __mutex_unlock_slowpath+0xea/0x610 [ 34.948674] hfsplus_free_extents+0x228/0x520 [ 34.953182] hfsplus_file_truncate+0xd96/0x1040 [ 34.957834] ? hfsplus_get_block+0x960/0x960 [ 34.962226] ? up_write+0x18/0x150 [ 34.965744] ? unmap_mapping_pages+0x121/0x2b0 [ 34.970302] ? inode_newsize_ok+0x121/0x1e0 [ 34.974601] hfsplus_setattr+0x1e7/0x310 [ 34.978641] ? hfsplus_file_open+0x140/0x140 [ 34.983121] notify_change+0x70b/0xfc0 [ 34.986988] do_truncate+0x134/0x1f0 [ 34.990675] ? dentry_open+0x1d0/0x1d0 [ 34.994540] ? apparmor_path_truncate+0x183/0x200 [ 34.999357] ? inode_permission+0x3d/0x140 [ 35.003570] path_openat+0x2308/0x2df0 [ 35.007437] ? path_lookupat+0x8d0/0x8d0 [ 35.011475] ? mark_held_locks+0xf0/0xf0 [ 35.015512] ? __lock_acquire+0x6de/0x3ff0 [ 35.019722] do_filp_open+0x18c/0x3f0 [ 35.023497] ? may_open_dev+0xf0/0xf0 [ 35.027275] ? lock_downgrade+0x720/0x720 [ 35.031396] ? lock_acquire+0x170/0x3c0 [ 35.035351] ? __alloc_fd+0x34/0x570 [ 35.039039] ? do_raw_spin_unlock+0x171/0x230 [ 35.043509] ? _raw_spin_unlock+0x29/0x40 [ 35.047630] ? __alloc_fd+0x28d/0x570 [ 35.051416] do_sys_open+0x3b3/0x520 [ 35.055155] ? filp_open+0x70/0x70 [ 35.058672] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.064015] ? trace_hardirqs_off_caller+0x6e/0x210 [ 35.069007] ? do_syscall_64+0x21/0x620 [ 35.073044] do_syscall_64+0xf9/0x620 [ 35.076825] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.081992] RIP: 0033:0x7f5c14a13779 [ 35.085681] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 35.104556] RSP: 002b:00007ffdc7235d68 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 35.112237] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f5c14a13779 [