Warning: Permanently added '[localhost]:34017' (ED25519) to the list of known hosts. executing program syzkaller login: [ 94.854530][ T5103] loop0: detected capacity change from 0 to 1024 [ 94.941429][ T5102] [ 94.942480][ T5102] ============================================ [ 94.945112][ T5102] WARNING: possible recursive locking detected [ 94.948378][ T5102] 6.12.0-rc3-syzkaller-00183-g6efbea77b390 #0 Not tainted [ 94.952308][ T5102] -------------------------------------------- [ 94.955032][ T5102] syz-executor420/5102 is trying to acquire lock: [ 94.958058][ T5102] ffff88803fd79548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x383/0x14f0 [ 94.964541][ T5102] [ 94.964541][ T5102] but task is already holding lock: [ 94.968098][ T5102] ffff88803fd7b048 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x30a/0xc70 [ 94.972794][ T5102] [ 94.972794][ T5102] other info that might help us debug this: [ 94.976111][ T5102] Possible unsafe locking scenario: [ 94.976111][ T5102] [ 94.979787][ T5102] CPU0 [ 94.981872][ T5102] ---- [ 94.983728][ T5102] lock(&HFSPLUS_I(inode)->extents_lock); [ 94.986504][ T5102] lock(&HFSPLUS_I(inode)->extents_lock); [ 94.988775][ T5102] [ 94.988775][ T5102] *** DEADLOCK *** [ 94.988775][ T5102] [ 94.992012][ T5102] May be due to missing lock nesting notation [ 94.992012][ T5102] [ 94.995242][ T5102] 6 locks held by syz-executor420/5102: [ 94.997537][ T5102] #0: ffff88803e32e420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 95.001950][ T5102] #1: ffff88803fd79df8 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x26a/0x830 [ 95.006051][ T5102] #2: ffff88803fd7b238 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_unlink+0xe4/0x650 [ 95.009875][ T5102] #3: ffff888000fa6198 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x161/0x790 [ 95.013424][ T5102] #4: ffff88803fd7b048 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x30a/0xc70 [ 95.019075][ T5102] #5: ffff888000fa60f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xbb/0x4e0 [ 95.023802][ T5102] [ 95.023802][ T5102] stack backtrace: [ 95.026223][ T5102] CPU: 0 UID: 0 PID: 5102 Comm: syz-executor420 Not tainted 6.12.0-rc3-syzkaller-00183-g6efbea77b390 #0 [ 95.030522][ T5102] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 95.034474][ T5102] Call Trace: [ 95.035775][ T5102] [ 95.037074][ T5102] dump_stack_lvl+0x241/0x360 [ 95.039750][ T5102] ? __pfx_dump_stack_lvl+0x10/0x10 [ 95.042305][ T5102] ? __pfx__printk+0x10/0x10 [ 95.044264][ T5102] ? lockdep_unlock+0x16a/0x300 [ 95.046250][ T5102] print_deadlock_bug+0x483/0x620 [ 95.048125][ T5102] validate_chain+0x15e2/0x5920 [ 95.050131][ T5102] ? stack_trace_save+0x118/0x1d0 [ 95.052114][ T5102] ? __pfx_stack_trace_save+0x10/0x10 [ 95.054319][ T5102] ? check_noncircular+0x259/0x4a0 [ 95.056565][ T5102] ? __pfx_validate_chain+0x10/0x10 [ 95.058948][ T5102] ? __pfx_check_noncircular+0x10/0x10 [ 95.061003][ T5102] ? lockdep_unlock+0x16a/0x300 [ 95.062888][ T5102] ? __pfx_lockdep_unlock+0x10/0x10 [ 95.064956][ T5102] ? add_lock_to_list+0x1e8/0x2f0 [ 95.066979][ T5102] ? look_up_lock_class+0x77/0x170 [ 95.069584][ T5102] ? register_lock_class+0x102/0x980 [ 95.072600][ T5102] ? validate_chain+0x15c0/0x5920 [ 95.075404][ T5102] ? is_bpf_text_address+0x285/0x2a0 [ 95.077572][ T5102] ? __pfx_register_lock_class+0x10/0x10 [ 95.079742][ T5102] ? mark_lock+0x9a/0x360 [ 95.081743][ T5102] __lock_acquire+0x1384/0x2050 [ 95.083655][ T5102] lock_acquire+0x1ed/0x550 [ 95.085315][ T5102] ? hfsplus_get_block+0x383/0x14f0 [ 95.087329][ T5102] ? __pfx_lock_acquire+0x10/0x10 [ 95.089266][ T5102] ? __pfx___might_resched+0x10/0x10 [ 95.091399][ T5102] ? create_empty_buffers+0x3a/0x740 [ 95.093908][ T5102] ? __pfx_register_lock_class+0x10/0x10 [ 95.096571][ T5102] ? do_read_cache_page+0x30/0x200 [ 95.098788][ T5102] ? hfsplus_free_extents+0x17a/0xae0 [ 95.100949][ T5102] ? hfsplus_file_truncate+0x86c/0xc70 [ 95.103126][ T5102] __mutex_lock+0x136/0xd70 [ 95.104873][ T5102] ? hfsplus_get_block+0x383/0x14f0 [ 95.106743][ T5102] ? hfsplus_get_block+0x383/0x14f0 [ 95.108719][ T5102] ? __pfx___mutex_lock+0x10/0x10 [ 95.111044][ T5102] hfsplus_get_block+0x383/0x14f0 [ 95.113924][ T5102] ? __pfx_hfsplus_get_block+0x10/0x10 [ 95.116480][ T5102] ? _raw_spin_unlock+0x28/0x50 [ 95.118632][ T5102] ? create_empty_buffers+0x53e/0x740 [ 95.120661][ T5102] ? rcu_is_watching+0x15/0xb0 [ 95.122786][ T5102] block_read_full_folio+0x418/0xcd0 [ 95.125123][ T5102] ? __pfx_hfsplus_get_block+0x10/0x10 [ 95.127214][ T5102] ? __pfx_block_read_full_folio+0x10/0x10 [ 95.129338][ T5102] ? folio_add_lru+0x28f/0x870 [ 95.131173][ T5102] filemap_read_folio+0x14b/0x630 [ 95.133198][ T5102] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 95.135900][ T5102] ? __pfx_filemap_read_folio+0x10/0x10 [ 95.138787][ T5102] ? trace_contention_end+0x3c/0x120 [ 95.141420][ T5102] ? hfsplus_block_free+0xbb/0x4e0 [ 95.143822][ T5102] do_read_cache_folio+0x3f5/0x850 [ 95.145839][ T5102] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 95.147981][ T5102] do_read_cache_page+0x30/0x200 [ 95.149810][ T5102] hfsplus_block_free+0x128/0x4e0 [ 95.152075][ T5102] ? hfsplus_find_init+0x85/0x1c0 [ 95.154206][ T5102] hfsplus_free_extents+0x17a/0xae0 [ 95.156681][ T5102] hfsplus_file_truncate+0x86c/0xc70 [ 95.159491][ T5102] ? __pfx_hfsplus_file_truncate+0x10/0x10 [ 95.162230][ T5102] ? hfsplus_unlink+0x161/0x790 [ 95.163950][ T5102] hfsplus_delete_inode+0x174/0x220 [ 95.165665][ T5102] hfsplus_unlink+0x512/0x790 [ 95.167356][ T5102] ? generic_permission+0x1e0/0x550 [ 95.169430][ T5102] ? __pfx_hfsplus_unlink+0x10/0x10 [ 95.171711][ T5102] ? down_write+0x18c/0x220 [ 95.173943][ T5102] ? bpf_lsm_inode_unlink+0x9/0x10 [ 95.176406][ T5102] ? security_inode_unlink+0xd9/0x340 [ 95.178624][ T5102] vfs_unlink+0x365/0x650 [ 95.180426][ T5102] do_unlinkat+0x4ae/0x830 [ 95.181990][ T5102] ? __pfx_do_unlinkat+0x10/0x10 [ 95.183737][ T5102] ? __might_fault+0xaa/0x120 [ 95.185535][ T5102] ? __might_fault+0xc6/0x120 [ 95.187629][ T5102] ? strncpy_from_user+0x131/0x250 [ 95.190019][ T5102] ? getname_flags+0x1e3/0x540 [ 95.192412][ T5102] __x64_sys_unlink+0x47/0x50 [ 95.194595][ T5102] do_syscall_64+0xf3/0x230 [ 95.196235][ T5102] ? clear_bhb_loop+0x35/0x90 [ 95.197779][ T5102] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 95.199694][ T5102] RIP: 0033:0x7f6f0c50db17 [ 95.201116][ T5102] Code: 73 01 c3 48 c7 c1 b8 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 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 95.207917][ T5102] RSP: 002b:00007ffc55ede8d8 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 [ 95.211851][ T5102] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6f0c50db17 [ 95.216191][ T5102] RDX: 00007ffc55ede900 RSI: 00007ffc55ede990 RDI: 00007ffc55ede990 [ 95.219635][ T5102] RBP: 00007ffc55ede990 R08: 0000000000000000 R09: 0000000000000000 [ 95.223119][ T5102] R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffc55edfa80 [ 95.226702][ T5102] R13: 000055557953b700 R14: 0000000000000001 R15: 431bde82d7b634db [ 95.230811][ T5102] [ 95.538987][ T5102] hfsplus: unable to mark blocks free: error -5 [ 95.541822][ T5102] hfsplus: can't free extent [ 95.549058][ T5102] hfsplus: unable to mark blocks free: error -5 [ 95.551721][ T5102] hfsplus: can't free extent [ 97.102483][ T785] cfg80211: failed to load regulatory.db VM DIAGNOSIS: 03:44:08 Registers: info registers vcpu 0 CPU#0 RAX=0000000000000033 RBX=ffffffff9a715e60 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc90002d3e710 R8 =ffffffff854a54bb R9 =1ffff11006769046 R10=dffffc0000000000 R11=ffffffff854a5470 R12=dffffc0000000000 R13=ffffffff9a410f01 R14=0000000000000033 R15=00000000000003f8 RIP=ffffffff854a54ee RFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 ffffffff 00c00000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 ffffffff 00c00000 FS =0000 0000555579532380 ffffffff 00c00000 GS =0000 ffff88801fc00000 ffffffff 00c00000 LDT=0000 0000000000000000 ffffffff 00c00000 TR =0040 fffffe0000003000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000001000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=0000555579543738 CR3=000000003fe18000 CR4=00352ef0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000fffe0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 Opmask00=0000000040000021 Opmask01=0000000000000001 Opmask02=00000000fff7ffff Opmask03=0000000000000000 Opmask04=0000000000000000 Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffc55ede8e0 0000003000000018 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ffffffffffffffff ffffffff0f0e0d0c ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM08=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM09=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM10=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM13=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM14=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM15=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM16=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM17=0000000000000000 0000000000000000 0000000000000000 0000000000000000 2525252525252525 2525252525252525 2525252525252525 2525252525252525 ZMM18=0000000000000000 0000000000000000 0000000000000000 0000000000000000 2e006a64615f6572 6f63735f6d6f6f2f 666c65732f636f72 702f003030303100 ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0b004f41445f4057 4a46565f484a4a0a 434940560a464a57 550a001515151400 ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM21=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM22=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM23=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM24=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM25=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM26=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM27=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM28=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM29=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM30=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM31=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000