Warning: Permanently added '[localhost]:32173' (ED25519) to the list of known hosts. executing program [ 63.597727][ T5309] loop0: detected capacity change from 0 to 1024 [ 63.653571][ T5309] [ 63.654513][ T5309] ============================================ [ 63.656792][ T5309] WARNING: possible recursive locking detected [ 63.659076][ T5309] 6.12.0-rc5-syzkaller-00322-gb9021de3ec2f #0 Not tainted [ 63.662575][ T5309] -------------------------------------------- [ 63.664819][ T5309] syz-executor166/5309 is trying to acquire lock: [ 63.667188][ T5309] ffff888036b700b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 63.670751][ T5309] [ 63.670751][ T5309] but task is already holding lock: [ 63.673472][ T5309] ffff888036b700b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 63.677058][ T5309] [ 63.677058][ T5309] other info that might help us debug this: [ 63.680057][ T5309] Possible unsafe locking scenario: [ 63.680057][ T5309] [ 63.682846][ T5309] CPU0 [ 63.684108][ T5309] ---- [ 63.685390][ T5309] lock(&tree->tree_lock/1); [ 63.687156][ T5309] lock(&tree->tree_lock/1); [ 63.688975][ T5309] [ 63.688975][ T5309] *** DEADLOCK *** [ 63.688975][ T5309] [ 63.691972][ T5309] May be due to missing lock nesting notation [ 63.691972][ T5309] [ 63.694903][ T5309] 5 locks held by syz-executor166/5309: [ 63.696953][ T5309] #0: ffff88803771a420 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x225/0xd30 [ 63.700216][ T5309] #1: ffff88803dfa2b78 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: generic_file_write_iter+0x82/0x310 [ 63.704443][ T5309] #2: ffff88803dfa2988 (&hip->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 63.708227][ T5309] #3: ffff888036b700b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 63.711983][ T5309] #4: ffff88803dfa0108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 63.716292][ T5309] [ 63.716292][ T5309] stack backtrace: [ 63.718528][ T5309] CPU: 0 UID: 0 PID: 5309 Comm: syz-executor166 Not tainted 6.12.0-rc5-syzkaller-00322-gb9021de3ec2f #0 [ 63.722626][ T5309] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 63.726572][ T5309] Call Trace: [ 63.727795][ T5309] [ 63.728912][ T5309] dump_stack_lvl+0x241/0x360 [ 63.730726][ T5309] ? __pfx_dump_stack_lvl+0x10/0x10 [ 63.732639][ T5309] ? __pfx__printk+0x10/0x10 [ 63.734374][ T5309] ? lockdep_unlock+0x16a/0x300 [ 63.736238][ T5309] print_deadlock_bug+0x483/0x620 [ 63.738143][ T5309] validate_chain+0x15e2/0x5920 [ 63.740000][ T5309] ? __pfx_validate_chain+0x10/0x10 [ 63.741964][ T5309] ? mark_lock+0x9a/0x360 [ 63.743594][ T5309] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 63.745528][ T5309] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 63.747887][ T5309] ? mark_lock+0x9a/0x360 [ 63.749525][ T5309] ? lockdep_hardirqs_on+0x99/0x150 [ 63.751487][ T5309] __lock_acquire+0x1384/0x2050 [ 63.753368][ T5309] lock_acquire+0x1ed/0x550 [ 63.754937][ T5309] ? hfsplus_find_init+0x14a/0x1c0 [ 63.756681][ T5309] ? __pfx_lock_acquire+0x10/0x10 [ 63.758533][ T5309] ? cont_write_begin+0x6e2/0x9d0 [ 63.760424][ T5309] ? hfsplus_write_begin+0x68/0xb0 [ 63.762322][ T5309] ? __pfx___might_resched+0x10/0x10 [ 63.764286][ T5309] ? do_syscall_64+0xf3/0x230 [ 63.766020][ T5309] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.768302][ T5309] __mutex_lock+0x136/0xd70 [ 63.770011][ T5309] ? hfsplus_find_init+0x14a/0x1c0 [ 63.771957][ T5309] ? hfsplus_find_init+0x14a/0x1c0 [ 63.773904][ T5309] ? __pfx___mutex_lock+0x10/0x10 [ 63.775813][ T5309] ? hfsplus_find_init+0x85/0x1c0 [ 63.777737][ T5309] ? hfsplus_find_init+0x85/0x1c0 [ 63.779626][ T5309] ? rcu_is_watching+0x15/0xb0 [ 63.781513][ T5309] ? hfsplus_find_init+0x85/0x1c0 [ 63.783483][ T5309] ? trace_kmalloc+0x1f/0xd0 [ 63.785248][ T5309] ? __kmalloc_noprof+0x21a/0x400 [ 63.787123][ T5309] hfsplus_find_init+0x14a/0x1c0 [ 63.789040][ T5309] hfsplus_file_extend+0x454/0x1b70 [ 63.790997][ T5309] ? __pfx_hfsplus_file_extend+0x10/0x10 [ 63.793093][ T5309] ? __mutex_trylock_common+0x183/0x2e0 [ 63.795206][ T5309] ? __pfx___might_resched+0x10/0x10 [ 63.797218][ T5309] ? rcu_is_watching+0x15/0xb0 [ 63.799074][ T5309] ? hfsplus_brec_find+0x19d/0x570 [ 63.801030][ T5309] ? __mutex_lock+0x2ef/0xd70 [ 63.802811][ T5309] hfsplus_bmap_reserve+0x105/0x4e0 [ 63.804778][ T5309] __hfsplus_ext_write_extent+0x2a4/0x5c0 [ 63.806654][ T5309] __hfsplus_ext_cache_extent+0x84/0xe10 [ 63.808440][ T5309] hfsplus_file_extend+0x48c/0x1b70 [ 63.810261][ T5309] ? __pfx_hfsplus_file_extend+0x10/0x10 [ 63.812382][ T5309] ? clean_bdev_aliases+0x654/0x7e0 [ 63.814380][ T5309] ? __pfx_clean_bdev_aliases+0x10/0x10 [ 63.816472][ T5309] hfsplus_get_block+0x406/0x14f0 [ 63.818396][ T5309] ? __pfx_hfsplus_get_block+0x10/0x10 [ 63.820454][ T5309] ? create_empty_buffers+0x53e/0x740 [ 63.822499][ T5309] __block_write_begin_int+0x50c/0x1a70 [ 63.824609][ T5309] ? irqentry_exit+0x63/0x90 [ 63.826409][ T5309] ? __pfx_hfsplus_get_block+0x10/0x10 [ 63.828461][ T5309] ? __pfx___block_write_begin_int+0x10/0x10 [ 63.830764][ T5309] cont_write_begin+0x6e2/0x9d0 [ 63.832604][ T5309] ? __pfx_cont_write_begin+0x10/0x10 [ 63.834614][ T5309] ? __pfx_fault_in_readable+0x10/0x10 [ 63.836632][ T5309] ? __mark_inode_dirty+0x3db/0xe90 [ 63.838587][ T5309] hfsplus_write_begin+0x68/0xb0 [ 63.840405][ T5309] ? __pfx_hfsplus_get_block+0x10/0x10 [ 63.842471][ T5309] generic_perform_write+0x344/0x6d0 [ 63.844500][ T5309] ? __pfx_generic_perform_write+0x10/0x10 [ 63.846748][ T5309] ? __generic_file_write_iter+0x102/0x230 [ 63.849005][ T5309] generic_file_write_iter+0xae/0x310 [ 63.851002][ T5309] vfs_write+0xaeb/0xd30 [ 63.852573][ T5309] ? __pfx_generic_file_write_iter+0x10/0x10 [ 63.854825][ T5309] ? __pfx_vfs_write+0x10/0x10 [ 63.856615][ T5309] ? fdget_pos+0x265/0x320 [ 63.858319][ T5309] ksys_write+0x183/0x2b0 [ 63.859966][ T5309] ? __pfx_ksys_write+0x10/0x10 [ 63.861829][ T5309] ? exc_page_fault+0x590/0x8c0 [ 63.863705][ T5309] ? do_syscall_64+0xb6/0x230 [ 63.865511][ T5309] do_syscall_64+0xf3/0x230 [ 63.867260][ T5309] ? clear_bhb_loop+0x35/0x90 [ 63.869058][ T5309] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.871276][ T5309] RIP: 0033:0x7fbe0d818ad9 [ 63.872970][ T5309] 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 [ 63.880200][ T5309] RSP: 002b:00007ffe45b353c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 63.883367][ T5309] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fbe0d818ad9 [ 63.886378][ T5309] RDX: 000000000208e24b RSI: 0000000020000240 RDI: 0000000000000004 [ 63.889426][ T5309] RBP: 00007fbe0d88c5f0 R08: 000055556ac494c0 R09: 000055556ac494c0 [ 63.892337][ T5309] R10: 00000000000006fb R11: 0000000000000246 R12: 00007ffe45b353f0 [ 63.895316][ T5309] R13: 00007ffe45b35618 R14: 431bde82d7b634db R15: 00007fbe0d86103b [ 63.898268][ T5309] [ 68.652202][ T12] hfsplus: b-tree write err: -5, ino 4 VM DIAGNOSIS: 22:26:11 Registers: info registers vcpu 0 CPU#0 RAX=0000000000000079 RBX=ffffffff9a719ec0 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000cf0e370 R8 =ffffffff854ada4b R9 =1ffff1100679c046 R10=dffffc0000000000 R11=ffffffff854ada00 R12=dffffc0000000000 R13=ffffffff9a414f04 R14=0000000000000079 R15=00000000000003f8 RIP=ffffffff854ada7e 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 000055556ac48380 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=000000002001f000 CR3=0000000043f60000 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=00000000fefeffd0 Opmask01=0000000000004211 Opmask02=000000007ffeffff Opmask03=0000000000000000 Opmask04=00000000ffffffff Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007fffba60d620 0000003000000010 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 2a2a2a2a2a2a2a2a 2a2a2a2a2a2a2a2a ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00000000ff000000 0000000000000000 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ffffffffffffffff ffff000000000000 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00000000ff000000 0000000000000000 ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM08=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ff00000000000000 ffffffffffffffff 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 726f662027732527 20656c6966207325 2064657461657263 000a73253a47000a ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 574a430502560002 0540494c43055600 0541405144405746 000a56001f47000a ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 306632785c646975 752d79626632785c 6b7369646632785c 2f736b6e696c2f76 ZMM21=0000000000000000 0000000000000000 0000000000000000 0000000000000000 6137636139343131 322d656635612d66 6330332d36376432 2d61663734626436 ZMM22=0000000000000000 0000000000000000 0000000000000000 0000000000000000 389780d716aac100 0000000000000000 343d736500000000 303a37622f613466 ZMM23=0000000000000000 0000000000000000 0000000000000000 0000000000000000 7f777f7f7f7d7f7f 7f7f3f7f7f7f7f7f 7f7f7f773f7f7f7f 3f7f7f3f776f7957 ZMM24=0000000000000000 0000000000000000 0000000000000000 0000000000000000 3a3a264c3c3a3a26 323c3a3a264e393a 3a2648393a3a264b 393a3a263e393a3a ZMM25=0000000000000000 0000000000000000 0000000000000000 0000000000000000 4f00304d00303d2f 4955555f482f4e59 53006b636f2f623d 4d455453592f3d48 ZMM26=0000000000000000 0000000000000000 0000000000000000 0000000000000000 4d0000300030002f 49554e513d2f0037 31004544002f3d3d 4400494d002f3d45 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