Warning: Permanently added '10.128.0.189' (ED25519) to the list of known hosts. executing program [ 59.775888][ T4167] loop0: detected capacity change from 0 to 32768 [ 59.820914][ T4167] ======================================================= [ 59.820914][ T4167] WARNING: The mand mount option has been deprecated and [ 59.820914][ T4167] and is ignored by this kernel. Remove the mand [ 59.820914][ T4167] option from the mount to silence this warning. [ 59.820914][ T4167] ======================================================= [ 59.874203][ T4167] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. [ 59.895255][ T4167] [ 59.897807][ T4167] ====================================================== [ 59.905197][ T4167] WARNING: possible circular locking dependency detected [ 59.912419][ T4167] 5.15.183-syzkaller #0 Not tainted [ 59.917733][ T4167] ------------------------------------------------------ [ 59.924929][ T4167] syz-executor314/4167 is trying to acquire lock: [ 59.931520][ T4167] ffff8880716c2648 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x161/0x4350 [ 59.944839][ T4167] [ 59.944839][ T4167] but task is already holding lock: [ 59.952198][ T4167] ffff888074634e38 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x40c/0x11e0 [ 59.961786][ T4167] [ 59.961786][ T4167] which lock already depends on the new lock. [ 59.961786][ T4167] [ 59.972266][ T4167] [ 59.972266][ T4167] the existing dependency chain (in reverse order) is: [ 59.982044][ T4167] [ 59.982044][ T4167] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 59.990257][ T4167] down_read+0x44/0x2e0 [ 59.995114][ T4167] ocfs2_init_acl+0x2fb/0x720 [ 60.000383][ T4167] ocfs2_mknod+0x142f/0x22b0 [ 60.005595][ T4167] ocfs2_create+0x192/0x410 [ 60.010602][ T4167] path_openat+0x11e1/0x2f30 [ 60.015698][ T4167] do_filp_open+0x1b3/0x3e0 [ 60.020739][ T4167] do_sys_openat2+0x142/0x4a0 [ 60.026301][ T4167] __x64_sys_openat+0x135/0x160 [ 60.031803][ T4167] do_syscall_64+0x4c/0xa0 [ 60.036745][ T4167] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.043323][ T4167] [ 60.043323][ T4167] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 60.050861][ T4167] start_this_handle+0x1338/0x15a0 [ 60.056476][ T4167] jbd2__journal_start+0x2b7/0x5a0 [ 60.062089][ T4167] jbd2_journal_start+0x26/0x30 [ 60.067442][ T4167] ocfs2_start_trans+0x374/0x6c0 [ 60.072881][ T4167] ocfs2_mknod+0xe2f/0x22b0 [ 60.078068][ T4167] ocfs2_create+0x192/0x410 [ 60.083180][ T4167] path_openat+0x11e1/0x2f30 [ 60.088304][ T4167] do_filp_open+0x1b3/0x3e0 [ 60.093319][ T4167] do_sys_openat2+0x142/0x4a0 [ 60.098605][ T4167] __x64_sys_openat+0x135/0x160 [ 60.103985][ T4167] do_syscall_64+0x4c/0xa0 [ 60.109098][ T4167] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.115608][ T4167] [ 60.115608][ T4167] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 60.124110][ T4167] down_read+0x44/0x2e0 [ 60.128885][ T4167] ocfs2_start_trans+0x368/0x6c0 [ 60.134426][ T4167] ocfs2_mknod+0xe2f/0x22b0 [ 60.139442][ T4167] ocfs2_create+0x192/0x410 [ 60.144760][ T4167] path_openat+0x11e1/0x2f30 [ 60.149876][ T4167] do_filp_open+0x1b3/0x3e0 [ 60.155136][ T4167] do_sys_openat2+0x142/0x4a0 [ 60.160357][ T4167] __x64_sys_openat+0x135/0x160 [ 60.165733][ T4167] do_syscall_64+0x4c/0xa0 [ 60.170691][ T4167] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.177096][ T4167] [ 60.177096][ T4167] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 60.185028][ T4167] ocfs2_start_trans+0x269/0x6c0 [ 60.190689][ T4167] ocfs2_mknod+0xe2f/0x22b0 [ 60.195980][ T4167] ocfs2_create+0x192/0x410 [ 60.201104][ T4167] path_openat+0x11e1/0x2f30 [ 60.206553][ T4167] do_filp_open+0x1b3/0x3e0 [ 60.211839][ T4167] do_sys_openat2+0x142/0x4a0 [ 60.217289][ T4167] __x64_sys_openat+0x135/0x160 [ 60.222656][ T4167] do_syscall_64+0x4c/0xa0 [ 60.227780][ T4167] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.234181][ T4167] [ 60.234181][ T4167] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 60.244694][ T4167] down_write+0x38/0x60 [ 60.249360][ T4167] ocfs2_reserve_local_alloc_bits+0x122/0x24c0 [ 60.256366][ T4167] ocfs2_reserve_clusters_with_limit+0x1bb/0xba0 [ 60.263376][ T4167] ocfs2_mknod+0xddd/0x22b0 [ 60.268384][ T4167] ocfs2_create+0x192/0x410 [ 60.273600][ T4167] path_openat+0x11e1/0x2f30 [ 60.278780][ T4167] do_filp_open+0x1b3/0x3e0 [ 60.284078][ T4167] do_sys_openat2+0x142/0x4a0 [ 60.289441][ T4167] __x64_sys_openat+0x135/0x160 [ 60.294986][ T4167] do_syscall_64+0x4c/0xa0 [ 60.300459][ T4167] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.307065][ T4167] [ 60.307065][ T4167] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 60.317749][ T4167] __lock_acquire+0x2c33/0x7c60 [ 60.323213][ T4167] lock_acquire+0x197/0x3f0 [ 60.328429][ T4167] down_write+0x38/0x60 [ 60.333109][ T4167] ocfs2_reserve_suballoc_bits+0x161/0x4350 [ 60.339725][ T4167] ocfs2_reserve_new_metadata_blocks+0x400/0x940 [ 60.346782][ T4167] ocfs2_init_xattr_set_ctxt+0x2e1/0x6c0 [ 60.352931][ T4167] ocfs2_xattr_set+0xb69/0x11e0 [ 60.358291][ T4167] __vfs_setxattr+0x3e0/0x420 [ 60.363483][ T4167] __vfs_setxattr_noperm+0x129/0x5e0 [ 60.369444][ T4167] vfs_setxattr+0x168/0x2f0 [ 60.374774][ T4167] setxattr+0x2da/0x300 [ 60.379453][ T4167] __se_sys_fsetxattr+0x15e/0x1d0 [ 60.385169][ T4167] do_syscall_64+0x4c/0xa0 [ 60.390097][ T4167] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.396588][ T4167] [ 60.396588][ T4167] other info that might help us debug this: [ 60.396588][ T4167] [ 60.406983][ T4167] Chain exists of: [ 60.406983][ T4167] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 60.406983][ T4167] [ 60.423313][ T4167] Possible unsafe locking scenario: [ 60.423313][ T4167] [ 60.430847][ T4167] CPU0 CPU1 [ 60.436213][ T4167] ---- ---- [ 60.441755][ T4167] lock(&oi->ip_xattr_sem); [ 60.446344][ T4167] lock(jbd2_handle); [ 60.453297][ T4167] lock(&oi->ip_xattr_sem); [ 60.460679][ T4167] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 60.468241][ T4167] [ 60.468241][ T4167] *** DEADLOCK *** [ 60.468241][ T4167] [ 60.476717][ T4167] 3 locks held by syz-executor314/4167: [ 60.482272][ T4167] #0: ffff88807a2d0460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write_file+0x5c/0x200 [ 60.492189][ T4167] #1: ffff888074635108 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_setxattr+0x141/0x2f0 [ 60.503235][ T4167] #2: ffff888074634e38 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x40c/0x11e0 [ 60.513480][ T4167] [ 60.513480][ T4167] stack backtrace: [ 60.519369][ T4167] CPU: 1 PID: 4167 Comm: syz-executor314 Not tainted 5.15.183-syzkaller #0 [ 60.528026][ T4167] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 [ 60.538073][ T4167] Call Trace: [ 60.541359][ T4167] [ 60.544277][ T4167] dump_stack_lvl+0x168/0x230 [ 60.548952][ T4167] ? load_image+0x3b0/0x3b0 [ 60.553448][ T4167] ? show_regs_print_info+0x20/0x20 [ 60.558655][ T4167] ? print_circular_bug+0x12b/0x1a0 [ 60.563840][ T4167] check_noncircular+0x274/0x310 [ 60.568777][ T4167] ? add_chain_block+0x940/0x940 [ 60.573715][ T4167] ? lockdep_lock+0xdc/0x1e0 [ 60.578293][ T4167] ? verify_lock_unused+0x140/0x140 [ 60.583477][ T4167] ? mark_lock+0x94/0x320 [ 60.587800][ T4167] __lock_acquire+0x2c33/0x7c60 [ 60.592642][ T4167] ? verify_lock_unused+0x140/0x140 [ 60.597861][ T4167] ? __mutex_unlock_slowpath+0x19e/0x6a0 [ 60.603516][ T4167] ? do_raw_spin_lock+0x11d/0x280 [ 60.608527][ T4167] ? mutex_unlock+0x10/0x10 [ 60.613139][ T4167] ? __rwlock_init+0x140/0x140 [ 60.617925][ T4167] ? __rwlock_init+0x140/0x140 [ 60.622785][ T4167] ? do_raw_spin_unlock+0x11d/0x230 [ 60.627971][ T4167] lock_acquire+0x197/0x3f0 [ 60.632593][ T4167] ? ocfs2_reserve_suballoc_bits+0x161/0x4350 [ 60.638648][ T4167] ? __might_sleep+0xf0/0xf0 [ 60.643396][ T4167] ? __bfs+0x2a3/0x5c0 [ 60.647590][ T4167] ? read_lock_is_recursive+0x10/0x10 [ 60.653039][ T4167] ? verify_lock_unused+0x140/0x140 [ 60.658662][ T4167] down_write+0x38/0x60 [ 60.662891][ T4167] ? ocfs2_reserve_suballoc_bits+0x161/0x4350 [ 60.669052][ T4167] ocfs2_reserve_suballoc_bits+0x161/0x4350 [ 60.675112][ T4167] ? __lock_acquire+0x7c60/0x7c60 [ 60.680122][ T4167] ? mark_lock+0x94/0x320 [ 60.684790][ T4167] ? lockdep_hardirqs_on_prepare+0x3fc/0x760 [ 60.690758][ T4167] ? lock_chain_count+0x20/0x20 [ 60.695795][ T4167] ? __rwlock_init+0x140/0x140 [ 60.700646][ T4167] ? _raw_spin_lock_irqsave+0x7f/0xf0 [ 60.706183][ T4167] ? ocfs2_block_group_search+0x470/0x470 [ 60.711901][ T4167] ? _raw_spin_unlock_irqrestore+0x82/0x100 [ 60.717874][ T4167] ? lockdep_hardirqs_on+0x94/0x140 [ 60.724896][ T4167] ? _raw_spin_unlock_irqrestore+0xaa/0x100 [ 60.730776][ T4167] ? _raw_spin_unlock+0x40/0x40 [ 60.735703][ T4167] ? stack_trace_save+0x98/0xe0 [ 60.740546][ T4167] ? stack_trace_snprint+0xf0/0xf0 [ 60.745669][ T4167] ? stack_depot_save+0x404/0x440 [ 60.750680][ T4167] ? __kasan_kmalloc+0xcc/0xf0 [ 60.755442][ T4167] ? __kasan_kmalloc+0xb5/0xf0 [ 60.760205][ T4167] ? ocfs2_reserve_new_metadata_blocks+0x110/0x940 [ 60.766721][ T4167] ? ocfs2_init_xattr_set_ctxt+0x2e1/0x6c0 [ 60.772511][ T4167] ? ocfs2_xattr_set+0xb69/0x11e0 [ 60.777518][ T4167] ? __vfs_setxattr+0x3e0/0x420 [ 60.782352][ T4167] ? __vfs_setxattr_noperm+0x129/0x5e0 [ 60.787873][ T4167] ? vfs_setxattr+0x168/0x2f0 [ 60.792673][ T4167] ? setxattr+0x2da/0x300 [ 60.797142][ T4167] ? __se_sys_fsetxattr+0x15e/0x1d0 [ 60.802341][ T4167] ? do_syscall_64+0x4c/0xa0 [ 60.807012][ T4167] ? entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.813170][ T4167] ocfs2_reserve_new_metadata_blocks+0x400/0x940 [ 60.819707][ T4167] ? ocfs2_init_steal_slots+0x150/0x150 [ 60.825257][ T4167] ? ocfs2_xattr_block_set+0x2b00/0x2b00 [ 60.830887][ T4167] ocfs2_init_xattr_set_ctxt+0x2e1/0x6c0 [ 60.836533][ T4167] ? ocfs2_prepare_refcount_xattr+0xf20/0xf20 [ 60.842680][ T4167] ? ocfs2_truncate_log_needs_flush+0x131/0x2e0 [ 60.848909][ T4167] ? ocfs2_remove_btree_range+0x1480/0x1480 [ 60.854797][ T4167] ? preempt_count_add+0x8d/0x190 [ 60.860179][ T4167] ? up_write+0x1bb/0x420 [ 60.864589][ T4167] ocfs2_xattr_set+0xb69/0x11e0 [ 60.869531][ T4167] ? __ocfs2_xattr_set_handle+0xf10/0xf10 [ 60.875245][ T4167] ? evm_protected_xattr_common+0x170/0x190 [ 60.881213][ T4167] ? evm_protect_xattr+0x76f/0x970 [ 60.892314][ T4167] ? ocfs2_xattr_security_get+0x40/0x40 [ 60.898159][ T4167] __vfs_setxattr+0x3e0/0x420 [ 60.903025][ T4167] __vfs_setxattr_noperm+0x129/0x5e0 [ 60.908745][ T4167] vfs_setxattr+0x168/0x2f0 [ 60.913516][ T4167] ? xattr_permission+0x500/0x500 [ 60.918670][ T4167] ? strncpy_from_user+0x1fb/0x360 [ 60.924080][ T4167] setxattr+0x2da/0x300 [ 60.928314][ T4167] ? path_setxattr+0x280/0x280 [ 60.933470][ T4167] ? sb_start_write+0x112/0x1c0 [ 60.938642][ T4167] ? mnt_want_write_file+0x166/0x200 [ 60.944045][ T4167] __se_sys_fsetxattr+0x15e/0x1d0 [ 60.949229][ T4167] do_syscall_64+0x4c/0xa0 [ 60.953739][ T4167] ? clear_bhb_loop+0x15/0x70 [ 60.958758][ T4167] ? clear_bhb_loop+0x15/0x70 [ 60.963728][ T4167] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.969897][ T4167] RIP: 0033:0x7f3d4c5046b9 [ 60.974649][ T4167] Code: 28 00 00 00 75 05 48 83 c4