Warning: Permanently added '[localhost]:35889' (ED25519) to the list of known hosts. executing program syzkaller login: [ 93.764421][ T5097] loop0: detected capacity change from 0 to 1024 [ 93.831662][ T5097] hfsplus: xattr searching failed [ 93.850372][ T5097] [ 93.851374][ T5097] ============================================ [ 93.853763][ T5097] WARNING: possible recursive locking detected [ 93.856199][ T5097] 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #0 Not tainted [ 93.859982][ T5097] -------------------------------------------- [ 93.863185][ T5097] syz-executor162/5097 is trying to acquire lock: [ 93.866229][ T5097] ffff88803a7d40b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 93.870622][ T5097] [ 93.870622][ T5097] but task is already holding lock: [ 93.873267][ T5097] ffff88803a7d40b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 93.877019][ T5097] [ 93.877019][ T5097] other info that might help us debug this: [ 93.880249][ T5097] Possible unsafe locking scenario: [ 93.880249][ T5097] [ 93.883356][ T5097] CPU0 [ 93.884710][ T5097] ---- [ 93.886058][ T5097] lock(&tree->tree_lock/1); [ 93.887887][ T5097] lock(&tree->tree_lock/1); [ 93.889749][ T5097] [ 93.889749][ T5097] *** DEADLOCK *** [ 93.889749][ T5097] [ 93.893294][ T5097] May be due to missing lock nesting notation [ 93.893294][ T5097] [ 93.897262][ T5097] 5 locks held by syz-executor162/5097: [ 93.899774][ T5097] #0: ffff8880339ea420 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x224/0xc90 [ 93.903052][ T5097] #1: ffff88803f02ab78 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: generic_file_write_iter+0x82/0x310 [ 93.907047][ T5097] #2: ffff88803f02a988 (&hip->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 93.911068][ T5097] #3: ffff88803a7d40b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 93.915438][ T5097] #4: ffff88803f028108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 93.921029][ T5097] [ 93.921029][ T5097] stack backtrace: [ 93.923608][ T5097] CPU: 0 UID: 0 PID: 5097 Comm: syz-executor162 Not tainted 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #0 [ 93.927854][ T5097] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 93.931884][ T5097] Call Trace: [ 93.933201][ T5097] [ 93.934429][ T5097] dump_stack_lvl+0x241/0x360 [ 93.936618][ T5097] ? __pfx_dump_stack_lvl+0x10/0x10 [ 93.939441][ T5097] ? __pfx__printk+0x10/0x10 [ 93.941742][ T5097] ? lockdep_unlock+0x16a/0x300 [ 93.943476][ T5097] print_deadlock_bug+0x483/0x620 [ 93.945253][ T5097] validate_chain+0x15e2/0x5920 [ 93.947145][ T5097] ? __pfx_validate_chain+0x10/0x10 [ 93.949189][ T5097] ? mark_lock+0x9a/0x360 [ 93.950935][ T5097] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 93.953595][ T5097] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 93.956828][ T5097] ? mark_lock+0x9a/0x360 [ 93.958858][ T5097] ? lockdep_hardirqs_on+0x99/0x150 [ 93.961203][ T5097] __lock_acquire+0x1384/0x2050 [ 93.963134][ T5097] lock_acquire+0x1ed/0x550 [ 93.964890][ T5097] ? hfsplus_find_init+0x14a/0x1c0 [ 93.966952][ T5097] ? __pfx_lock_acquire+0x10/0x10 [ 93.968920][ T5097] ? cont_write_begin+0x6e2/0x9d0 [ 93.970810][ T5097] ? hfsplus_write_begin+0x68/0xb0 [ 93.972740][ T5097] ? __pfx___might_resched+0x10/0x10 [ 93.975478][ T5097] ? do_syscall_64+0xf3/0x230 [ 93.977897][ T5097] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.980555][ T5097] __mutex_lock+0x136/0xd70 [ 93.982500][ T5097] ? hfsplus_find_init+0x14a/0x1c0 [ 93.984588][ T5097] ? hfsplus_find_init+0x14a/0x1c0 [ 93.986778][ T5097] ? __pfx___mutex_lock+0x10/0x10 [ 93.988842][ T5097] ? hfsplus_find_init+0x85/0x1c0 [ 93.990879][ T5097] ? hfsplus_find_init+0x85/0x1c0 [ 93.992997][ T5097] ? rcu_is_watching+0x15/0xb0 [ 93.995111][ T5097] ? hfsplus_find_init+0x85/0x1c0 [ 93.997397][ T5097] ? trace_kmalloc+0x1f/0xd0 [ 93.999513][ T5097] ? __kmalloc_noprof+0x21a/0x400 [ 94.001630][ T5097] hfsplus_find_init+0x14a/0x1c0 [ 94.003607][ T5097] hfsplus_file_extend+0x454/0x1b70 [ 94.005665][ T5097] ? __pfx_hfsplus_file_extend+0x10/0x10 [ 94.007955][ T5097] ? __mutex_trylock_common+0x183/0x2e0 [ 94.010503][ T5097] ? __pfx___might_resched+0x10/0x10 [ 94.013324][ T5097] ? rcu_is_watching+0x15/0xb0 [ 94.015335][ T5097] ? hfsplus_brec_find+0x19d/0x570 [ 94.017388][ T5097] ? __mutex_lock+0x2ef/0xd70 [ 94.019227][ T5097] hfsplus_bmap_reserve+0x105/0x4e0 [ 94.021295][ T5097] __hfsplus_ext_write_extent+0x2a4/0x5c0 [ 94.023601][ T5097] __hfsplus_ext_cache_extent+0x84/0xe10 [ 94.026855][ T5097] hfsplus_file_extend+0x48c/0x1b70 [ 94.029632][ T5097] ? __pfx_hfsplus_file_extend+0x10/0x10 [ 94.031892][ T5097] ? clean_bdev_aliases+0x654/0x7e0 [ 94.033918][ T5097] ? __pfx_clean_bdev_aliases+0x10/0x10 [ 94.036058][ T5097] hfsplus_get_block+0x406/0x14f0 [ 94.038013][ T5097] ? __pfx_hfsplus_get_block+0x10/0x10 [ 94.040075][ T5097] ? create_empty_buffers+0x53e/0x740 [ 94.042453][ T5097] __block_write_begin_int+0x50c/0x1a70 [ 94.046601][ T5097] ? irqentry_exit+0x63/0x90 [ 94.049359][ T5097] ? __pfx_hfsplus_get_block+0x10/0x10 [ 94.051472][ T5097] ? __pfx___block_write_begin_int+0x10/0x10 [ 94.053798][ T5097] cont_write_begin+0x6e2/0x9d0 [ 94.055707][ T5097] ? __pfx_cont_write_begin+0x10/0x10 [ 94.058042][ T5097] ? __pfx_fault_in_readable+0x10/0x10 [ 94.060318][ T5097] ? __mark_inode_dirty+0x3db/0xe90 [ 94.062510][ T5097] hfsplus_write_begin+0x68/0xb0 [ 94.064487][ T5097] ? __pfx_hfsplus_get_block+0x10/0x10 [ 94.066857][ T5097] generic_perform_write+0x344/0x6d0 [ 94.069098][ T5097] ? __pfx_generic_perform_write+0x10/0x10 [ 94.071572][ T5097] ? __generic_file_write_iter+0x102/0x230 [ 94.074018][ T5097] generic_file_write_iter+0xae/0x310 [ 94.076221][ T5097] vfs_write+0xa6d/0xc90 [ 94.077872][ T5097] ? __pfx_generic_file_write_iter+0x10/0x10 [ 94.080210][ T5097] ? __pfx_vfs_write+0x10/0x10 [ 94.082423][ T5097] ? fdget_pos+0x265/0x320 [ 94.084924][ T5097] ksys_write+0x183/0x2b0 [ 94.087207][ T5097] ? __pfx_ksys_write+0x10/0x10 [ 94.089385][ T5097] ? exc_page_fault+0x590/0x8c0 [ 94.091270][ T5097] ? do_syscall_64+0xb6/0x230 [ 94.093113][ T5097] do_syscall_64+0xf3/0x230 [ 94.095106][ T5097] ? clear_bhb_loop+0x35/0x90 [ 94.097057][ T5097] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 94.099549][ T5097] RIP: 0033:0x7f7275004a99 [ 94.101526][ T5097] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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 b8 ff ff ff f7 d8 64 89 01 48 [ 94.109633][ T5097] RSP: 002b:00007fff8af25e98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 94.112895][ T5097] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7275004a99 [ 94.116120][ T5097] RDX: 000000000f642e7e RSI: 0000000020000200 RDI: 0000000000000004 [ 94.119530][ T5097] RBP: 00007f72750785f0 R08: 00005555696c54c0 R09: 00005555696c54c0 [ 94.123860][ T5097] R10: 00000000000006d6 R11: 0000000000000246 R12: 00007fff8af25ec0 [ 94.127764][ T5097] R13: 00007fff8af260e8 R14: 431bde82d7b634db R15: 00007f727504d03b [ 94.130757][ T5097] [ 96.969088][ T9] cfg80211: failed to load regulatory.db VM DIAGNOSIS: 18:47:03 Registers: info registers vcpu 0 CPU#0 RAX=1ffffffff34e2760 RBX=ffffffff9a713e40 RCX=0000000000000000 RDX=00000000000003fd RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc90002dde378 R8 =ffffffff85499c76 R9 =1ffff1100007e046 R10=dffffc0000000000 R11=ffffffff85499c30 R12=dffffc0000000000 R13=ffffffff9a40ef00 R14=00000000000003fd R15=dffffc0000000000 RIP=ffffffff85499ca6 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 00005555696c4380 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=0000000020031000 CR3=000000003d07e000 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=0000000000440401 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 00007fff8af25ea0 0000003000000018 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f7275084580 00007f72750785d8 ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f7275069944 00007f727507d260 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 65723d73726f7272 6500747865003036 36396f7369007265 6c6c616b7a797300 ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 40571856574a5757 4000515d40001513 131c4a564c005740 4949444e5f5c5600 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