Warning: Permanently added '10.128.0.188' (ED25519) to the list of known hosts. executing program [ 61.791964][ T4240] loop0: detected capacity change from 0 to 32768 [ 61.800790][ T4240] ======================================================= [ 61.800790][ T4240] WARNING: The mand mount option has been deprecated and [ 61.800790][ T4240] and is ignored by this kernel. Remove the mand [ 61.800790][ T4240] option from the mount to silence this warning. [ 61.800790][ T4240] ======================================================= [ 61.848946][ T4240] ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. [ 61.873299][ T4240] [ 61.875657][ T4240] ====================================================== [ 61.882667][ T4240] WARNING: possible circular locking dependency detected [ 61.889670][ T4240] 6.1.114-syzkaller #0 Not tainted [ 61.894757][ T4240] ------------------------------------------------------ [ 61.901747][ T4240] syz-executor142/4240 is trying to acquire lock: [ 61.908131][ T4240] ffff88802fca6650 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_setattr+0xd99/0x1f80 [ 61.917088][ T4240] [ 61.917088][ T4240] but task is already holding lock: [ 61.924426][ T4240] ffff88806f8acda0 (&oi->ip_alloc_sem){+.+.}-{3:3}, at: ocfs2_setattr+0xd87/0x1f80 [ 61.933703][ T4240] [ 61.933703][ T4240] which lock already depends on the new lock. [ 61.933703][ T4240] [ 61.944099][ T4240] [ 61.944099][ T4240] the existing dependency chain (in reverse order) is: [ 61.953087][ T4240] [ 61.953087][ T4240] -> #4 (&oi->ip_alloc_sem){+.+.}-{3:3}: [ 61.960880][ T4240] lock_acquire+0x1f8/0x5a0 [ 61.965890][ T4240] down_write+0x36/0x60 [ 61.970549][ T4240] ocfs2_try_remove_refcount_tree+0xb2/0x330 [ 61.977030][ T4240] ocfs2_xattr_set+0xa4b/0x1930 [ 61.982381][ T4240] ocfs2_set_acl+0x4cb/0x570 [ 61.987468][ T4240] ocfs2_iop_set_acl+0x252/0x3c0 [ 61.992905][ T4240] posix_acl_xattr_set+0x37b/0x3e0 [ 61.998513][ T4240] __vfs_removexattr+0x3ce/0x410 [ 62.003947][ T4240] __vfs_removexattr_locked+0x1fe/0x410 [ 62.009986][ T4240] vfs_removexattr+0xff/0x2a0 [ 62.015158][ T4240] ovl_workdir_create+0x52c/0x9d0 [ 62.020678][ T4240] ovl_get_workdir+0x3b7/0x17b0 [ 62.026025][ T4240] ovl_fill_super+0x1b85/0x2a20 [ 62.031368][ T4240] mount_nodev+0x52/0xe0 [ 62.036114][ T4240] legacy_get_tree+0xeb/0x180 [ 62.041289][ T4240] vfs_get_tree+0x88/0x270 [ 62.046204][ T4240] do_new_mount+0x2ba/0xb40 [ 62.051201][ T4240] __se_sys_mount+0x2d5/0x3c0 [ 62.056376][ T4240] do_syscall_64+0x3b/0xb0 [ 62.061298][ T4240] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 62.067709][ T4240] [ 62.067709][ T4240] -> #3 (&oi->ip_xattr_sem){++++}-{3:3}: [ 62.075511][ T4240] lock_acquire+0x1f8/0x5a0 [ 62.080518][ T4240] down_read+0xad/0xa30 [ 62.085171][ T4240] ocfs2_init_acl+0x398/0x930 [ 62.090347][ T4240] ocfs2_mknod+0x1f75/0x2e20 [ 62.095436][ T4240] ocfs2_mkdir+0x1c0/0x4e0 [ 62.100347][ T4240] vfs_mkdir+0x3b6/0x590 [ 62.105091][ T4240] do_mkdirat+0x225/0x360 [ 62.109924][ T4240] __x64_sys_mkdirat+0x85/0x90 [ 62.115190][ T4240] do_syscall_64+0x3b/0xb0 [ 62.120103][ T4240] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 62.126502][ T4240] [ 62.126502][ T4240] -> #2 (jbd2_handle){++++}-{0:0}: [ 62.133774][ T4240] lock_acquire+0x1f8/0x5a0 [ 62.138778][ T4240] start_this_handle+0x1f71/0x21b0 [ 62.144392][ T4240] jbd2__journal_start+0x2d1/0x5c0 [ 62.149999][ T4240] jbd2_journal_start+0x25/0x30 [ 62.155349][ T4240] ocfs2_start_trans+0x3c0/0x6f0 [ 62.160789][ T4240] ocfs2_mknod+0x1638/0x2e20 [ 62.165877][ T4240] ocfs2_mkdir+0x1c0/0x4e0 [ 62.170791][ T4240] vfs_mkdir+0x3b6/0x590 [ 62.175536][ T4240] do_mkdirat+0x225/0x360 [ 62.180364][ T4240] __x64_sys_mkdirat+0x85/0x90 [ 62.185629][ T4240] do_syscall_64+0x3b/0xb0 [ 62.190548][ T4240] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 62.196951][ T4240] [ 62.196951][ T4240] -> #1 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 62.205442][ T4240] lock_acquire+0x1f8/0x5a0 [ 62.210449][ T4240] down_read+0xad/0xa30 [ 62.215104][ T4240] ocfs2_start_trans+0x3b5/0x6f0 [ 62.220544][ T4240] ocfs2_mknod+0x1638/0x2e20 [ 62.225634][ T4240] ocfs2_mkdir+0x1c0/0x4e0 [ 62.230553][ T4240] vfs_mkdir+0x3b6/0x590 [ 62.235329][ T4240] do_mkdirat+0x225/0x360 [ 62.240170][ T4240] __x64_sys_mkdirat+0x85/0x90 [ 62.245442][ T4240] do_syscall_64+0x3b/0xb0 [ 62.250354][ T4240] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 62.256755][ T4240] [ 62.256755][ T4240] -> #0 (sb_internal#2){.+.+}-{0:0}: [ 62.264207][ T4240] validate_chain+0x1661/0x5950 [ 62.269555][ T4240] __lock_acquire+0x125b/0x1f80 [ 62.274928][ T4240] lock_acquire+0x1f8/0x5a0 [ 62.279936][ T4240] ocfs2_start_trans+0x2b0/0x6f0 [ 62.285379][ T4240] ocfs2_setattr+0xd99/0x1f80 [ 62.290646][ T4240] notify_change+0xce3/0xfc0 [ 62.295755][ T4240] ovl_workdir_create+0x78b/0x9d0 [ 62.301277][ T4240] ovl_get_workdir+0x3b7/0x17b0 [ 62.306626][ T4240] ovl_fill_super+0x1b85/0x2a20 [ 62.311977][ T4240] mount_nodev+0x52/0xe0 [ 62.316720][ T4240] legacy_get_tree+0xeb/0x180 [ 62.321991][ T4240] vfs_get_tree+0x88/0x270 [ 62.326935][ T4240] do_new_mount+0x2ba/0xb40 [ 62.331950][ T4240] __se_sys_mount+0x2d5/0x3c0 [ 62.337132][ T4240] do_syscall_64+0x3b/0xb0 [ 62.342047][ T4240] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 62.348440][ T4240] [ 62.348440][ T4240] other info that might help us debug this: [ 62.348440][ T4240] [ 62.358672][ T4240] Chain exists of: [ 62.358672][ T4240] sb_internal#2 --> &oi->ip_xattr_sem --> &oi->ip_alloc_sem [ 62.358672][ T4240] [ 62.371858][ T4240] Possible unsafe locking scenario: [ 62.371858][ T4240] [ 62.379287][ T4240] CPU0 CPU1 [ 62.384628][ T4240] ---- ---- [ 62.389965][ T4240] lock(&oi->ip_alloc_sem); [ 62.394537][ T4240] lock(&oi->ip_xattr_sem); [ 62.401624][ T4240] lock(&oi->ip_alloc_sem); [ 62.408713][ T4240] lock(sb_internal#2); [ 62.412942][ T4240] [ 62.412942][ T4240] *** DEADLOCK *** [ 62.412942][ T4240] [ 62.421059][ T4240] 5 locks held by syz-executor142/4240: [ 62.426575][ T4240] #0: ffff888078eec0e0 (&type->s_umount_key#42/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 [ 62.436653][ T4240] #1: ffff88802fca6460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 62.445764][ T4240] #2: ffff88806f8ac2c8 (&sb->s_type->i_mutex_key#15/1){+.+.}-{3:3}, at: ovl_workdir_create+0x159/0x9d0 [ 62.456879][ T4240] #3: ffff88806f8ad108 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: ovl_workdir_create+0x6ec/0x9d0 [ 62.467818][ T4240] #4: ffff88806f8acda0 (&oi->ip_alloc_sem){+.+.}-{3:3}, at: ocfs2_setattr+0xd87/0x1f80 [ 62.477536][ T4240] [ 62.477536][ T4240] stack backtrace: [ 62.483410][ T4240] CPU: 1 PID: 4240 Comm: syz-executor142 Not tainted 6.1.114-syzkaller #0 [ 62.491885][ T4240] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 62.501929][ T4240] Call Trace: [ 62.505194][ T4240] [ 62.508122][ T4240] dump_stack_lvl+0x1e3/0x2cb [ 62.512781][ T4240] ? nf_tcp_handle_invalid+0x642/0x642 [ 62.518217][ T4240] ? print_circular_bug+0x12b/0x1a0 [ 62.523393][ T4240] check_noncircular+0x2fa/0x3b0 [ 62.528307][ T4240] ? add_chain_block+0x850/0x850 [ 62.533220][ T4240] ? lockdep_lock+0x11f/0x2a0 [ 62.537881][ T4240] ? add_lock_to_list+0x1de/0x2e0 [ 62.542879][ T4240] ? _find_first_zero_bit+0xd0/0x100 [ 62.548145][ T4240] validate_chain+0x1661/0x5950 [ 62.552982][ T4240] ? reacquire_held_locks+0x660/0x660 [ 62.558358][ T4240] ? ocfs2_read_inode_block+0x148/0x1d0 [ 62.564008][ T4240] ? mark_lock+0x9a/0x340 [ 62.568331][ T4240] ? mark_lock+0x9a/0x340 [ 62.572644][ T4240] __lock_acquire+0x125b/0x1f80 [ 62.577483][ T4240] lock_acquire+0x1f8/0x5a0 [ 62.581968][ T4240] ? ocfs2_setattr+0xd99/0x1f80 [ 62.586802][ T4240] ? read_lock_is_recursive+0x10/0x10 [ 62.592156][ T4240] ? __lock_acquire+0x1f80/0x1f80 [ 62.597165][ T4240] ? __might_sleep+0xb0/0xb0 [ 62.601735][ T4240] ? do_raw_spin_unlock+0x137/0x8a0 [ 62.606916][ T4240] ocfs2_start_trans+0x2b0/0x6f0 [ 62.611843][ T4240] ? ocfs2_setattr+0xd99/0x1f80 [ 62.616701][ T4240] ? ocfs2_recovery_exit+0x280/0x280 [ 62.621971][ T4240] ? setattr_prepare+0x1e0/0xc20 [ 62.626890][ T4240] ocfs2_setattr+0xd99/0x1f80 [ 62.631557][ T4240] ? ocfs2_extend_allocation+0x1d00/0x1d00 [ 62.637356][ T4240] ? seqcount_lockdep_reader_access+0x1d3/0x220 [ 62.643582][ T4240] ? ktime_get_coarse_real_ts64+0x107/0x120 [ 62.649456][ T4240] ? current_time+0x1ba/0x300 [ 62.654116][ T4240] ? atime_needs_update+0x7b0/0x7b0 [ 62.659298][ T4240] ? rwsem_write_trylock+0x166/0x210 [ 62.664563][ T4240] ? bpf_lsm_inode_setattr+0x5/0x10 [ 62.669737][ T4240] ? ocfs2_extend_allocation+0x1d00/0x1d00 [ 62.675534][ T4240] notify_change+0xce3/0xfc0 [ 62.680104][ T4240] ovl_workdir_create+0x78b/0x9d0 [ 62.685112][ T4240] ? ovl_mount_dir_noesc+0x190/0x190 [ 62.690373][ T4240] ? rcu_read_lock_any_held+0xb3/0x160 [ 62.695814][ T4240] ? __mnt_want_write+0x222/0x2a0 [ 62.700816][ T4240] ovl_get_workdir+0x3b7/0x17b0 [ 62.705648][ T4240] ? ovl_get_upper+0x5f0/0x5f0 [ 62.710386][ T4240] ? ovl_inuse_trylock+0xb8/0xd0 [ 62.715325][ T4240] ? ovl_get_upper+0x402/0x5f0 [ 62.720066][ T4240] ? ovl_fill_super+0x2a20/0x2a20 [ 62.725075][ T4240] ? ovl_fill_super+0x13c3/0x2a20 [ 62.730078][ T4240] ? rcu_is_watching+0x11/0xb0 [ 62.734818][ T4240] ? __kmalloc+0xe2/0x230 [ 62.739124][ T4240] ovl_fill_super+0x1b85/0x2a20 [ 62.743959][ T4240] ? ovl_mount+0x30/0x30 [ 62.748177][ T4240] ? sget+0x4b8/0x4d0 [ 62.752141][ T4240] ? free_anon_bdev+0x20/0x20 [ 62.756796][ T4240] ? ovl_mount+0x30/0x30 [ 62.761015][ T4240] mount_nodev+0x52/0xe0 [ 62.765237][ T4240] legacy_get_tree+0xeb/0x180 [ 62.769892][ T4240] ? virtio_fs_zero_page_range+0x180/0x180 [ 62.775677][ T4240] vfs_get_tree+0x88/0x270 [ 62.780073][ T4240] do_new_mount+0x2ba/0xb40 [ 62.784556][ T4240] ? ns_capable+0x85/0xe0 [ 62.788868][ T4240] ? do_move_mount_old+0x160/0x160 [ 62.793962][ T4240] __se_sys_mount+0x2d5/0x3c0 [ 62.798621][ T4240] ? __x64_sys_mount+0xc0/0xc0 [ 62.803364][ T4240] ? syscall_enter_from_user_mode+0x2e/0x230 [ 62.809321][ T4240] ? lockdep_hardirqs_on+0x94/0x130 [ 62.814508][ T4240] ? __x64_sys_mount+0x1c/0xc0 [ 62.819259][ T4240] do_syscall_64+0x3b/0xb0 [ 62.823653][ T4240] ? clear_bhb_loop+0x45/0xa0 [ 62.828319][ T4240] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 62.834222][ T4240] RIP: 0033:0x7f5a425ecab9 [ 62.838644][ T4240] 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 [ 62.858229][ T4240] RSP: 002b:00007fffe5913c68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 62.866624][ T4240] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f5a425ecab9 [ 62.874578][ T4240] RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000 [ 62.882530][ T4240] RBP: 00007f5a42663610 R08: 0000000020000040 R09: 0000000000000000 [ 62.890480][ T4240] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 62.898430][ T4240] R13: 00007fffe5913e38 R14: 00000000000000