Warning: Permanently added '10.128.1.152' (ED25519) to the list of known hosts. executing program [ 45.150592][ T3563] loop0: detected capacity change from 0 to 32768 [ 45.193063][ T3563] ======================================================= [ 45.193063][ T3563] WARNING: The mand mount option has been deprecated and [ 45.193063][ T3563] and is ignored by this kernel. Remove the mand [ 45.193063][ T3563] option from the mount to silence this warning. [ 45.193063][ T3563] ======================================================= [ 45.253480][ T3563] JBD2: Ignoring recovery information on journal [ 45.292704][ T3563] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 45.315890][ T3563] [ 45.318259][ T3563] ====================================================== [ 45.325352][ T3563] WARNING: possible circular locking dependency detected [ 45.332343][ T3563] 5.15.167-syzkaller #0 Not tainted [ 45.337542][ T3563] ------------------------------------------------------ [ 45.344568][ T3563] syz-executor140/3563 is trying to acquire lock: [ 45.351144][ T3563] ffff88806ea886f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_init_acl+0x398/0x930 [ 45.360435][ T3563] [ 45.360435][ T3563] but task is already holding lock: [ 45.367768][ T3563] ffff88801f622990 (jbd2_handle){.+.+}-{0:0}, at: start_this_handle+0x12b9/0x1570 [ 45.376955][ T3563] [ 45.376955][ T3563] which lock already depends on the new lock. [ 45.376955][ T3563] [ 45.387327][ T3563] [ 45.387327][ T3563] the existing dependency chain (in reverse order) is: [ 45.396316][ T3563] [ 45.396316][ T3563] -> #5 (jbd2_handle){.+.+}-{0:0}: [ 45.403601][ T3563] lock_acquire+0x1db/0x4f0 [ 45.408640][ T3563] start_this_handle+0x12e1/0x1570 [ 45.414250][ T3563] jbd2__journal_start+0x2d1/0x5c0 [ 45.419858][ T3563] jbd2_journal_start+0x25/0x30 [ 45.425200][ T3563] ocfs2_start_trans+0x3c2/0x6f0 [ 45.430632][ T3563] ocfs2_reserve_suballoc_bits+0x9ec/0x4c70 [ 45.437018][ T3563] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 45.443861][ T3563] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 45.450006][ T3563] ocfs2_xattr_set+0xf46/0x1930 [ 45.455347][ T3563] ocfs2_set_acl+0x4cb/0x570 [ 45.460428][ T3563] ocfs2_iop_set_acl+0x252/0x3c0 [ 45.465860][ T3563] posix_acl_xattr_set+0x33b/0x3a0 [ 45.471483][ T3563] __vfs_setxattr+0x3e7/0x420 [ 45.476671][ T3563] __vfs_setxattr_noperm+0x12a/0x5e0 [ 45.482469][ T3563] vfs_setxattr+0x21d/0x420 [ 45.487462][ T3563] setxattr+0x27e/0x2e0 [ 45.492109][ T3563] path_setxattr+0x1bc/0x2a0 [ 45.497296][ T3563] __x64_sys_lsetxattr+0xb4/0xd0 [ 45.502727][ T3563] do_syscall_64+0x3b/0xb0 [ 45.507643][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 45.514040][ T3563] [ 45.514040][ T3563] -> #4 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 45.522547][ T3563] lock_acquire+0x1db/0x4f0 [ 45.527547][ T3563] down_read+0x45/0x2e0 [ 45.532193][ T3563] ocfs2_start_trans+0x3b7/0x6f0 [ 45.537721][ T3563] ocfs2_reserve_suballoc_bits+0x9ec/0x4c70 [ 45.544110][ T3563] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 45.550933][ T3563] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 45.557075][ T3563] ocfs2_xattr_set+0xf46/0x1930 [ 45.562416][ T3563] ocfs2_set_acl+0x4cb/0x570 [ 45.567498][ T3563] ocfs2_iop_set_acl+0x252/0x3c0 [ 45.572926][ T3563] posix_acl_xattr_set+0x33b/0x3a0 [ 45.578536][ T3563] __vfs_setxattr+0x3e7/0x420 [ 45.583726][ T3563] __vfs_setxattr_noperm+0x12a/0x5e0 [ 45.589506][ T3563] vfs_setxattr+0x21d/0x420 [ 45.594526][ T3563] setxattr+0x27e/0x2e0 [ 45.599173][ T3563] path_setxattr+0x1bc/0x2a0 [ 45.604271][ T3563] __x64_sys_lsetxattr+0xb4/0xd0 [ 45.609723][ T3563] do_syscall_64+0x3b/0xb0 [ 45.614724][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 45.621112][ T3563] [ 45.621112][ T3563] -> #3 (sb_internal#2){.+.+}-{0:0}: [ 45.628548][ T3563] lock_acquire+0x1db/0x4f0 [ 45.633565][ T3563] ocfs2_start_trans+0x2b2/0x6f0 [ 45.639013][ T3563] ocfs2_reserve_suballoc_bits+0x9ec/0x4c70 [ 45.645406][ T3563] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 45.652230][ T3563] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 45.658360][ T3563] ocfs2_xattr_set+0xf46/0x1930 [ 45.663700][ T3563] ocfs2_set_acl+0x4cb/0x570 [ 45.668788][ T3563] ocfs2_iop_set_acl+0x252/0x3c0 [ 45.674271][ T3563] posix_acl_xattr_set+0x33b/0x3a0 [ 45.679876][ T3563] __vfs_setxattr+0x3e7/0x420 [ 45.685055][ T3563] __vfs_setxattr_noperm+0x12a/0x5e0 [ 45.690835][ T3563] vfs_setxattr+0x21d/0x420 [ 45.695925][ T3563] setxattr+0x27e/0x2e0 [ 45.700600][ T3563] path_setxattr+0x1bc/0x2a0 [ 45.705681][ T3563] __x64_sys_lsetxattr+0xb4/0xd0 [ 45.711116][ T3563] do_syscall_64+0x3b/0xb0 [ 45.716025][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 45.722410][ T3563] [ 45.722410][ T3563] -> #2 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 45.732890][ T3563] lock_acquire+0x1db/0x4f0 [ 45.737886][ T3563] down_write+0x38/0x60 [ 45.742531][ T3563] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 45.748939][ T3563] ocfs2_reserve_clusters_with_limit+0x3d9/0xb50 [ 45.755763][ T3563] ocfs2_reserve_suballoc_bits+0x9d0/0x4c70 [ 45.762238][ T3563] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 45.769143][ T3563] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 45.775267][ T3563] ocfs2_xattr_set+0xf46/0x1930 [ 45.780607][ T3563] ocfs2_set_acl+0x4cb/0x570 [ 45.785685][ T3563] ocfs2_iop_set_acl+0x252/0x3c0 [ 45.791117][ T3563] posix_acl_xattr_set+0x33b/0x3a0 [ 45.796721][ T3563] __vfs_setxattr+0x3e7/0x420 [ 45.801894][ T3563] __vfs_setxattr_noperm+0x12a/0x5e0 [ 45.807668][ T3563] vfs_setxattr+0x21d/0x420 [ 45.812750][ T3563] setxattr+0x27e/0x2e0 [ 45.817398][ T3563] path_setxattr+0x1bc/0x2a0 [ 45.822478][ T3563] __x64_sys_lsetxattr+0xb4/0xd0 [ 45.827995][ T3563] do_syscall_64+0x3b/0xb0 [ 45.832901][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 45.839318][ T3563] [ 45.839318][ T3563] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 45.849801][ T3563] lock_acquire+0x1db/0x4f0 [ 45.854797][ T3563] down_write+0x38/0x60 [ 45.859444][ T3563] ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 45.865832][ T3563] ocfs2_reserve_new_metadata_blocks+0x418/0x9b0 [ 45.872671][ T3563] ocfs2_init_xattr_set_ctxt+0x38f/0x8c0 [ 45.878798][ T3563] ocfs2_xattr_set+0xf46/0x1930 [ 45.884140][ T3563] ocfs2_set_acl+0x4cb/0x570 [ 45.889234][ T3563] ocfs2_iop_set_acl+0x252/0x3c0 [ 45.894666][ T3563] posix_acl_xattr_set+0x33b/0x3a0 [ 45.900272][ T3563] __vfs_setxattr+0x3e7/0x420 [ 45.905441][ T3563] __vfs_setxattr_noperm+0x12a/0x5e0 [ 45.911306][ T3563] vfs_setxattr+0x21d/0x420 [ 45.916301][ T3563] setxattr+0x27e/0x2e0 [ 45.920946][ T3563] path_setxattr+0x1bc/0x2a0 [ 45.926027][ T3563] __x64_sys_lsetxattr+0xb4/0xd0 [ 45.931475][ T3563] do_syscall_64+0x3b/0xb0 [ 45.936382][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 45.942767][ T3563] [ 45.942767][ T3563] -> #0 (&oi->ip_xattr_sem){++++}-{3:3}: [ 45.950647][ T3563] validate_chain+0x1649/0x5930 [ 45.956025][ T3563] __lock_acquire+0x1295/0x1ff0 [ 45.961376][ T3563] lock_acquire+0x1db/0x4f0 [ 45.966432][ T3563] down_read+0x45/0x2e0 [ 45.971168][ T3563] ocfs2_init_acl+0x398/0x930 [ 45.976338][ T3563] ocfs2_mknod+0x1e8f/0x2cd0 [ 45.981425][ T3563] ocfs2_create+0x194/0x430 [ 45.986420][ T3563] path_openat+0x130a/0x2f20 [ 45.991498][ T3563] do_filp_open+0x21c/0x460 [ 45.996492][ T3563] do_sys_openat2+0x13b/0x4f0 [ 46.001659][ T3563] __x64_sys_openat+0x243/0x290 [ 46.007000][ T3563] do_syscall_64+0x3b/0xb0 [ 46.011905][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 46.018299][ T3563] [ 46.018299][ T3563] other info that might help us debug this: [ 46.018299][ T3563] [ 46.028679][ T3563] Chain exists of: [ 46.028679][ T3563] &oi->ip_xattr_sem --> &journal->j_trans_barrier --> jbd2_handle [ 46.028679][ T3563] [ 46.042379][ T3563] Possible unsafe locking scenario: [ 46.042379][ T3563] [ 46.049803][ T3563] CPU0 CPU1 [ 46.055138][ T3563] ---- ---- [ 46.060471][ T3563] lock(jbd2_handle); [ 46.064599][ T3563] lock(&journal->j_trans_barrier); [ 46.072372][ T3563] lock(jbd2_handle); [ 46.079016][ T3563] lock(&oi->ip_xattr_sem); [ 46.083734][ T3563] [ 46.083734][ T3563] *** DEADLOCK *** [ 46.083734][ T3563] [ 46.091853][ T3563] 8 locks held by syz-executor140/3563: [ 46.097380][ T3563] #0: ffff88801fd56460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 46.106493][ T3563] #1: ffff88806ea889c8 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x824/0x2f20 [ 46.116646][ T3563] #2: ffff88806ea909c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 46.130269][ T3563] #3: ffff88806ea8ed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x18e/0x4c70 [ 46.143909][ T3563] #4: ffff88806ea92648 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_reserve_local_alloc_bits+0x12e/0x27a0 [ 46.157879][ T3563] #5: ffff88801fd56650 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_mknod+0x15bb/0x2cd0 [ 46.167151][ T3563] #6: ffff8881476d54e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3b7/0x6f0 [ 46.177810][ T3563] #7: ffff88801f622990 (jbd2_handle){.+.+}-{0:0}, at: start_this_handle+0x12b9/0x1570 [ 46.187428][ T3563] [ 46.187428][ T3563] stack backtrace: [ 46.193296][ T3563] CPU: 0 PID: 3563 Comm: syz-executor140 Not tainted 5.15.167-syzkaller #0 [ 46.201849][ T3563] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 46.211912][ T3563] Call Trace: [ 46.215168][ T3563] [ 46.218079][ T3563] dump_stack_lvl+0x1e3/0x2d0 [ 46.222754][ T3563] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 46.228362][ T3563] ? print_circular_bug+0x12b/0x1a0 [ 46.233532][ T3563] check_noncircular+0x2f8/0x3b0 [ 46.238440][ T3563] ? add_chain_block+0x850/0x850 [ 46.243437][ T3563] ? lockdep_lock+0x11f/0x2a0 [ 46.248088][ T3563] ? reacquire_held_locks+0x660/0x660 [ 46.253430][ T3563] validate_chain+0x1649/0x5930 [ 46.258254][ T3563] ? lockdep_init_map_type+0x9d/0x8d0 [ 46.263599][ T3563] ? mark_lock+0x98/0x340 [ 46.267918][ T3563] ? reacquire_held_locks+0x660/0x660 [ 46.273259][ T3563] ? __lock_acquire+0x1295/0x1ff0 [ 46.278258][ T3563] ? mark_lock+0x98/0x340 [ 46.282577][ T3563] __lock_acquire+0x1295/0x1ff0 [ 46.287401][ T3563] lock_acquire+0x1db/0x4f0 [ 46.291872][ T3563] ? ocfs2_init_acl+0x398/0x930 [ 46.296696][ T3563] ? read_lock_is_recursive+0x10/0x10 [ 46.302036][ T3563] ? __might_sleep+0xc0/0xc0 [ 46.306599][ T3563] ? trace_ocfs2_claim_new_inode_at_loc+0x1e0/0x1e0 [ 46.313179][ T3563] ? set_current_blocked+0x40/0x40 [ 46.318259][ T3563] down_read+0x45/0x2e0 [ 46.322402][ T3563] ? ocfs2_init_acl+0x398/0x930 [ 46.327225][ T3563] ocfs2_init_acl+0x398/0x930 [ 46.331870][ T3563] ? ocfs2_mknod_locked+0x21e/0x3a0 [ 46.337041][ T3563] ? ocfs2_acl_chmod+0x360/0x360 [ 46.341946][ T3563] ? ocfs2_start_trans+0x4dc/0x6f0 [ 46.347027][ T3563] ? __ocfs2_abort+0x230/0x230 [ 46.351760][ T3563] ? ocfs2_init_security_get+0x130/0x190 [ 46.357360][ T3563] ocfs2_mknod+0x1e8f/0x2cd0 [ 46.361922][ T3563] ? ocfs2_mkdir+0x430/0x430 [ 46.366483][ T3563] ? mark_lock+0x98/0x340 [ 46.370785][ T3563] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 46.376736][ T3563] ? print_irqtrace_events+0x210/0x210 [ 46.382171][ T3563] ? read_lock_is_recursive+0x10/0x10 [ 46.387513][ T3563] ? ocfs2_inode_unlock+0xa3/0x150 [ 46.392601][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 46.397596][ T3563] ? do_raw_spin_lock+0x14a/0x370 [ 46.402589][ T3563] ? do_raw_spin_unlock+0x137/0x8b0 [ 46.407756][ T3563] ? do_raw_spin_unlock+0x137/0x8b0 [ 46.412948][ T3563] ? __d_add+0x4d7/0x7f0 [ 46.417161][ T3563] ? _raw_spin_unlock+0x24/0x40 [ 46.422000][ T3563] ? rcu_is_watching+0x11/0xa0 [ 46.426738][ T3563] ? ocfs2_lookup+0x4ed/0x9f0 [ 46.431385][ T3563] ocfs2_create+0x194/0x430 [ 46.435861][ T3563] ? ocfs2_lookup+0x9f0/0x9f0 [ 46.440505][ T3563] ? inode_permission+0xf7/0x450 [ 46.445432][ T3563] ? ocfs2_getattr+0x380/0x380 [ 46.450172][ T3563] ? bpf_lsm_inode_create+0x5/0x10 [ 46.455277][ T3563] ? security_inode_create+0xb4/0x100 [ 46.460637][ T3563] ? ocfs2_lookup+0x9f0/0x9f0 [ 46.465284][ T3563] path_openat+0x130a/0x2f20 [ 46.469850][ T3563] ? do_filp_open+0x460/0x460 [ 46.474501][ T3563] do_filp_open+0x21c/0x460 [ 46.478976][ T3563] ? vfs_tmpfile+0x2e0/0x2e0 [ 46.483540][ T3563] ? _raw_spin_unlock+0x24/0x40 [ 46.488361][ T3563] ? alloc_fd+0x598/0x630 [ 46.492661][ T3563] do_sys_openat2+0x13b/0x4f0 [ 46.497744][ T3563] ? do_sys_open+0x220/0x220 [ 46.502303][ T3563] __x64_sys_openat+0x243/0x290 [ 46.507131][ T3563] ? __ia32_sys_open+0x270/0x270 [ 46.512128][ T3563] ? syscall_enter_from_user_mode+0x2e/0x240 [ 46.518082][ T3563] ? lockdep_hardirqs_on+0x94/0x130 [ 46.523252][ T3563] ? syscall_enter_from_user_mode+0x2e/0x240 [ 46.529205][ T3563] do_syscall_64+0x3b/0xb0 [ 46.533594][ T3563] ? clear_bhb_loop+0x15/0x70 [ 46.538242][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 46.544194][ T3563] RIP: 0033:0x7f66b3aec839 [ 46.548583][ T3563] 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 [ 46.568160][ T3563] RSP: 002b:00007ffcf4998e28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 46.576564][ T3563] RAX: ffffffffffffffda RBX: 00007ffcf4999008 RCX: 00007f66b3aec839 [ 46.584519][ T3563] RDX: 00000000000026e1 RSI: 0000000020000500 RDI: 00000000ffffff9c [ 46.592466][ T3563] RBP: 00007f66b3b63610 R08: 0000000000000000 R09: 0000000000000000 [ 46.600407][ T3563] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 46.608356][ T3563] R13: 00007ffcf4998ff8 R14: 0000000000000001 R15: 0000000000000001 [ 46.616303][ T3563] [