Warning: Permanently added '10.128.10.25' (ED25519) to the list of known hosts. executing program [ 53.822925][ T4161] loop0: detected capacity change from 0 to 32768 [ 53.867891][ T4161] ======================================================= [ 53.867891][ T4161] WARNING: The mand mount option has been deprecated and [ 53.867891][ T4161] and is ignored by this kernel. Remove the mand [ 53.867891][ T4161] option from the mount to silence this warning. [ 53.867891][ T4161] ======================================================= [ 53.933665][ T4161] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 53.957667][ T4161] [ 53.960004][ T4161] ====================================================== [ 53.967013][ T4161] WARNING: possible circular locking dependency detected [ 53.974010][ T4161] 5.15.172-syzkaller #0 Not tainted [ 53.979183][ T4161] ------------------------------------------------------ [ 53.986180][ T4161] syz-executor178/4161 is trying to acquire lock: [ 53.992578][ T4161] ffff8880750a6d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 54.005810][ T4161] [ 54.005810][ T4161] but task is already holding lock: [ 54.013151][ T4161] ffff88806fd406f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 54.022620][ T4161] [ 54.022620][ T4161] which lock already depends on the new lock. [ 54.022620][ T4161] [ 54.032998][ T4161] [ 54.032998][ T4161] the existing dependency chain (in reverse order) is: [ 54.041991][ T4161] [ 54.041991][ T4161] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 54.049787][ T4161] lock_acquire+0x1db/0x4f0 [ 54.054793][ T4161] down_read+0x45/0x2e0 [ 54.059460][ T4161] ocfs2_init_acl+0x398/0x930 [ 54.064645][ T4161] ocfs2_mknod+0x1e8f/0x2cd0 [ 54.069736][ T4161] ocfs2_create+0x194/0x430 [ 54.074743][ T4161] path_openat+0x130a/0x2f20 [ 54.079833][ T4161] do_filp_open+0x21c/0x460 [ 54.084839][ T4161] do_sys_openat2+0x13b/0x4f0 [ 54.090020][ T4161] __x64_sys_openat+0x243/0x290 [ 54.095389][ T4161] do_syscall_64+0x3b/0xb0 [ 54.100309][ T4161] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.106708][ T4161] [ 54.106708][ T4161] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 54.113983][ T4161] lock_acquire+0x1db/0x4f0 [ 54.118986][ T4161] start_this_handle+0x12e1/0x1570 [ 54.124604][ T4161] jbd2__journal_start+0x2d1/0x5c0 [ 54.130221][ T4161] jbd2_journal_start+0x25/0x30 [ 54.135578][ T4161] ocfs2_start_trans+0x3c2/0x6f0 [ 54.141015][ T4161] ocfs2_mknod+0x15bb/0x2cd0 [ 54.146113][ T4161] ocfs2_create+0x194/0x430 [ 54.151126][ T4161] path_openat+0x130a/0x2f20 [ 54.156216][ T4161] do_filp_open+0x21c/0x460 [ 54.161231][ T4161] do_sys_openat2+0x13b/0x4f0 [ 54.166414][ T4161] __x64_sys_openat+0x243/0x290 [ 54.171785][ T4161] do_syscall_64+0x3b/0xb0 [ 54.176707][ T4161] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.183123][ T4161] [ 54.183123][ T4161] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 54.191632][ T4161] lock_acquire+0x1db/0x4f0 [ 54.196654][ T4161] down_read+0x45/0x2e0 [ 54.201317][ T4161] ocfs2_start_trans+0x3b7/0x6f0 [ 54.206760][ T4161] ocfs2_mknod+0x15bb/0x2cd0 [ 54.211855][ T4161] ocfs2_create+0x194/0x430 [ 54.216875][ T4161] path_openat+0x130a/0x2f20 [ 54.221974][ T4161] do_filp_open+0x21c/0x460 [ 54.226998][ T4161] do_sys_openat2+0x13b/0x4f0 [ 54.232188][ T4161] __x64_sys_openat+0x243/0x290 [ 54.237547][ T4161] do_syscall_64+0x3b/0xb0 [ 54.242469][ T4161] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.248871][ T4161] [ 54.248871][ T4161] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 54.256346][ T4161] lock_acquire+0x1db/0x4f0 [ 54.261360][ T4161] ocfs2_start_trans+0x2b2/0x6f0 [ 54.266803][ T4161] ocfs2_mknod+0x15bb/0x2cd0 [ 54.271899][ T4161] ocfs2_create+0x194/0x430 [ 54.276904][ T4161] path_openat+0x130a/0x2f20 [ 54.281995][ T4161] do_filp_open+0x21c/0x460 [ 54.287010][ T4161] do_sys_openat2+0x13b/0x4f0 [ 54.292192][ T4161] __x64_sys_openat+0x243/0x290 [ 54.297553][ T4161] do_syscall_64+0x3b/0xb0 [ 54.302471][ T4161] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.308875][ T4161] [ 54.308875][ T4161] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 54.319391][ T4161] lock_acquire+0x1db/0x4f0 [ 54.324408][ T4161] down_write+0x38/0x60 [ 54.329168][ T4161] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 54.335576][ T4161] ocfs2_reserve_clusters_with_limit+0x3d9/0xb50 [ 54.342419][ T4161] ocfs2_mknod+0x1535/0x2cd0 [ 54.347528][ T4161] ocfs2_create+0x194/0x430 [ 54.352535][ T4161] path_openat+0x130a/0x2f20 [ 54.357626][ T4161] do_filp_open+0x21c/0x460 [ 54.362646][ T4161] do_sys_openat2+0x13b/0x4f0 [ 54.367837][ T4161] __x64_sys_openat+0x243/0x290 [ 54.373201][ T4161] do_syscall_64+0x3b/0xb0 [ 54.378125][ T4161] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.384524][ T4161] [ 54.384524][ T4161] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 54.395018][ T4161] validate_chain+0x1649/0x5930 [ 54.400556][ T4161] __lock_acquire+0x1295/0x1ff0 [ 54.405917][ T4161] lock_acquire+0x1db/0x4f0 [ 54.410924][ T4161] down_write+0x38/0x60 [ 54.415584][ T4161] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 54.421996][ T4161] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 54.428831][ T4161] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 54.434966][ T4161] ocfs2_xattr_set+0xf46/0x1930 [ 54.440319][ T4161] __vfs_setxattr+0x3e7/0x420 [ 54.445509][ T4161] __vfs_setxattr_noperm+0x12a/0x5e0 [ 54.451297][ T4161] vfs_setxattr+0x21d/0x420 [ 54.456392][ T4161] setxattr+0x27e/0x2e0 [ 54.461055][ T4161] path_setxattr+0x1bc/0x2a0 [ 54.466167][ T4161] __x64_sys_setxattr+0xb7/0xd0 [ 54.471525][ T4161] do_syscall_64+0x3b/0xb0 [ 54.476448][ T4161] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.482850][ T4161] [ 54.482850][ T4161] other info that might help us debug this: [ 54.482850][ T4161] [ 54.493060][ T4161] Chain exists of: [ 54.493060][ T4161] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 54.493060][ T4161] [ 54.508771][ T4161] Possible unsafe locking scenario: [ 54.508771][ T4161] [ 54.516198][ T4161] CPU0 CPU1 [ 54.521552][ T4161] ---- ---- [ 54.526894][ T4161] lock(&oi->ip_xattr_sem); [ 54.531468][ T4161] lock(jbd2_handle); [ 54.538044][ T4161] lock(&oi->ip_xattr_sem); [ 54.545144][ T4161] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 54.552424][ T4161] [ 54.552424][ T4161] *** DEADLOCK *** [ 54.552424][ T4161] [ 54.560546][ T4161] 3 locks held by syz-executor178/4161: [ 54.566069][ T4161] #0: ffff88802ad50460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 54.575194][ T4161] #1: ffff88806fd409c8 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_setxattr+0x1dd/0x420 [ 54.585617][ T4161] #2: ffff88806fd406f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 54.595535][ T4161] [ 54.595535][ T4161] stack backtrace: [ 54.601423][ T4161] CPU: 0 PID: 4161 Comm: syz-executor178 Not tainted 5.15.172-syzkaller #0 [ 54.609992][ T4161] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 [ 54.620043][ T4161] Call Trace: [ 54.623307][ T4161] [ 54.626222][ T4161] dump_stack_lvl+0x1e3/0x2d0 [ 54.630893][ T4161] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 54.636520][ T4161] ? print_circular_bug+0x12b/0x1a0 [ 54.641704][ T4161] check_noncircular+0x2f8/0x3b0 [ 54.646629][ T4161] ? add_chain_block+0x850/0x850 [ 54.651558][ T4161] ? lockdep_lock+0x11f/0x2a0 [ 54.656218][ T4161] ? __lock_acquire+0x1295/0x1ff0 [ 54.661230][ T4161] validate_chain+0x1649/0x5930 [ 54.666074][ T4161] ? mark_lock+0x98/0x340 [ 54.670386][ T4161] ? reacquire_held_locks+0x660/0x660 [ 54.675746][ T4161] ? ocfs2_get_system_file_inode+0x1e0/0x7b0 [ 54.681709][ T4161] ? __lock_acquire+0x1ff0/0x1ff0 [ 54.686720][ T4161] ? mark_lock+0x98/0x340 [ 54.691032][ T4161] __lock_acquire+0x1295/0x1ff0 [ 54.695867][ T4161] lock_acquire+0x1db/0x4f0 [ 54.700355][ T4161] ? ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 54.706411][ T4161] ? read_lock_is_recursive+0x10/0x10 [ 54.711766][ T4161] ? __might_sleep+0xc0/0xc0 [ 54.716346][ T4161] ? __lock_acquire+0x1295/0x1ff0 [ 54.721365][ T4161] down_write+0x38/0x60 [ 54.725510][ T4161] ? ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 54.731579][ T4161] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 54.737462][ T4161] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 54.743425][ T4161] ? print_irqtrace_events+0x210/0x210 [ 54.748867][ T4161] ? do_raw_spin_unlock+0x137/0x8b0 [ 54.754048][ T4161] ? _raw_spin_unlock_irqrestore+0x8b/0x130 [ 54.759933][ T4161] ? lockdep_hardirqs_on+0x94/0x130 [ 54.765122][ T4161] ? ocfs2_block_group_search+0x490/0x490 [ 54.770836][ T4161] ? stack_trace_save+0x113/0x1c0 [ 54.775855][ T4161] ? stack_trace_snprint+0xe0/0xe0 [ 54.780959][ T4161] ? stack_depot_save+0x3db/0x440 [ 54.785978][ T4161] ? ____kasan_kmalloc+0xd1/0xf0 [ 54.790898][ T4161] ? ____kasan_kmalloc+0xba/0xf0 [ 54.795818][ T4161] ? kmem_cache_alloc_trace+0x143/0x290 [ 54.801348][ T4161] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 54.807843][ T4161] ? ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 54.813639][ T4161] ? ocfs2_xattr_set+0xf46/0x1930 [ 54.818649][ T4161] ? __vfs_setxattr+0x3e7/0x420 [ 54.823484][ T4161] ? __vfs_setxattr_noperm+0x12a/0x5e0 [ 54.828925][ T4161] ? vfs_setxattr+0x21d/0x420 [ 54.833585][ T4161] ? setxattr+0x27e/0x2e0 [ 54.837897][ T4161] ? path_setxattr+0x1bc/0x2a0 [ 54.842645][ T4161] ? __x64_sys_setxattr+0xb7/0xd0 [ 54.847675][ T4161] ? do_syscall_64+0x3b/0xb0 [ 54.852260][ T4161] ? entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 54.858354][ T4161] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 54.864855][ T4161] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 54.871178][ T4161] ? ocfs2_init_steal_slots+0x150/0x150 [ 54.876717][ T4161] ? ocfs2_xattr_block_set+0x32a0/0x32a0 [ 54.882342][ T4161] ? ocfs2_xattr_set+0xef8/0x1930 [ 54.887361][ T4161] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 54.892982][ T4161] ? ocfs2_prepare_refcount_xattr+0x1220/0x1220 [ 54.899209][ T4161] ? up_write+0x19d/0x580 [ 54.903536][ T4161] ? ocfs2_remove_btree_range+0x18a0/0x18a0 [ 54.909417][ T4161] ? __up_read+0x690/0x690 [ 54.913820][ T4161] ? ocfs2_xattr_set+0x4d1/0x1930 [ 54.918830][ T4161] ocfs2_xattr_set+0xf46/0x1930 [ 54.923674][ T4161] ? __ocfs2_xattr_set_handle+0x1060/0x1060 [ 54.929557][ T4161] ? stack_trace_snprint+0xe0/0xe0 [ 54.934659][ T4161] ? lockdep_unlock+0x166/0x300 [ 54.939497][ T4161] ? lockdep_unlock+0x166/0x300 [ 54.944339][ T4161] ? __lock_acquire+0x1295/0x1ff0 [ 54.949434][ T4161] ? aa_get_newest_label+0xf9/0x6c0 [ 54.954619][ T4161] ? posix_xattr_acl+0xa5/0xd0 [ 54.959367][ T4161] ? evm_protect_xattr+0x33b/0xa70 [ 54.964474][ T4161] ? ocfs2_xattr_trusted_get+0x40/0x40 [ 54.969918][ T4161] __vfs_setxattr+0x3e7/0x420 [ 54.974587][ T4161] __vfs_setxattr_noperm+0x12a/0x5e0 [ 54.979861][ T4161] vfs_setxattr+0x21d/0x420 [ 54.984365][ T4161] ? xattr_permission+0x4f0/0x4f0 [ 54.989374][ T4161] ? __might_fault+0xb4/0x110 [ 54.994052][ T4161] ? strncpy_from_user+0x209/0x370 [ 54.999153][ T4161] setxattr+0x27e/0x2e0 [ 55.003299][ T4161] ? path_setxattr+0x2a0/0x2a0 [ 55.008058][ T4161] ? preempt_count_add+0x8f/0x180 [ 55.013076][ T4161] ? __mnt_want_write+0x1e6/0x260 [ 55.018207][ T4161] path_setxattr+0x1bc/0x2a0 [ 55.022798][ T4161] ? simple_xattr_list_add+0xf0/0xf0 [ 55.028075][ T4161] ? syscall_enter_from_user_mode+0x2e/0x240 [ 55.034058][ T4161] __x64_sys_setxattr+0xb7/0xd0 [ 55.038896][ T4161] do_syscall_64+0x3b/0xb0 [ 55.043301][ T4161] ? clear_bhb_loop+0x15/0x70 [ 55.047964][ T4161] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.053845][ T4161] RIP: 0033:0x7f51beb796b9 [ 55.058257][ T4161] 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 [ 55.077848][ T4161] RSP: 002b:00007ffd909a4bb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc [ 55.086253][ T4161] RAX: fffffff