Warning: Permanently added '10.128.1.135' (ED25519) to the list of known hosts. executing program syzkaller login: [ 56.947244][ T4164] loop0: detected capacity change from 0 to 32768 [ 57.036811][ T4164] (syz-executor229,4164,1):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. [ 57.052649][ T4164] (syz-executor229,4164,1):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. [ 57.080635][ T4164] JBD2: Ignoring recovery information on journal [ 57.110143][ T4164] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 57.147743][ T4164] [ 57.150110][ T4164] ====================================================== [ 57.157121][ T4164] WARNING: possible circular locking dependency detected [ 57.164138][ T4164] 5.15.179-syzkaller #0 Not tainted [ 57.169317][ T4164] ------------------------------------------------------ [ 57.176327][ T4164] syz-executor229/4164 is trying to acquire lock: [ 57.182722][ T4164] ffff888071e8ed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 57.195952][ T4164] [ 57.195952][ T4164] but task is already holding lock: [ 57.203314][ T4164] ffff888071e95c78 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 57.212783][ T4164] [ 57.212783][ T4164] which lock already depends on the new lock. [ 57.212783][ T4164] [ 57.223167][ T4164] [ 57.223167][ T4164] the existing dependency chain (in reverse order) is: [ 57.232176][ T4164] [ 57.232176][ T4164] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 57.239979][ T4164] lock_acquire+0x1db/0x4f0 [ 57.244989][ T4164] down_read+0x45/0x2e0 [ 57.249662][ T4164] ocfs2_init_acl+0x398/0x930 [ 57.254861][ T4164] ocfs2_mknod+0x1e8f/0x2cd0 [ 57.259967][ T4164] ocfs2_create+0x194/0x430 [ 57.265097][ T4164] path_openat+0x130a/0x2f20 [ 57.270226][ T4164] do_filp_open+0x21c/0x460 [ 57.275259][ T4164] do_sys_openat2+0x13b/0x4f0 [ 57.280470][ T4164] __x64_sys_creat+0x11f/0x160 [ 57.285748][ T4164] do_syscall_64+0x3b/0xb0 [ 57.290679][ T4164] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 57.297101][ T4164] [ 57.297101][ T4164] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 57.304416][ T4164] lock_acquire+0x1db/0x4f0 [ 57.309462][ T4164] start_this_handle+0x12e1/0x1570 [ 57.315142][ T4164] jbd2__journal_start+0x2d1/0x5c0 [ 57.320777][ T4164] jbd2_journal_start+0x25/0x30 [ 57.326142][ T4164] ocfs2_start_trans+0x3c2/0x6f0 [ 57.331602][ T4164] ocfs2_modify_bh+0xe9/0x4c0 [ 57.336945][ T4164] ocfs2_local_read_info+0x1587/0x19e0 [ 57.342929][ T4164] dquot_load_quota_sb+0x754/0xb90 [ 57.348577][ T4164] dquot_load_quota_inode+0x318/0x600 [ 57.354470][ T4164] ocfs2_enable_quotas+0x165/0x440 [ 57.360097][ T4164] ocfs2_fill_super+0x4423/0x5890 [ 57.365648][ T4164] mount_bdev+0x2c9/0x3f0 [ 57.370497][ T4164] legacy_get_tree+0xeb/0x180 [ 57.375686][ T4164] vfs_get_tree+0x88/0x270 [ 57.380613][ T4164] do_new_mount+0x2ba/0xb40 [ 57.385627][ T4164] __se_sys_mount+0x2d5/0x3c0 [ 57.390812][ T4164] do_syscall_64+0x3b/0xb0 [ 57.395737][ T4164] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 57.402146][ T4164] [ 57.402146][ T4164] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 57.410645][ T4164] lock_acquire+0x1db/0x4f0 [ 57.415657][ T4164] down_read+0x45/0x2e0 [ 57.420321][ T4164] ocfs2_start_trans+0x3b7/0x6f0 [ 57.425767][ T4164] ocfs2_modify_bh+0xe9/0x4c0 [ 57.430954][ T4164] ocfs2_local_read_info+0x1587/0x19e0 [ 57.436924][ T4164] dquot_load_quota_sb+0x754/0xb90 [ 57.442556][ T4164] dquot_load_quota_inode+0x318/0x600 [ 57.448444][ T4164] ocfs2_enable_quotas+0x165/0x440 [ 57.454066][ T4164] ocfs2_fill_super+0x4423/0x5890 [ 57.459597][ T4164] mount_bdev+0x2c9/0x3f0 [ 57.464431][ T4164] legacy_get_tree+0xeb/0x180 [ 57.469616][ T4164] vfs_get_tree+0x88/0x270 [ 57.474543][ T4164] do_new_mount+0x2ba/0xb40 [ 57.479564][ T4164] __se_sys_mount+0x2d5/0x3c0 [ 57.484769][ T4164] do_syscall_64+0x3b/0xb0 [ 57.489717][ T4164] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 57.496147][ T4164] [ 57.496147][ T4164] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 57.503615][ T4164] lock_acquire+0x1db/0x4f0 [ 57.508629][ T4164] ocfs2_start_trans+0x2b2/0x6f0 [ 57.514075][ T4164] ocfs2_mknod+0x15bb/0x2cd0 [ 57.519173][ T4164] ocfs2_create+0x194/0x430 [ 57.524181][ T4164] path_openat+0x130a/0x2f20 [ 57.529278][ T4164] do_filp_open+0x21c/0x460 [ 57.534287][ T4164] do_sys_openat2+0x13b/0x4f0 [ 57.539485][ T4164] __x64_sys_creat+0x11f/0x160 [ 57.544755][ T4164] do_syscall_64+0x3b/0xb0 [ 57.549680][ T4164] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 57.556078][ T4164] [ 57.556078][ T4164] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}: [ 57.566578][ T4164] lock_acquire+0x1db/0x4f0 [ 57.571590][ T4164] down_write+0x38/0x60 [ 57.576253][ T4164] ocfs2_reserve_local_alloc_bits+0x12e/0x27a0 [ 57.582915][ T4164] ocfs2_reserve_clusters_with_limit+0x1b4/0xb50 [ 57.589749][ T4164] ocfs2_mknod+0x1535/0x2cd0 [ 57.594844][ T4164] ocfs2_create+0x194/0x430 [ 57.599851][ T4164] path_openat+0x130a/0x2f20 [ 57.604954][ T4164] do_filp_open+0x21c/0x460 [ 57.609962][ T4164] do_sys_openat2+0x13b/0x4f0 [ 57.615147][ T4164] __x64_sys_creat+0x11f/0x160 [ 57.620418][ T4164] do_syscall_64+0x3b/0xb0 [ 57.625343][ T4164] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 57.631743][ T4164] [ 57.631743][ T4164] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}: [ 57.642377][ T4164] validate_chain+0x1649/0x5930 [ 57.647749][ T4164] __lock_acquire+0x1295/0x1ff0 [ 57.653109][ T4164] lock_acquire+0x1db/0x4f0 [ 57.658158][ T4164] down_write+0x38/0x60 [ 57.662826][ T4164] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 57.669250][ T4164] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 57.676093][ T4164] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 57.682241][ T4164] ocfs2_xattr_set+0xf46/0x1930 [ 57.687607][ T4164] __vfs_setxattr+0x3e7/0x420 [ 57.692800][ T4164] __vfs_setxattr_noperm+0x12a/0x5e0 [ 57.698607][ T4164] vfs_setxattr+0x21d/0x420 [ 57.703757][ T4164] setxattr+0x27e/0x2e0 [ 57.708436][ T4164] path_setxattr+0x1bc/0x2a0 [ 57.713537][ T4164] __x64_sys_lsetxattr+0xb4/0xd0 [ 57.718985][ T4164] do_syscall_64+0x3b/0xb0 [ 57.723918][ T4164] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 57.730372][ T4164] [ 57.730372][ T4164] other info that might help us debug this: [ 57.730372][ T4164] [ 57.740625][ T4164] Chain exists of: [ 57.740625][ T4164] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 57.740625][ T4164] [ 57.756349][ T4164] Possible unsafe locking scenario: [ 57.756349][ T4164] [ 57.763792][ T4164] CPU0 CPU1 [ 57.769142][ T4164] ---- ---- [ 57.774496][ T4164] lock(&oi->ip_xattr_sem); [ 57.779071][ T4164] lock(jbd2_handle); [ 57.785663][ T4164] lock(&oi->ip_xattr_sem); [ 57.792772][ T4164] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 57.800049][ T4164] [ 57.800049][ T4164] *** DEADLOCK *** [ 57.800049][ T4164] [ 57.808187][ T4164] 3 locks held by syz-executor229/4164: [ 57.813719][ T4164] #0: ffff88802ab3e460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 57.822869][ T4164] #1: ffff888071e95f48 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_setxattr+0x1dd/0x420 [ 57.833300][ T4164] #2: ffff888071e95c78 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x62f/0x1930 [ 57.843218][ T4164] [ 57.843218][ T4164] stack backtrace: [ 57.849108][ T4164] CPU: 1 PID: 4164 Comm: syz-executor229 Not tainted 5.15.179-syzkaller #0 [ 57.857687][ T4164] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 57.867737][ T4164] Call Trace: [ 57.871005][ T4164] [ 57.873938][ T4164] dump_stack_lvl+0x1e3/0x2d0 [ 57.878613][ T4164] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 57.884241][ T4164] ? print_circular_bug+0x12b/0x1a0 [ 57.889432][ T4164] check_noncircular+0x2f8/0x3b0 [ 57.894363][ T4164] ? add_chain_block+0x850/0x850 [ 57.899364][ T4164] ? lockdep_lock+0x11f/0x2a0 [ 57.904064][ T4164] ? __lock_acquire+0x1295/0x1ff0 [ 57.909145][ T4164] validate_chain+0x1649/0x5930 [ 57.914008][ T4164] ? mark_lock+0x98/0x340 [ 57.918333][ T4164] ? reacquire_held_locks+0x660/0x660 [ 57.923702][ T4164] ? ocfs2_get_system_file_inode+0x1e0/0x7b0 [ 57.929683][ T4164] ? __lock_acquire+0x1ff0/0x1ff0 [ 57.934730][ T4164] ? mark_lock+0x98/0x340 [ 57.939057][ T4164] __lock_acquire+0x1295/0x1ff0 [ 57.943912][ T4164] lock_acquire+0x1db/0x4f0 [ 57.948517][ T4164] ? ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 57.954580][ T4164] ? read_lock_is_recursive+0x10/0x10 [ 57.959956][ T4164] ? __might_sleep+0xc0/0xc0 [ 57.964542][ T4164] ? __lock_acquire+0x1295/0x1ff0 [ 57.969567][ T4164] down_write+0x38/0x60 [ 57.973713][ T4164] ? ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 57.979773][ T4164] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 57.985670][ T4164] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 57.991746][ T4164] ? print_irqtrace_events+0x210/0x210 [ 57.997195][ T4164] ? do_raw_spin_unlock+0x137/0x8b0 [ 58.002386][ T4164] ? _raw_spin_unlock_irqrestore+0x8b/0x130 [ 58.008269][ T4164] ? lockdep_hardirqs_on+0x94/0x130 [ 58.013461][ T4164] ? ocfs2_block_group_search+0x490/0x490 [ 58.019183][ T4164] ? stack_trace_save+0x113/0x1c0 [ 58.024197][ T4164] ? stack_trace_snprint+0xe0/0xe0 [ 58.029298][ T4164] ? stack_depot_save+0x3db/0x440 [ 58.034398][ T4164] ? ____kasan_kmalloc+0xd1/0xf0 [ 58.039320][ T4164] ? ____kasan_kmalloc+0xba/0xf0 [ 58.044243][ T4164] ? kmem_cache_alloc_trace+0x143/0x290 [ 58.049778][ T4164] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 58.056268][ T4164] ? ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 58.062064][ T4164] ? ocfs2_xattr_set+0xf46/0x1930 [ 58.067085][ T4164] ? __vfs_setxattr+0x3e7/0x420 [ 58.071930][ T4164] ? __vfs_setxattr_noperm+0x12a/0x5e0 [ 58.077394][ T4164] ? vfs_setxattr+0x21d/0x420 [ 58.082063][ T4164] ? setxattr+0x27e/0x2e0 [ 58.086384][ T4164] ? path_setxattr+0x1bc/0x2a0 [ 58.091141][ T4164] ? __x64_sys_lsetxattr+0xb4/0xd0 [ 58.096528][ T4164] ? do_syscall_64+0x3b/0xb0 [ 58.101119][ T4164] ? entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 58.107192][ T4164] ? ocfs2_reserve_new_metadata_blocks+0x113/0x9b0 [ 58.113695][ T4164] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 58.120023][ T4164] ? ocfs2_init_steal_slots+0x150/0x150 [ 58.125566][ T4164] ? ocfs2_xattr_block_set+0x32a0/0x32a0 [ 58.131190][ T4164] ? ocfs2_xattr_set+0xef8/0x1930 [ 58.136232][ T4164] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 58.141877][ T4164] ? ocfs2_prepare_refcount_xattr+0x1220/0x1220 [ 58.148126][ T4164] ? up_write+0x19d/0x580 [ 58.152453][ T4164] ? ocfs2_remove_btree_range+0x18a0/0x18a0 [ 58.158343][ T4164] ? __up_read+0x690/0x690 [ 58.162765][ T4164] ? ocfs2_xattr_set+0x4d1/0x1930 [ 58.167778][ T4164] ocfs2_xattr_set+0xf46/0x1930 [ 58.172624][ T4164] ? __ocfs2_xattr_set_handle+0x1060/0x1060 [ 58.178524][ T4164] ? __lock_acquire+0x1295/0x1ff0 [ 58.183538][ T4164] ? aa_get_newest_label+0xf9/0x6c0 [ 58.188729][ T4164] ? posix_xattr_acl+0xa5/0xd0 [ 58.193497][ T4164] ? evm_protect_xattr+0x33b/0xa70 [ 58.198599][ T4164] ? ocfs2_xattr_trusted_get+0x40/0x40 [ 58.204053][ T4164] __vfs_setxattr+0x3e7/0x420 [ 58.208744][ T4164] __vfs_setxattr_noperm+0x12a/0x5e0 [ 58.214039][ T4164] vfs_setxattr+0x21d/0x420 [ 58.218608][ T4164] ? asm_exc_page_fault+0x22/0x30 [ 58.223636][ T4164] ? xattr_permission+0x4f0/0x4f0 [ 58.228655][ T4164] ? copy_user_enhanced_fast_string+0xe/0x40 [ 58.234629][ T4164] ? _copy_from_user+0x10f/0x170 [ 58.239558][ T4164] setxattr+0x27e/0x2e0 [ 58.243704][ T4164] ? path_setxattr+0x2a0/0x2a0 [ 58.248486][ T4164] ? preempt_count_add+0x8f/0x180 [ 58.253506][ T4164] ? __mnt_want_write+0x1e6/0x260 [ 58.258540][ T4164] path_setxattr+0x1bc/0x2a0 [ 58.263135][ T4164] ? simple_xattr_list_add+0xf0/0xf0 [ 58.268420][ T4164] ? syscall_enter_from_user_mode+0x2e/0x240 [ 58.274403][ T4164] __x64_sys_lsetxattr+0xb4/0xd0 [ 58.279337][ T4164] do_syscall_64+0x3b/0xb0 [ 58.283742][ T4164] ? clear_bhb_loop+0x15/0x70 [ 58.288407][ T4164] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 58.294288][ T4164] RIP: 0033:0x7fba7ff826b9 [ 58.298693][ T4164] 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 [ 58.318293][ T4164] RSP: 002b:00007ffdf2936d08 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd [ 58.326700][ T4164] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fba7ff826b9 [ 58.334683][ T4164] RDX: 0000200000000100 RSI: 00002000000000c0 RDI: 0000200000000180 [ 58.342647][ T4164] RBP: 00007fba7fffa610 R08: 0000000000000000 R09: 0000000000000000 [ 58.350614][ T4164] R10: 0000000000001001 R11: 0000000000000246 R12: 0000000000000001 [ 58.358576][ T4164] R13: 00007ffdf2936ed8 R14: 0000000000000001 R15: 00000000000000