Warning: Permanently added '10.128.10.2' (ED25519) to the list of known hosts. executing program [ 55.584479][ T4162] loop0: detected capacity change from 0 to 32768 [ 55.632042][ T4162] ======================================================= [ 55.632042][ T4162] WARNING: The mand mount option has been deprecated and [ 55.632042][ T4162] and is ignored by this kernel. Remove the mand [ 55.632042][ T4162] option from the mount to silence this warning. [ 55.632042][ T4162] ======================================================= [ 55.695133][ T4162] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 55.718269][ T4162] [ 55.720610][ T4162] ====================================================== [ 55.727606][ T4162] WARNING: possible circular locking dependency detected [ 55.734594][ T4162] 5.15.178-syzkaller #0 Not tainted [ 55.739766][ T4162] ------------------------------------------------------ [ 55.746760][ T4162] syz-executor425/4162 is trying to acquire lock: [ 55.753148][ T4162] ffff888073baed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 55.766391][ T4162] [ 55.766391][ T4162] but task is already holding lock: [ 55.773731][ T4162] ffff8880763e86f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 55.783186][ T4162] [ 55.783186][ T4162] which lock already depends on the new lock. [ 55.783186][ T4162] [ 55.793574][ T4162] [ 55.793574][ T4162] the existing dependency chain (in reverse order) is: [ 55.802559][ T4162] [ 55.802559][ T4162] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 55.810363][ T4162] lock_acquire+0x1db/0x4f0 [ 55.815382][ T4162] down_read+0x45/0x2e0 [ 55.820052][ T4162] ocfs2_init_acl+0x398/0x930 [ 55.825240][ T4162] ocfs2_mknod+0x1e8f/0x2cd0 [ 55.830331][ T4162] ocfs2_create+0x194/0x430 [ 55.835335][ T4162] path_openat+0x130a/0x2f20 [ 55.840432][ T4162] do_filp_open+0x21c/0x460 [ 55.845446][ T4162] do_sys_openat2+0x13b/0x4f0 [ 55.850623][ T4162] __x64_sys_openat+0x243/0x290 [ 55.855978][ T4162] do_syscall_64+0x3b/0xb0 [ 55.860899][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.867297][ T4162] [ 55.867297][ T4162] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 55.874563][ T4162] lock_acquire+0x1db/0x4f0 [ 55.879568][ T4162] start_this_handle+0x12e1/0x1570 [ 55.885196][ T4162] jbd2__journal_start+0x2d1/0x5c0 [ 55.890822][ T4162] jbd2_journal_start+0x25/0x30 [ 55.896195][ T4162] ocfs2_start_trans+0x3c2/0x6f0 [ 55.901649][ T4162] ocfs2_mknod+0x15bb/0x2cd0 [ 55.906740][ T4162] ocfs2_create+0x194/0x430 [ 55.911824][ T4162] path_openat+0x130a/0x2f20 [ 55.916996][ T4162] do_filp_open+0x21c/0x460 [ 55.921993][ T4162] do_sys_openat2+0x13b/0x4f0 [ 55.927167][ T4162] __x64_sys_openat+0x243/0x290 [ 55.932519][ T4162] do_syscall_64+0x3b/0xb0 [ 55.937523][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 55.943914][ T4162] [ 55.943914][ T4162] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 55.952400][ T4162] lock_acquire+0x1db/0x4f0 [ 55.957406][ T4162] down_read+0x45/0x2e0 [ 55.962060][ T4162] ocfs2_start_trans+0x3b7/0x6f0 [ 55.967508][ T4162] ocfs2_mknod+0x15bb/0x2cd0 [ 55.973018][ T4162] ocfs2_create+0x194/0x430 [ 55.978024][ T4162] path_openat+0x130a/0x2f20 [ 55.983110][ T4162] do_filp_open+0x21c/0x460 [ 55.988108][ T4162] do_sys_openat2+0x13b/0x4f0 [ 55.993282][ T4162] __x64_sys_openat+0x243/0x290 [ 55.998640][ T4162] do_syscall_64+0x3b/0xb0 [ 56.003558][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 56.009959][ T4162] [ 56.009959][ T4162] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 56.017647][ T4162] lock_acquire+0x1db/0x4f0 [ 56.022655][ T4162] ocfs2_start_trans+0x2b2/0x6f0 [ 56.028115][ T4162] ocfs2_mknod+0x15bb/0x2cd0 [ 56.033226][ T4162] ocfs2_create+0x194/0x430 [ 56.038324][ T4162] path_openat+0x130a/0x2f20 [ 56.043409][ T4162] do_filp_open+0x21c/0x460 [ 56.048407][ T4162] do_sys_openat2+0x13b/0x4f0 [ 56.053591][ T4162] __x64_sys_openat+0x243/0x290 [ 56.058942][ T4162] do_syscall_64+0x3b/0xb0 [ 56.063888][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 56.070293][ T4162] [ 56.070293][ T4162] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 56.080789][ T4162] lock_acquire+0x1db/0x4f0 [ 56.085791][ T4162] down_write+0x38/0x60 [ 56.090445][ T4162] ocfs2_reserve_local_alloc_bits+0x12e/0x27a0 [ 56.097103][ T4162] ocfs2_reserve_clusters_with_limit+0x1b4/0xb50 [ 56.103947][ T4162] ocfs2_mknod+0x1535/0x2cd0 [ 56.109047][ T4162] ocfs2_create+0x194/0x430 [ 56.114046][ T4162] path_openat+0x130a/0x2f20 [ 56.119131][ T4162] do_filp_open+0x21c/0x460 [ 56.124128][ T4162] do_sys_openat2+0x13b/0x4f0 [ 56.129330][ T4162] __x64_sys_openat+0x243/0x290 [ 56.134705][ T4162] do_syscall_64+0x3b/0xb0 [ 56.139619][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 56.146118][ T4162] [ 56.146118][ T4162] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 56.156601][ T4162] validate_chain+0x1649/0x5930 [ 56.161947][ T4162] __lock_acquire+0x1295/0x1ff0 [ 56.167294][ T4162] lock_acquire+0x1db/0x4f0 [ 56.172301][ T4162] down_write+0x38/0x60 [ 56.176958][ T4162] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 56.183346][ T4162] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 56.190173][ T4162] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 56.196309][ T4162] ocfs2_xattr_set+0xf46/0x1930 [ 56.201658][ T4162] __vfs_setxattr+0x3e7/0x420 [ 56.206835][ T4162] __vfs_setxattr_noperm+0x12a/0x5e0 [ 56.212649][ T4162] vfs_setxattr+0x21d/0x420 [ 56.217654][ T4162] setxattr+0x27e/0x2e0 [ 56.222309][ T4162] path_setxattr+0x1bc/0x2a0 [ 56.227399][ T4162] __x64_sys_lsetxattr+0xb4/0xd0 [ 56.232837][ T4162] do_syscall_64+0x3b/0xb0 [ 56.237755][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 56.244144][ T4162] [ 56.244144][ T4162] other info that might help us debug this: [ 56.244144][ T4162] [ 56.254348][ T4162] Chain exists of: [ 56.254348][ T4162] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 56.254348][ T4162] [ 56.270138][ T4162] Possible unsafe locking scenario: [ 56.270138][ T4162] [ 56.278000][ T4162] CPU0 CPU1 [ 56.283341][ T4162] ---- ---- [ 56.288680][ T4162] lock(&oi->ip_xattr_sem); [ 56.293248][ T4162] lock(jbd2_handle); [ 56.299829][ T4162] lock(&oi->ip_xattr_sem); [ 56.307004][ T4162] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 56.314269][ T4162] [ 56.314269][ T4162] *** DEADLOCK *** [ 56.314269][ T4162] [ 56.322384][ T4162] 3 locks held by syz-executor425/4162: [ 56.327914][ T4162] #0: ffff888076792460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 56.337026][ T4162] #1: ffff8880763e89c8 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_setxattr+0x1dd/0x420 [ 56.347448][ T4162] #2: ffff8880763e86f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 56.357438][ T4162] [ 56.357438][ T4162] stack backtrace: [ 56.363308][ T4162] CPU: 1 PID: 4162 Comm: syz-executor425 Not tainted 5.15.178-syzkaller #0 [ 56.371867][ T4162] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 56.381899][ T4162] Call Trace: [ 56.385162][ T4162] [ 56.388076][ T4162] dump_stack_lvl+0x1e3/0x2d0 [ 56.392735][ T4162] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 56.398352][ T4162] ? print_circular_bug+0x12b/0x1a0 [ 56.403527][ T4162] check_noncircular+0x2f8/0x3b0 [ 56.408443][ T4162] ? add_chain_block+0x850/0x850 [ 56.413359][ T4162] ? lockdep_lock+0x11f/0x2a0 [ 56.418017][ T4162] ? __lock_acquire+0x1295/0x1ff0 [ 56.423019][ T4162] validate_chain+0x1649/0x5930 [ 56.427854][ T4162] ? mark_lock+0x98/0x340 [ 56.432161][ T4162] ? reacquire_held_locks+0x660/0x660 [ 56.437519][ T4162] ? ocfs2_get_system_file_inode+0x1e0/0x7b0 [ 56.443478][ T4162] ? __lock_acquire+0x1ff0/0x1ff0 [ 56.448484][ T4162] ? mark_lock+0x98/0x340 [ 56.452792][ T4162] __lock_acquire+0x1295/0x1ff0 [ 56.457627][ T4162] lock_acquire+0x1db/0x4f0 [ 56.462111][ T4162] ? ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 56.468168][ T4162] ? read_lock_is_recursive+0x10/0x10 [ 56.473524][ T4162] ? __might_sleep+0xc0/0xc0 [ 56.478111][ T4162] ? __lock_acquire+0x1295/0x1ff0 [ 56.483116][ T4162] down_write+0x38/0x60 [ 56.487251][ T4162] ? ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 56.493295][ T4162] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 56.499171][ T4162] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 56.505132][ T4162] ? print_irqtrace_events+0x210/0x210 [ 56.510569][ T4162] ? do_raw_spin_unlock+0x137/0x8b0 [ 56.515746][ T4162] ? _raw_spin_unlock_irqrestore+0x8b/0x130 [ 56.521633][ T4162] ? lockdep_hardirqs_on+0x94/0x130 [ 56.526809][ T4162] ? ocfs2_block_group_search+0x490/0x490 [ 56.532505][ T4162] ? stack_trace_save+0x113/0x1c0 [ 56.537513][ T4162] ? stack_trace_snprint+0xe0/0xe0 [ 56.542603][ T4162] ? stack_depot_save+0x3db/0x440 [ 56.547631][ T4162] ? ____kasan_kmalloc+0xd1/0xf0 [ 56.552547][ T4162] ? ____kasan_kmalloc+0xba/0xf0 [ 56.557466][ T4162] ? kmem_cache_alloc_trace+0x143/0x290 [ 56.562992][ T4162] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 56.569477][ T4162] ? ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 56.575267][ T4162] ? ocfs2_xattr_set+0xf46/0x1930 [ 56.580268][ T4162] ? __vfs_setxattr+0x3e7/0x420 [ 56.585102][ T4162] ? __vfs_setxattr_noperm+0x12a/0x5e0 [ 56.590540][ T4162] ? vfs_setxattr+0x21d/0x420 [ 56.595198][ T4162] ? setxattr+0x27e/0x2e0 [ 56.599508][ T4162] ? path_setxattr+0x1bc/0x2a0 [ 56.604253][ T4162] ? __x64_sys_lsetxattr+0xb4/0xd0 [ 56.609348][ T4162] ? do_syscall_64+0x3b/0xb0 [ 56.613936][ T4162] ? entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 56.620012][ T4162] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 56.626503][ T4162] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 56.632821][ T4162] ? ocfs2_init_steal_slots+0x150/0x150 [ 56.638352][ T4162] ? ocfs2_xattr_block_set+0x32a0/0x32a0 [ 56.643971][ T4162] ? ocfs2_xattr_set+0xef8/0x1930 [ 56.648980][ T4162] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 56.654593][ T4162] ? ocfs2_prepare_refcount_xattr+0x1220/0x1220 [ 56.660812][ T4162] ? up_write+0x19d/0x580 [ 56.665125][ T4162] ? ocfs2_remove_btree_range+0x18a0/0x18a0 [ 56.671009][ T4162] ? __up_read+0x690/0x690 [ 56.675876][ T4162] ? ocfs2_xattr_set+0x4d1/0x1930 [ 56.680907][ T4162] ocfs2_xattr_set+0xf46/0x1930 [ 56.685749][ T4162] ? __ocfs2_xattr_set_handle+0x1060/0x1060 [ 56.691631][ T4162] ? reacquire_held_locks+0x660/0x660 [ 56.696998][ T4162] ? __lock_acquire+0x1295/0x1ff0 [ 56.702013][ T4162] ? aa_get_newest_label+0xf9/0x6c0 [ 56.707202][ T4162] ? posix_xattr_acl+0xa5/0xd0 [ 56.711943][ T4162] ? evm_protect_xattr+0x33b/0xa70 [ 56.717036][ T4162] ? ocfs2_xattr_trusted_get+0x40/0x40 [ 56.722471][ T4162] __vfs_setxattr+0x3e7/0x420 [ 56.727156][ T4162] __vfs_setxattr_noperm+0x12a/0x5e0 [ 56.732447][ T4162] vfs_setxattr+0x21d/0x420 [ 56.736933][ T4162] ? xattr_permission+0x4f0/0x4f0 [ 56.741936][ T4162] ? __might_fault+0xb4/0x110 [ 56.746593][ T4162] ? strncpy_from_user+0x209/0x370 [ 56.751685][ T4162] setxattr+0x27e/0x2e0 [ 56.755819][ T4162] ? path_setxattr+0x2a0/0x2a0 [ 56.760572][ T4162] ? preempt_count_add+0x8f/0x180 [ 56.765586][ T4162] ? __mnt_want_write+0x1e6/0x260 [ 56.770595][ T4162] path_setxattr+0x1bc/0x2a0 [ 56.775167][ T4162] ? simple_xattr_list_add+0xf0/0xf0 [ 56.780434][ T4162] ? syscall_enter_from_user_mode+0x2e/0x240 [ 56.786412][ T4162] __x64_sys_lsetxattr+0xb4/0xd0 [ 56.791333][ T4162] do_syscall_64+0x3b/0xb0 [ 56.795727][ T4162] ? clear_bhb_loop+0x15/0x70 [ 56.800387][ T4162] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 56.806291][ T4162] RIP: 0033:0x7ffbb1dfd6b9 [ 56.810690][ T4162] 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 [ 56.830290][ T4162] RSP: 002b:00007ffd28d4de88 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd [ 56.838699][ T4162] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007ffbb1dfd6b9 [ 56.846657][ T4162] RDX: 0000000000000000 RSI