============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz-executor/4194 is trying to acquire lock: ffff88807b191548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x38f/0x1520 fs/hfsplus/extents.c:260 but task is already holding lock: ffff888055398108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2c2/0xb80 fs/hfsplus/extents.c:574 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&HFSPLUS_I(inode)->extents_lock); lock(&HFSPLUS_I(inode)->extents_lock); *** DEADLOCK *** May be due to missing lock nesting notation 6 locks held by syz-executor/4194: #0: ffff88801bef2460 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x3d/0x90 fs/namespace.c:386 #1: ffff88807b191e00 (&type->i_mutex_dir_key#13/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:822 [inline] #1: ffff88807b191e00 (&type->i_mutex_dir_key#13/1){+.+.}-{3:3}, at: do_unlinkat+0x1c8/0x710 fs/namei.c:4339 #2: ffff888055398300 (&sb->s_type->i_mutex_key#25){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #2: ffff888055398300 (&sb->s_type->i_mutex_key#25){++++}-{3:3}, at: vfs_unlink+0xda/0x600 fs/namei.c:4277 #3: ffff88805f1c0198 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x189/0x800 fs/hfsplus/dir.c:370 #4: ffff888055398108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2c2/0xb80 fs/hfsplus/extents.c:574 #5: ffff88805f1c00f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xc1/0x4d0 fs/hfsplus/bitmap.c:182 stack backtrace: CPU: 1 PID: 4194 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 __lock_acquire+0x1247/0x7b50 kernel/locking/lockdep.c:-1 lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623 __mutex_lock_common+0x1e5/0x2400 kernel/locking/mutex.c:596 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743 hfsplus_get_block+0x38f/0x1520 fs/hfsplus/extents.c:260 block_read_full_page+0x308/0xd20 fs/buffer.c:2290 do_read_cache_page+0x882/0x1010 mm/filemap.c:-1 read_mapping_page include/linux/pagemap.h:515 [inline] hfsplus_block_free+0x125/0x4d0 fs/hfsplus/bitmap.c:185 hfsplus_free_extents+0x10d/0xa50 fs/hfsplus/extents.c:360 hfsplus_file_truncate+0x770/0xb80 fs/hfsplus/extents.c:589 hfsplus_delete_inode+0x17c/0x230 fs/hfsplus/inode.c:-1 hfsplus_unlink+0x52b/0x800 fs/hfsplus/dir.c:405 vfs_unlink+0x376/0x600 fs/namei.c:4288 do_unlinkat+0x391/0x710 fs/namei.c:4356 __do_sys_unlink fs/namei.c:4404 [inline] __se_sys_unlink fs/namei.c:4402 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4402 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f8ef575a1c7 Code: 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffe8496b6c8 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f8ef575a1c7 RDX: 00007ffe8496b6f0 RSI: 00007ffe8496b780 RDI: 00007ffe8496b780 RBP: 00007ffe8496b780 R08: 00007ffe8496c780 R09: 00000000ffffffff R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffe8496c870 R13: 00007f8ef57f1474 R14: 00000000000176bd R15: 00007ffe8496d940 hfsplus: unable to mark blocks free: error -5 hfsplus: can't free extent hfsplus: unable to mark blocks free: error -5 hfsplus: can't free extent hfsplus: unable to mark blocks free: error -5 hfsplus: can't free extent hfsplus: invalid extended attribute record hfsplus: unable to mark blocks free: error -5 hfsplus: can't free extent hfsplus: unable to mark blocks free: error -5 hfsplus: can't free extent