Warning: Permanently added '10.128.0.246' (ED25519) to the list of known hosts. executing program [ 67.673258][ T4251] loop0: detected capacity change from 0 to 32768 [ 67.696089][ T4251] ocfs2: Slot 0 on device (7,0) was already allocated to this node! [ 67.711004][ T4251] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 67.733829][ T4251] [ 67.736176][ T4251] ====================================================== [ 67.743195][ T4251] WARNING: possible circular locking dependency detected [ 67.750223][ T4251] 6.1.138-syzkaller #0 Not tainted [ 67.755334][ T4251] ------------------------------------------------------ [ 67.762356][ T4251] syz-executor387/4251 is trying to acquire lock: [ 67.768766][ T4251] ffff888071349808 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x162/0x4630 [ 67.782037][ T4251] [ 67.782037][ T4251] but task is already holding lock: [ 67.789400][ T4251] ffff88807134b1b8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x40c/0x11e0 [ 67.798943][ T4251] [ 67.798943][ T4251] which lock already depends on the new lock. [ 67.798943][ T4251] [ 67.809357][ T4251] [ 67.809357][ T4251] the existing dependency chain (in reverse order) is: [ 67.818389][ T4251] [ 67.818389][ T4251] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 67.826226][ T4251] down_read+0x42/0x2d0 [ 67.830932][ T4251] ocfs2_init_acl+0x2fb/0x720 [ 67.836153][ T4251] ocfs2_mknod+0x1463/0x2350 [ 67.841274][ T4251] ocfs2_mkdir+0x1b6/0x4a0 [ 67.846217][ T4251] vfs_mkdir+0x387/0x570 [ 67.850985][ T4251] do_mkdirat+0x1d0/0x430 [ 67.855821][ T4251] __x64_sys_mkdir+0x6a/0x80 [ 67.860913][ T4251] do_syscall_64+0x4c/0xa0 [ 67.865840][ T4251] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 67.872247][ T4251] [ 67.872247][ T4251] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 67.879527][ T4251] start_this_handle+0x1f49/0x2150 [ 67.885143][ T4251] jbd2__journal_start+0x2b7/0x5a0 [ 67.890760][ T4251] jbd2_journal_start+0x26/0x30 [ 67.896117][ T4251] ocfs2_start_trans+0x372/0x6c0 [ 67.901579][ T4251] ocfs2_mknod+0xe6a/0x2350 [ 67.906591][ T4251] ocfs2_mkdir+0x1b6/0x4a0 [ 67.911515][ T4251] vfs_mkdir+0x387/0x570 [ 67.916261][ T4251] do_mkdirat+0x1d0/0x430 [ 67.921093][ T4251] __x64_sys_mkdir+0x6a/0x80 [ 67.926186][ T4251] do_syscall_64+0x4c/0xa0 [ 67.931109][ T4251] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 67.937518][ T4251] [ 67.937518][ T4251] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 67.946018][ T4251] down_read+0x42/0x2d0 [ 67.950675][ T4251] ocfs2_start_trans+0x366/0x6c0 [ 67.956115][ T4251] ocfs2_mknod+0xe6a/0x2350 [ 67.961128][ T4251] ocfs2_mkdir+0x1b6/0x4a0 [ 67.966060][ T4251] vfs_mkdir+0x387/0x570 [ 67.970813][ T4251] do_mkdirat+0x1d0/0x430 [ 67.975653][ T4251] __x64_sys_mkdir+0x6a/0x80 [ 67.980751][ T4251] do_syscall_64+0x4c/0xa0 [ 67.985674][ T4251] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 67.992089][ T4251] [ 67.992089][ T4251] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 67.999554][ T4251] ocfs2_start_trans+0x267/0x6c0 [ 68.004998][ T4251] ocfs2_mknod+0xe6a/0x2350 [ 68.010011][ T4251] ocfs2_mkdir+0x1b6/0x4a0 [ 68.014943][ T4251] vfs_mkdir+0x387/0x570 [ 68.019699][ T4251] do_mkdirat+0x1d0/0x430 [ 68.024540][ T4251] __x64_sys_mkdir+0x6a/0x80 [ 68.029638][ T4251] do_syscall_64+0x4c/0xa0 [ 68.034566][ T4251] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 68.040977][ T4251] [ 68.040977][ T4251] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 68.051494][ T4251] down_write+0x36/0x60 [ 68.056161][ T4251] ocfs2_reserve_local_alloc_bits+0x122/0x2670 [ 68.062826][ T4251] ocfs2_reserve_clusters_with_limit+0x1bb/0xba0 [ 68.069661][ T4251] ocfs2_mknod+0xe18/0x2350 [ 68.074673][ T4251] ocfs2_mkdir+0x1b6/0x4a0 [ 68.079606][ T4251] vfs_mkdir+0x387/0x570 [ 68.084376][ T4251] do_mkdirat+0x1d0/0x430 [ 68.089227][ T4251] __x64_sys_mkdir+0x6a/0x80 [ 68.094335][ T4251] do_syscall_64+0x4c/0xa0 [ 68.099298][ T4251] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 68.105717][ T4251] [ 68.105717][ T4251] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 68.116223][ T4251] __lock_acquire+0x2cf8/0x7c50 [ 68.121589][ T4251] lock_acquire+0x1b4/0x490 [ 68.126623][ T4251] down_write+0x36/0x60 [ 68.131294][ T4251] ocfs2_reserve_suballoc_bits+0x162/0x4630 [ 68.137702][ T4251] ocfs2_reserve_new_metadata_blocks+0x400/0x940 [ 68.144541][ T4251] ocfs2_init_xattr_set_ctxt+0x2f8/0x750 [ 68.150681][ T4251] ocfs2_xattr_set+0xb69/0x11e0 [ 68.156035][ T4251] ocfs2_set_acl+0x4e1/0x590 [ 68.161134][ T4251] ocfs2_iop_set_acl+0x16f/0x270 [ 68.166594][ T4251] posix_acl_xattr_set+0x387/0x3f0 [ 68.172220][ T4251] __vfs_setxattr+0x3e0/0x420 [ 68.177410][ T4251] __vfs_setxattr_noperm+0x129/0x5e0 [ 68.183212][ T4251] vfs_setxattr+0x168/0x2f0 [ 68.188243][ T4251] setxattr+0x2b2/0x2d0 [ 68.192905][ T4251] __se_sys_fsetxattr+0x15e/0x1d0 [ 68.198434][ T4251] do_syscall_64+0x4c/0xa0 [ 68.203357][ T4251] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 68.209757][ T4251] [ 68.209757][ T4251] other info that might help us debug this: [ 68.209757][ T4251] [ 68.219979][ T4251] Chain exists of: [ 68.219979][ T4251] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 68.219979][ T4251] [ 68.235709][ T4251] Possible unsafe locking scenario: [ 68.235709][ T4251] [ 68.243143][ T4251] CPU0 CPU1 [ 68.248491][ T4251] ---- ---- [ 68.253842][ T4251] lock(&oi->ip_xattr_sem); [ 68.258419][ T4251] lock(jbd2_handle); [ 68.264993][ T4251] lock(&oi->ip_xattr_sem); [ 68.272088][ T4251] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 68.279361][ T4251] [ 68.279361][ T4251] *** DEADLOCK *** [ 68.279361][ T4251] [ 68.287490][ T4251] 3 locks held by syz-executor387/4251: [ 68.293018][ T4251] #0: ffff888018684460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5c/0x200 [ 68.302659][ T4251] #1: ffff88807134b488 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_setxattr+0x141/0x2f0 [ 68.313086][ T4251] #2: ffff88807134b1b8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x40c/0x11e0 [ 68.322987][ T4251] [ 68.322987][ T4251] stack backtrace: [ 68.328875][ T4251] CPU: 1 PID: 4251 Comm: syz-executor387 Not tainted 6.1.138-syzkaller #0 [ 68.337359][ T4251] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 [ 68.347408][ T4251] Call Trace: [ 68.350673][ T4251] [ 68.353592][ T4251] dump_stack_lvl+0x168/0x22e [ 68.358261][ T4251] ? load_image+0x3b0/0x3b0 [ 68.362761][ T4251] ? show_regs_print_info+0x12/0x12 [ 68.367954][ T4251] ? print_circular_bug+0x12b/0x1a0 [ 68.373150][ T4251] check_noncircular+0x274/0x310 [ 68.378084][ T4251] ? add_chain_block+0x940/0x940 [ 68.383024][ T4251] ? lockdep_lock+0xdc/0x1e0 [ 68.387604][ T4251] ? verify_lock_unused+0x140/0x140 [ 68.392792][ T4251] ? _find_first_zero_bit+0xcf/0x100 [ 68.398062][ T4251] __lock_acquire+0x2cf8/0x7c50 [ 68.402928][ T4251] ? verify_lock_unused+0x140/0x140 [ 68.408119][ T4251] ? __mutex_unlock_slowpath+0x19e/0x6a0 [ 68.413771][ T4251] ? do_raw_spin_lock+0x11d/0x280 [ 68.418791][ T4251] ? mutex_unlock+0x10/0x10 [ 68.423283][ T4251] ? __rwlock_init+0x140/0x140 [ 68.428042][ T4251] ? __rwlock_init+0x140/0x140 [ 68.432801][ T4251] ? do_raw_spin_unlock+0x11d/0x230 [ 68.437998][ T4251] lock_acquire+0x1b4/0x490 [ 68.442494][ T4251] ? ocfs2_reserve_suballoc_bits+0x162/0x4630 [ 68.448549][ T4251] ? __might_sleep+0xd0/0xd0 [ 68.453134][ T4251] ? read_lock_is_recursive+0x10/0x10 [ 68.458505][ T4251] down_write+0x36/0x60 [ 68.462651][ T4251] ? ocfs2_reserve_suballoc_bits+0x162/0x4630 [ 68.468703][ T4251] ocfs2_reserve_suballoc_bits+0x162/0x4630 [ 68.474586][ T4251] ? mark_lock+0x94/0x320 [ 68.478910][ T4251] ? lockdep_hardirqs_on_prepare+0x3fc/0x760 [ 68.484882][ T4251] ? lock_chain_count+0x20/0x20 [ 68.489720][ T4251] ? _raw_spin_unlock_irqrestore+0x82/0x100 [ 68.495602][ T4251] ? ocfs2_block_group_search+0x4f0/0x4f0 [ 68.501300][ T4251] ? _raw_spin_unlock_irqrestore+0xaa/0x100 [ 68.507201][ T4251] ? _raw_spin_unlock+0x40/0x40 [ 68.512045][ T4251] ? stack_trace_save+0x98/0xe0 [ 68.516879][ T4251] ? __stack_depot_save+0x421/0x460 [ 68.522070][ T4251] ? kasan_set_track+0x60/0x70 [ 68.526823][ T4251] ? kasan_set_track+0x4b/0x70 [ 68.531573][ T4251] ? __kasan_kmalloc+0x8e/0xa0 [ 68.536358][ T4251] ? ocfs2_reserve_new_metadata_blocks+0x110/0x940 [ 68.542842][ T4251] ? ocfs2_init_xattr_set_ctxt+0x2f8/0x750 [ 68.548631][ T4251] ? ocfs2_xattr_set+0xb69/0x11e0 [ 68.553638][ T4251] ? ocfs2_set_acl+0x4e1/0x590 [ 68.558390][ T4251] ? ocfs2_iop_set_acl+0x16f/0x270 [ 68.563485][ T4251] ? posix_acl_xattr_set+0x387/0x3f0 [ 68.568756][ T4251] ? __vfs_setxattr+0x3e0/0x420 [ 68.573594][ T4251] ? __vfs_setxattr_noperm+0x129/0x5e0 [ 68.579052][ T4251] ? vfs_setxattr+0x168/0x2f0 [ 68.583723][ T4251] ? setxattr+0x2b2/0x2d0 [ 68.588047][ T4251] ? __se_sys_fsetxattr+0x15e/0x1d0 [ 68.593248][ T4251] ? do_syscall_64+0x4c/0xa0 [ 68.597829][ T4251] ? entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 68.603903][ T4251] ocfs2_reserve_new_metadata_blocks+0x400/0x940 [ 68.610226][ T4251] ? ocfs2_init_steal_slots+0x150/0x150 [ 68.615760][ T4251] ? ocfs2_xattr_block_set+0x2da0/0x2da0 [ 68.621386][ T4251] ocfs2_init_xattr_set_ctxt+0x2f8/0x750 [ 68.627025][ T4251] ? ocfs2_prepare_refcount_xattr+0xf20/0xf20 [ 68.633082][ T4251] ? ocfs2_truncate_log_needs_flush+0x131/0x2e0 [ 68.639313][ T4251] ? ocfs2_remove_btree_range+0x1480/0x1480 [ 68.645199][ T4251] ? preempt_count_add+0x8d/0x190 [ 68.650205][ T4251] ? up_write+0x1bb/0x420 [ 68.654531][ T4251] ocfs2_xattr_set+0xb69/0x11e0 [ 68.659373][ T4251] ? __ocfs2_xattr_set_handle+0xf10/0xf10 [ 68.665077][ T4251] ? __kasan_kmalloc+0x8e/0xa0 [ 68.669833][ T4251] ? ocfs2_set_acl+0x11e/0x590 [ 68.674584][ T4251] ? ocfs2_iop_set_acl+0x16f/0x270 [ 68.679684][ T4251] ? posix_acl_xattr_set+0x387/0x3f0 [ 68.684961][ T4251] ? __vfs_setxattr_noperm+0x129/0x5e0 [ 68.690408][ T4251] ? setxattr+0x2b2/0x2d0 [ 68.694744][ T4251] ? __kmem_cache_alloc_node+0x140/0x260 [ 68.700371][ T4251] ? ocfs2_set_acl+0x11e/0x590 [ 68.705128][ T4251] ? rcu_is_watching+0x11/0xa0 [ 68.709904][ T4251] ? ocfs2_set_acl+0x11e/0x590 [ 68.714663][ T4251] ? __kmalloc+0xe1/0x240 [ 68.718979][ T4251] ? ocfs2_inode_lock_atime+0x4e0/0x4e0 [ 68.724509][ T4251] ocfs2_set_acl+0x4e1/0x590 [ 68.729089][ T4251] ocfs2_iop_set_acl+0x16f/0x270 [ 68.734015][ T4251] ? ocfs2_xattr_get+0x220/0x220 [ 68.738939][ T4251] ? __kmem_cache_alloc_node+0x140/0x260 [ 68.744556][ T4251] ? vfs_set_acl_prepare+0x108/0x6e0 [ 68.749829][ T4251] ? __kmalloc+0xe1/0x240 [ 68.754143][ T4251] ? posix_acl_valid+0x320/0x3a0 [ 68.759088][ T4251] posix_acl_xattr_set+0x387/0x3f0 [ 68.764196][ T4251] ? posix_acl_xattr_get+0x550/0x550 [ 68.769475][ T4251] __vfs_setxattr+0x3e0/0x420 [ 68.774145][ T4251] __vfs_setxattr_noperm+0x129/0x5e0 [ 68.779420][ T4251] vfs_setxattr+0x168/0x2f0 [ 68.783913][ T4251] ? xattr_permission+0x500/0x500 [ 68.788928][ T4251] ? _copy_from_user+0x10b/0x170 [ 68.793854][ T4251] ? setxattr+0x214/0x2d0 [ 68.798174][ T4251] setxattr+0x2b2/0x2d0 [ 68.802320][ T4251] ? path_setxattr+0x280/0x280 [ 68.807085][ T4251] ? __mnt_want_write+0x21f/0x2a0 [ 68.812098][ T4251] ? mnt_want_write_file+0x16e/0x200 [ 68.817455][ T4251] __se_sys_fsetxattr+0x15e/0x1d0 [ 68.822474][ T4251] do_syscall_64+0x4c/0xa0 [ 68.826897][ T4251] ? clear_bhb_loop+0x45/0xa0 [ 68.831557][ T4251] ? clear_bhb_loop+0x45/0xa0 [ 68.836234][ T4251] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 68.842117][ T4251] RIP: 0033:0x7fdddb6a57f9 [ 68.846521][ T4251] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 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 [ 68.866114][ T4251] RSP: 002b:00007ffcc693fcf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000be [ 68.874510][ T4251] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007fdddb6a57f9 [ 68.882466][ T4251] RDX: 0000200000000640 RSI: 0000200000000000 RDI: 0000