Warning: Permanently added '10.128.0.82' (ECDSA) to the list of known hosts. executing program [ 35.512726] [ 35.514380] ============================================ [ 35.519812] WARNING: possible recursive locking detected [ 35.525234] 4.19.211-syzkaller #0 Not tainted [ 35.529708] -------------------------------------------- [ 35.535139] syz-executor263/8123 is trying to acquire lock: [ 35.540821] 00000000dc3edcc9 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 35.550335] [ 35.550335] but task is already holding lock: [ 35.556279] 000000000ea40729 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 35.566224] [ 35.566224] other info that might help us debug this: [ 35.572862] Possible unsafe locking scenario: [ 35.572862] [ 35.578890] CPU0 [ 35.581450] ---- [ 35.584006] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.589081] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.594157] [ 35.594157] *** DEADLOCK *** [ 35.594157] [ 35.600193] May be due to missing lock nesting notation [ 35.600193] [ 35.607091] 4 locks held by syz-executor263/8123: [ 35.611905] #0: 000000008cc9c142 (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 35.619861] #1: 0000000069200b2a (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 35.628939] #2: 000000000ea40729 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 35.639321] #3: 0000000054a7ea75 (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 35.648051] [ 35.648051] stack backtrace: [ 35.652555] CPU: 0 PID: 8123 Comm: syz-executor263 Not tainted 4.19.211-syzkaller #0 [ 35.660408] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 35.669742] Call Trace: [ 35.672310] dump_stack+0x1fc/0x2ef [ 35.675925] __lock_acquire.cold+0x121/0x57e [ 35.680314] ? mark_held_locks+0xf0/0xf0 [ 35.684481] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 35.689834] ? save_trace+0xd6/0x290 [ 35.693538] ? __lock_acquire+0x22f9/0x3ff0 [ 35.697842] lock_acquire+0x170/0x3c0 [ 35.701623] ? hfsplus_get_block+0x292/0x960 [ 35.706009] ? hfsplus_get_block+0x292/0x960 [ 35.710392] __mutex_lock+0xd7/0x1190 [ 35.714258] ? hfsplus_get_block+0x292/0x960 [ 35.718650] ? check_preemption_disabled+0x41/0x280 [ 35.723670] ? hfsplus_get_block+0x292/0x960 [ 35.728057] ? mutex_trylock+0x1a0/0x1a0 [ 35.732098] ? create_page_buffers+0x212/0x350 [ 35.736656] ? alloc_page_buffers+0x2da/0x5c0 [ 35.741141] ? lock_downgrade+0x720/0x720 [ 35.745267] ? do_raw_spin_lock+0xcb/0x220 [ 35.749486] hfsplus_get_block+0x292/0x960 [ 35.753708] block_read_full_page+0x288/0xd10 [ 35.758184] ? hfsplus_file_extend+0xf40/0xf40 [ 35.762746] ? __bread_gfp+0x300/0x300 [ 35.766615] ? add_to_page_cache_locked+0x40/0x40 [ 35.771439] do_read_cache_page+0x533/0x1170 [ 35.775827] ? hfsplus_bmap+0x30/0x30 [ 35.779612] hfsplus_block_free+0x18b/0x5d0 [ 35.783911] ? __mutex_unlock_slowpath+0xea/0x610 [ 35.788730] hfsplus_free_extents+0x228/0x520 [ 35.793203] hfsplus_file_truncate+0xd96/0x1040 [ 35.797847] ? hfsplus_get_block+0x960/0x960 [ 35.802231] ? up_write+0x18/0x150 [ 35.805754] ? unmap_mapping_pages+0x121/0x2b0 [ 35.810317] ? inode_newsize_ok+0x121/0x1e0 [ 35.814615] hfsplus_setattr+0x1e7/0x310 [ 35.818651] ? hfsplus_file_open+0x140/0x140 [ 35.823031] notify_change+0x70b/0xfc0 [ 35.826901] do_truncate+0x134/0x1f0 [ 35.830592] ? dentry_open+0x1d0/0x1d0 [ 35.834456] ? apparmor_path_truncate+0x183/0x200 [ 35.839278] ? inode_permission+0x3d/0x140 [ 35.843487] path_openat+0x2308/0x2df0 [ 35.847352] ? path_lookupat+0x8d0/0x8d0 [ 35.851388] ? mark_held_locks+0xf0/0xf0 [ 35.855422] ? __lock_acquire+0x6de/0x3ff0 [ 35.859633] do_filp_open+0x18c/0x3f0 [ 35.863409] ? may_open_dev+0xf0/0xf0 [ 35.867186] ? lock_downgrade+0x720/0x720 [ 35.871312] ? lock_acquire+0x170/0x3c0 [ 35.875262] ? __alloc_fd+0x34/0x570 [ 35.878954] ? do_raw_spin_unlock+0x171/0x230 [ 35.883430] ? _raw_spin_unlock+0x29/0x40 [ 35.887554] ? __alloc_fd+0x28d/0x570 [ 35.891336] do_sys_open+0x3b3/0x520 [ 35.895029] ? filp_open+0x70/0x70 [ 35.898546] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.903887] ? trace_hardirqs_off_caller+0x6e/0x210 [ 35.908890] ? do_syscall_64+0x21/0x620 [ 35.912841] do_syscall_64+0xf9/0x620 [ 35.916629] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.921798] RIP: 0033:0x7f3759c78a89 [ 35.925493] 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.944372] RSP: 002b:00007ffc4d325b68 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 35.952056] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3759c78a89 [ 35.959307] RDX: 00007f3759c36e73 RSI: 0000000000000000 RDI: 0000000020000080 [ 35.966553] RBP: 00007f3759c38090 R08: 000000000000060a R09: 0000000000000000 [ 35.973805] R10: 00007ffc4d325a30 R11: 0000000000000246 R12: 00007f3759c38120 [ 35.981054] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 35.989711] hfsplus: request for non-existent node 31668 in B*Tree [ 35.996069] hfsplus: request for non-existent node 31668 in B*Tree [ 36.002407] hfsplus: request for non-existent node 31668 in B*Tree [ 36.009098] hfsplus: request for non-existent node 31668 in B*Tre