Warning: Permanently added '10.128.0.204' (ED25519) to the list of known hosts. executing program [ 30.387781][ T6389] loop0: detected capacity change from 0 to 32768 [ 30.391231][ T6389] ======================================================= [ 30.391231][ T6389] WARNING: The mand mount option has been deprecated and [ 30.391231][ T6389] and is ignored by this kernel. Remove the mand [ 30.391231][ T6389] option from the mount to silence this warning. [ 30.391231][ T6389] ======================================================= [ 30.417204][ T6389] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 30.424988][ T6389] [ 30.425613][ T6389] ====================================================== [ 30.427113][ T6389] WARNING: possible circular locking dependency detected [ 30.428714][ T6389] 6.11.0-rc5-syzkaller-gdf54f4a16f82 #0 Not tainted [ 30.430292][ T6389] ------------------------------------------------------ [ 30.431848][ T6389] syz-executor319/6389 is trying to acquire lock: [ 30.433304][ T6389] ffff0000dee22640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_reserve_local_alloc_bits+0xfc/0x247c [ 30.436500][ T6389] [ 30.436500][ T6389] but task is already holding lock: [ 30.438175][ T6389] ffff0000dee231b8 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x4e0/0x1448 [ 30.440430][ T6389] [ 30.440430][ T6389] which lock already depends on the new lock. [ 30.440430][ T6389] [ 30.442773][ T6389] [ 30.442773][ T6389] the existing dependency chain (in reverse order) is: [ 30.444837][ T6389] [ 30.444837][ T6389] -> #4 (&oi->ip_xattr_sem){+.+.}-{3:3}: [ 30.446636][ T6389] down_write+0x50/0xc0 [ 30.447741][ T6389] ocfs2_xattr_set_handle+0x40c/0x824 [ 30.449047][ T6389] ocfs2_init_security_set+0xb4/0xd8 [ 30.450443][ T6389] ocfs2_mknod+0x1408/0x243c [ 30.451649][ T6389] ocfs2_create+0x194/0x4e0 [ 30.452812][ T6389] path_openat+0xfb4/0x29f8 [ 30.453953][ T6389] do_filp_open+0x1bc/0x3cc [ 30.455051][ T6389] do_sys_openat2+0x124/0x1b8 [ 30.456343][ T6389] __arm64_sys_openat+0x1f0/0x240 [ 30.457650][ T6389] invoke_syscall+0x98/0x2b8 [ 30.458807][ T6389] el0_svc_common+0x130/0x23c [ 30.459989][ T6389] do_el0_svc+0x48/0x58 [ 30.461052][ T6389] el0_svc+0x54/0x168 [ 30.462123][ T6389] el0t_64_sync_handler+0x84/0xfc [ 30.463425][ T6389] el0t_64_sync+0x190/0x194 [ 30.464599][ T6389] [ 30.464599][ T6389] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 30.466356][ T6389] start_this_handle+0xf34/0x11c4 [ 30.467663][ T6389] jbd2__journal_start+0x298/0x544 [ 30.468971][ T6389] jbd2_journal_start+0x3c/0x4c [ 30.470252][ T6389] ocfs2_start_trans+0x3d0/0x71c [ 30.471508][ T6389] ocfs2_reserve_suballoc_bits+0x840/0x4288 [ 30.473019][ T6389] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 30.474503][ T6389] ocfs2_mknod+0xdc8/0x243c [ 30.475657][ T6389] ocfs2_create+0x194/0x4e0 [ 30.476830][ T6389] path_openat+0xfb4/0x29f8 [ 30.478025][ T6389] do_filp_open+0x1bc/0x3cc [ 30.479208][ T6389] do_sys_openat2+0x124/0x1b8 [ 30.480422][ T6389] __arm64_sys_openat+0x1f0/0x240 [ 30.481699][ T6389] invoke_syscall+0x98/0x2b8 [ 30.482838][ T6389] el0_svc_common+0x130/0x23c [ 30.484042][ T6389] do_el0_svc+0x48/0x58 [ 30.485177][ T6389] el0_svc+0x54/0x168 [ 30.486278][ T6389] el0t_64_sync_handler+0x84/0xfc [ 30.487590][ T6389] el0t_64_sync+0x190/0x194 [ 30.488812][ T6389] [ 30.488812][ T6389] -> #2 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 30.490794][ T6389] down_read+0x58/0x2fc [ 30.491932][ T6389] ocfs2_start_trans+0x3c4/0x71c [ 30.493220][ T6389] ocfs2_reserve_suballoc_bits+0x840/0x4288 [ 30.494679][ T6389] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 30.496280][ T6389] ocfs2_mknod+0xdc8/0x243c [ 30.497484][ T6389] ocfs2_create+0x194/0x4e0 [ 30.498636][ T6389] path_openat+0xfb4/0x29f8 [ 30.499765][ T6389] do_filp_open+0x1bc/0x3cc [ 30.500906][ T6389] do_sys_openat2+0x124/0x1b8 [ 30.502065][ T6389] __arm64_sys_openat+0x1f0/0x240 [ 30.503361][ T6389] invoke_syscall+0x98/0x2b8 [ 30.504529][ T6389] el0_svc_common+0x130/0x23c [ 30.505694][ T6389] do_el0_svc+0x48/0x58 [ 30.506749][ T6389] el0_svc+0x54/0x168 [ 30.507835][ T6389] el0t_64_sync_handler+0x84/0xfc [ 30.509121][ T6389] el0t_64_sync+0x190/0x194 [ 30.510329][ T6389] [ 30.510329][ T6389] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 30.512174][ T6389] ocfs2_start_trans+0x244/0x71c [ 30.513492][ T6389] ocfs2_mknod+0xe58/0x243c [ 30.514706][ T6389] ocfs2_create+0x194/0x4e0 [ 30.515937][ T6389] path_openat+0xfb4/0x29f8 [ 30.517160][ T6389] do_filp_open+0x1bc/0x3cc [ 30.518351][ T6389] do_sys_openat2+0x124/0x1b8 [ 30.519511][ T6389] __arm64_sys_openat+0x1f0/0x240 [ 30.520762][ T6389] invoke_syscall+0x98/0x2b8 [ 30.522003][ T6389] el0_svc_common+0x130/0x23c [ 30.523185][ T6389] do_el0_svc+0x48/0x58 [ 30.524325][ T6389] el0_svc+0x54/0x168 [ 30.525362][ T6389] el0t_64_sync_handler+0x84/0xfc [ 30.526672][ T6389] el0t_64_sync+0x190/0x194 [ 30.527822][ T6389] [ 30.527822][ T6389] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}: [ 30.530194][ T6389] __lock_acquire+0x33d8/0x779c [ 30.531464][ T6389] lock_acquire+0x240/0x728 [ 30.532649][ T6389] down_write+0x50/0xc0 [ 30.533756][ T6389] ocfs2_reserve_local_alloc_bits+0xfc/0x247c [ 30.535326][ T6389] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 30.536977][ T6389] ocfs2_reserve_clusters+0x3c/0x50 [ 30.538240][ T6389] ocfs2_init_xattr_set_ctxt+0x404/0x968 [ 30.539642][ T6389] ocfs2_xattr_set+0xbe0/0x1448 [ 30.540887][ T6389] ocfs2_xattr_trusted_set+0x4c/0x64 [ 30.542271][ T6389] __vfs_setxattr+0x3d8/0x400 [ 30.543492][ T6389] __vfs_setxattr_noperm+0x110/0x578 [ 30.544826][ T6389] __vfs_setxattr_locked+0x1ec/0x218 [ 30.546243][ T6389] vfs_setxattr+0x1a8/0x344 [ 30.547427][ T6389] path_setxattr+0x30c/0x428 [ 30.548577][ T6389] __arm64_sys_setxattr+0xbc/0xd8 [ 30.549868][ T6389] invoke_syscall+0x98/0x2b8 [ 30.551078][ T6389] el0_svc_common+0x130/0x23c [ 30.552294][ T6389] do_el0_svc+0x48/0x58 [ 30.553423][ T6389] el0_svc+0x54/0x168 [ 30.554525][ T6389] el0t_64_sync_handler+0x84/0xfc [ 30.555818][ T6389] el0t_64_sync+0x190/0x194 [ 30.556951][ T6389] [ 30.556951][ T6389] other info that might help us debug this: [ 30.556951][ T6389] [ 30.559369][ T6389] Chain exists of: [ 30.559369][ T6389] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 30.559369][ T6389] [ 30.563130][ T6389] Possible unsafe locking scenario: [ 30.563130][ T6389] [ 30.564834][ T6389] CPU0 CPU1 [ 30.566002][ T6389] ---- ---- [ 30.567275][ T6389] lock(&oi->ip_xattr_sem); [ 30.568388][ T6389] lock(jbd2_handle); [ 30.569915][ T6389] lock(&oi->ip_xattr_sem); [ 30.571913][ T6389] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 30.573656][ T6389] [ 30.573656][ T6389] *** DEADLOCK *** [ 30.573656][ T6389] [ 30.575536][ T6389] 3 locks held by syz-executor319/6389: [ 30.576874][ T6389] #0: ffff0000d9cc4420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 30.579038][ T6389] #1: ffff0000dee23480 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: vfs_setxattr+0x17c/0x344 [ 30.581535][ T6389] #2: ffff0000dee231b8 (&oi->ip_xattr_sem){+.+.}-{3:3}, at: ocfs2_xattr_set+0x4e0/0x1448 [ 30.583864][ T6389] [ 30.583864][ T6389] stack backtrace: [ 30.585171][ T6389] CPU: 1 UID: 0 PID: 6389 Comm: syz-executor319 Not tainted 6.11.0-rc5-syzkaller-gdf54f4a16f82 #0 [ 30.587581][ T6389] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 [ 30.589906][ T6389] Call trace: [ 30.590693][ T6389] dump_backtrace+0x1b8/0x1e4 [ 30.591818][ T6389] show_stack+0x2c/0x3c [ 30.592820][ T6389] dump_stack_lvl+0xe4/0x150 [ 30.593808][ T6389] dump_stack+0x1c/0x28 [ 30.594770][ T6389] print_circular_bug+0x150/0x1b8 [ 30.595938][ T6389] check_noncircular+0x310/0x404 [ 30.597146][ T6389] __lock_acquire+0x33d8/0x779c [ 30.598308][ T6389] lock_acquire+0x240/0x728 [ 30.599366][ T6389] down_write+0x50/0xc0 [ 30.600317][ T6389] ocfs2_reserve_local_alloc_bits+0xfc/0x247c [ 30.601737][ T6389] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 30.603174][ T6389] ocfs2_reserve_clusters+0x3c/0x50 [ 30.604396][ T6389] ocfs2_init_xattr_set_ctxt+0x404/0x968 [ 30.605736][ T6389] ocfs2_xattr_set+0xbe0/0x1448 [ 30.606881][ T6389] ocfs2_xattr_trusted_set+0x4c/0x64 [ 30.608105][ T6389] __vfs_setxattr+0x3d8/0x400 [ 30.609214][ T6389] __vfs_setxattr_noperm+0x110/0x578 [ 30.610462][ T6389] __vfs_setxattr_locked+0x1ec/0x218 [ 30.611597][ T6389] vfs_setxattr+0x1a8/0x344 [ 30.612599][ T6389] path_setxattr+0x30c/0x428 [ 30.613629][ T6389] __arm64_sys_setxattr+0xbc/0xd8 [ 30.614862][ T6389] invoke_syscall+0x98/0x2b8 [ 30.615978][ T6389] el0_svc_common+0x130/0x23c [ 30.617054][ T6389] do_el0_svc+0x48/0x58 [ 30.618029][ T6389] el0_svc+0x54/0x168 [ 30.618942][ T6389] el0t_64_sync_handler+0x84/0xfc [ 30.620112][ T6389] el0t_64_sync+0x190/0x194