Warning: Permanently added '10.128.0.54' (ECDSA) to the list of known hosts. executing program [ 28.331543] hfsplus: xattr search failed [ 28.335930] [ 28.337547] ============================================ [ 28.342975] WARNING: possible recursive locking detected [ 28.348441] 4.14.301-syzkaller #0 Not tainted [ 28.352915] -------------------------------------------- [ 28.358351] syz-executor561/7997 is trying to acquire lock: [ 28.364039] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 28.373986] [ 28.373986] but task is already holding lock: [ 28.379933] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 28.390224] [ 28.390224] other info that might help us debug this: [ 28.396857] Possible unsafe locking scenario: [ 28.396857] [ 28.402884] CPU0 [ 28.405437] ---- [ 28.407991] lock(&HFSPLUS_I(inode)->extents_lock); [ 28.413064] lock(&HFSPLUS_I(inode)->extents_lock); [ 28.418137] [ 28.418137] *** DEADLOCK *** [ 28.418137] [ 28.424165] May be due to missing lock nesting notation [ 28.424165] [ 28.431062] 7 locks held by syz-executor561/7997: [ 28.435884] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 28.444274] #1: (&type->i_mutex_dir_key#7/1){+.+.}, at: [] do_unlinkat+0x201/0x5c0 [ 28.454132] #2: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] vfs_unlink+0xc0/0x470 [ 28.463472] #3: (&sbi->vh_mutex){+.+.}, at: [] hfsplus_unlink+0x112/0x6b0 [ 28.472111] #4: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 28.482832] #5: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 28.492078] #6: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 28.501259] [ 28.501259] stack backtrace: [ 28.505750] CPU: 0 PID: 7997 Comm: syz-executor561 Not tainted 4.14.301-syzkaller #0 [ 28.513609] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 28.522972] Call Trace: [ 28.525538] dump_stack+0x1b2/0x281 [ 28.529140] __lock_acquire.cold+0x180/0x97c [ 28.533524] ? register_lock_class+0x1d0/0x1180 [ 28.538173] ? trace_hardirqs_on+0x10/0x10 [ 28.542383] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 28.547718] ? save_trace+0xd6/0x290 [ 28.551404] ? __lock_acquire+0x2190/0x3f20 [ 28.555716] lock_acquire+0x170/0x3f0 [ 28.559492] ? hfsplus_get_block+0x1f9/0x820 [ 28.563875] ? hfsplus_get_block+0x1f9/0x820 [ 28.568260] __mutex_lock+0xc4/0x1310 [ 28.572036] ? hfsplus_get_block+0x1f9/0x820 [ 28.576415] ? hfsplus_get_block+0x1f9/0x820 [ 28.580800] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.586225] ? lock_acquire+0x170/0x3f0 [ 28.590181] ? create_page_buffers+0x14d/0x1c0 [ 28.594741] hfsplus_get_block+0x1f9/0x820 [ 28.598946] ? _raw_spin_unlock+0x29/0x40 [ 28.603085] ? create_page_buffers+0xce/0x1c0 [ 28.607571] block_read_full_page+0x25e/0x8d0 [ 28.612039] ? hfsplus_file_extend+0xef0/0xef0 [ 28.616597] ? __lru_cache_add+0x178/0x250 [ 28.620895] ? __bread_gfp+0x2e0/0x2e0 [ 28.624756] ? add_to_page_cache_lru+0x136/0x2b0 [ 28.629505] ? add_to_page_cache_locked+0x40/0x40 [ 28.634324] ? alloc_pages_current+0x15d/0x260 [ 28.638876] do_read_cache_page+0x38e/0xc10 [ 28.643171] ? hfsplus_bmap+0x30/0x30 [ 28.646944] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.652366] hfsplus_block_free+0x177/0x560 [ 28.656658] hfsplus_free_extents+0x170/0x440 [ 28.661124] hfsplus_file_truncate+0xbc0/0xe80 [ 28.665676] ? hfsplus_delete_cat+0x10c/0xd70 [ 28.670144] ? hfsplus_get_block+0x820/0x820 [ 28.674529] hfsplus_delete_inode+0x160/0x1f0 [ 28.678993] hfsplus_unlink+0x48c/0x6b0 [ 28.682937] ? hfsplus_symlink+0x2a0/0x2a0 [ 28.687142] ? lock_acquire+0x170/0x3f0 [ 28.691088] ? vfs_unlink+0xc0/0x470 [ 28.694769] vfs_unlink+0x230/0x470 [ 28.698369] do_unlinkat+0x30c/0x5c0 [ 28.702053] ? do_rmdir+0x3c0/0x3c0 [ 28.705651] ? _raw_spin_unlock_irq+0x5a/0x80 [ 28.710289] ? task_work_run+0xfd/0x190 [ 28.714236] ? do_syscall_64+0x4c/0x640 [ 28.718185] ? SyS_unlinkat+0x70/0x70 [ 28.721956] do_syscall_64+0x1d5/0x640 [ 28.725815] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.730974] RIP: 0033:0x7fa9c6d0b769 [ 28.734654] RSP: 002b:00007fffbe8cb598 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 [ 28.742335] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fa9c6d0b769 [ 28.749589] RDX: 00007fa9c6cc9de3 RSI: 0000000000000000 RDI: 0000000020001480 [ 28.756838] RBP: 00007fa9c6ccb000 R08: 00000000000005cd R09: 0000000000000000 [ 28.764086] R10: 00007fffbe8cb460 R11: 0000000000000246 R12: 00007fa9c6ccb090 [ 28.771332] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000