Warning: Permanently added '10.128.10.18' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 31.985713] hfsplus: xattr search failed [ 31.990264] [ 31.991892] ============================================ [ 31.997325] WARNING: possible recursive locking detected [ 32.002767] 4.19.211-syzkaller #0 Not tainted [ 32.007248] -------------------------------------------- [ 32.012678] syz-executor576/8098 is trying to acquire lock: [ 32.018359] 0000000008fabb1b (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 32.027876] [ 32.027876] but task is already holding lock: [ 32.033822] 000000007917c690 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 32.043772] [ 32.043772] other info that might help us debug this: [ 32.050407] Possible unsafe locking scenario: [ 32.050407] [ 32.056436] CPU0 [ 32.058991] ---- [ 32.061545] lock(&HFSPLUS_I(inode)->extents_lock); [ 32.066622] lock(&HFSPLUS_I(inode)->extents_lock); [ 32.071702] [ 32.071702] *** DEADLOCK *** [ 32.071702] [ 32.077744] May be due to missing lock nesting notation [ 32.077744] [ 32.084652] 6 locks held by syz-executor576/8098: [ 32.089464] #0: 00000000ce50d166 (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 32.097420] #1: 00000000804cd03a (&type->i_mutex_dir_key#7/1){+.+.}, at: do_unlinkat+0x27d/0x660 [ 32.106418] #2: 00000000e1f57ba6 (&sb->s_type->i_mutex_key#17){+.+.}, at: vfs_unlink+0xca/0x4e0 [ 32.115325] #3: 000000003de9d4af (&sbi->vh_mutex){+.+.}, at: hfsplus_unlink+0x140/0x820 [ 32.123534] #4: 000000007917c690 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 32.133914] #5: 000000003ae8d96f (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 32.142650] [ 32.142650] stack backtrace: [ 32.147126] CPU: 0 PID: 8098 Comm: syz-executor576 Not tainted 4.19.211-syzkaller #0 [ 32.154980] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 32.164306] Call Trace: [ 32.166883] dump_stack+0x1fc/0x2ef [ 32.170490] __lock_acquire.cold+0x121/0x57e [ 32.174879] ? mark_held_locks+0xf0/0xf0 [ 32.178916] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 32.184254] ? save_trace+0xd6/0x290 [ 32.187944] ? __lock_acquire+0x22f9/0x3ff0 [ 32.192244] lock_acquire+0x170/0x3c0 [ 32.196023] ? hfsplus_get_block+0x292/0x960 [ 32.200407] ? hfsplus_get_block+0x292/0x960 [ 32.204796] __mutex_lock+0xd7/0x1190 [ 32.208572] ? hfsplus_get_block+0x292/0x960 [ 32.212958] ? check_preemption_disabled+0x41/0x280 [ 32.217949] ? hfsplus_get_block+0x292/0x960 [ 32.222331] ? mutex_trylock+0x1a0/0x1a0 [ 32.226368] ? create_page_buffers+0x212/0x350 [ 32.230924] ? alloc_page_buffers+0x2da/0x5c0 [ 32.235395] ? lock_downgrade+0x720/0x720 [ 32.239517] ? do_raw_spin_lock+0xcb/0x220 [ 32.243734] hfsplus_get_block+0x292/0x960 [ 32.247947] block_read_full_page+0x288/0xd10 [ 32.252420] ? hfsplus_file_extend+0xf40/0xf40 [ 32.256975] ? __bread_gfp+0x300/0x300 [ 32.260838] ? add_to_page_cache_locked+0x40/0x40 [ 32.265659] do_read_cache_page+0x533/0x1170 [ 32.270042] ? hfsplus_bmap+0x30/0x30 [ 32.273817] hfsplus_block_free+0x18b/0x5d0 [ 32.278112] ? __mutex_unlock_slowpath+0xea/0x610 [ 32.282930] hfsplus_free_extents+0x228/0x520 [ 32.287403] hfsplus_file_truncate+0xd96/0x1040 [ 32.292049] ? hfsplus_delete_cat+0x129/0xe30 [ 32.296518] ? hfsplus_get_block+0x960/0x960 [ 32.300904] ? common_perm+0x4be/0x800 [ 32.304768] hfsplus_delete_inode+0x18d/0x220 [ 32.309238] hfsplus_unlink+0x595/0x820 [ 32.313190] ? hfsplus_symlink+0x2e0/0x2e0 [ 32.317400] ? lock_acquire+0x170/0x3c0 [ 32.321349] ? vfs_unlink+0xca/0x4e0 [ 32.325040] vfs_unlink+0x27d/0x4e0 [ 32.328641] do_unlinkat+0x3b8/0x660 [ 32.332329] ? __ia32_sys_rmdir+0x40/0x40 [ 32.336451] ? strncpy_from_user+0x2a2/0x350 [ 32.340836] ? getname_flags+0x25b/0x590 [ 32.344871] do_syscall_64+0xf9/0x620 [ 32.348647] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.353811] RIP: 0033:0x7f2455d70769 [ 32.357500] 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 [ 32.376375] RSP: 002b:00007ffd66f60b38 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 [ 32.384056] RAX: ffffffffffffffda RBX