Warning: Permanently added '10.128.0.123' (ED25519) to the list of known hosts. executing program [ 37.492829][ T4290] loop0: detected capacity change from 0 to 32768 [ 37.496654][ T4290] ======================================================= [ 37.496654][ T4290] WARNING: The mand mount option has been deprecated and [ 37.496654][ T4290] and is ignored by this kernel. Remove the mand [ 37.496654][ T4290] option from the mount to silence this warning. [ 37.496654][ T4290] ======================================================= [ 37.514209][ T4290] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 37.520879][ T4290] [ 37.521373][ T4290] ====================================================== [ 37.522704][ T4290] WARNING: possible circular locking dependency detected [ 37.524069][ T4290] 6.1.127-syzkaller #0 Not tainted [ 37.525026][ T4290] ------------------------------------------------------ [ 37.526407][ T4290] syz-executor422/4290 is trying to acquire lock: [ 37.527656][ T4290] ffff0000dfee6d88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x164/0x4428 [ 37.530294][ T4290] [ 37.530294][ T4290] but task is already holding lock: [ 37.531686][ T4290] ffff0000dfeebff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e4/0x1478 [ 37.533512][ T4290] [ 37.533512][ T4290] which lock already depends on the new lock. [ 37.533512][ T4290] [ 37.535511][ T4290] [ 37.535511][ T4290] the existing dependency chain (in reverse order) is: [ 37.537267][ T4290] [ 37.537267][ T4290] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 37.538767][ T4290] down_read+0x64/0x308 [ 37.539668][ T4290] ocfs2_init_acl+0x2c8/0x764 [ 37.540673][ T4290] ocfs2_mknod+0x1574/0x2560 [ 37.541684][ T4290] ocfs2_create+0x1a8/0x560 [ 37.542624][ T4290] path_openat+0xeac/0x2548 [ 37.543598][ T4290] do_filp_open+0x1bc/0x3cc [ 37.544568][ T4290] do_sys_openat2+0x128/0x3e0 [ 37.545549][ T4290] __arm64_sys_openat+0x1f0/0x240 [ 37.546642][ T4290] invoke_syscall+0x98/0x2bc [ 37.547614][ T4290] el0_svc_common+0x138/0x258 [ 37.548604][ T4290] do_el0_svc+0x58/0x13c [ 37.549538][ T4290] el0_svc+0x58/0x168 [ 37.550427][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 37.551529][ T4290] el0t_64_sync+0x18c/0x190 [ 37.552504][ T4290] [ 37.552504][ T4290] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 37.553891][ T4290] start_this_handle+0x1140/0x13ac [ 37.554963][ T4290] jbd2__journal_start+0x298/0x544 [ 37.556068][ T4290] jbd2_journal_start+0x3c/0x4c [ 37.557118][ T4290] ocfs2_start_trans+0x3e8/0x73c [ 37.558196][ T4290] ocfs2_mknod+0xe64/0x2560 [ 37.559159][ T4290] ocfs2_create+0x1a8/0x560 [ 37.560119][ T4290] path_openat+0xeac/0x2548 [ 37.561129][ T4290] do_filp_open+0x1bc/0x3cc [ 37.562110][ T4290] do_sys_openat2+0x128/0x3e0 [ 37.563114][ T4290] __arm64_sys_openat+0x1f0/0x240 [ 37.564166][ T4290] invoke_syscall+0x98/0x2bc [ 37.565163][ T4290] el0_svc_common+0x138/0x258 [ 37.566136][ T4290] do_el0_svc+0x58/0x13c [ 37.567063][ T4290] el0_svc+0x58/0x168 [ 37.567928][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 37.569009][ T4290] el0t_64_sync+0x18c/0x190 [ 37.569995][ T4290] [ 37.569995][ T4290] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 37.571609][ T4290] down_read+0x64/0x308 [ 37.572502][ T4290] ocfs2_start_trans+0x3dc/0x73c [ 37.573583][ T4290] ocfs2_mknod+0xe64/0x2560 [ 37.574539][ T4290] ocfs2_create+0x1a8/0x560 [ 37.575481][ T4290] path_openat+0xeac/0x2548 [ 37.576498][ T4290] do_filp_open+0x1bc/0x3cc [ 37.577526][ T4290] do_sys_openat2+0x128/0x3e0 [ 37.578573][ T4290] __arm64_sys_openat+0x1f0/0x240 [ 37.579649][ T4290] invoke_syscall+0x98/0x2bc [ 37.580641][ T4290] el0_svc_common+0x138/0x258 [ 37.581636][ T4290] do_el0_svc+0x58/0x13c [ 37.582564][ T4290] el0_svc+0x58/0x168 [ 37.583454][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 37.584522][ T4290] el0t_64_sync+0x18c/0x190 [ 37.585548][ T4290] [ 37.585548][ T4290] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 37.586993][ T4290] ocfs2_start_trans+0x260/0x73c [ 37.588055][ T4290] ocfs2_mknod+0xe64/0x2560 [ 37.589053][ T4290] ocfs2_create+0x1a8/0x560 [ 37.590010][ T4290] path_openat+0xeac/0x2548 [ 37.591002][ T4290] do_filp_open+0x1bc/0x3cc [ 37.591962][ T4290] do_sys_openat2+0x128/0x3e0 [ 37.593012][ T4290] __arm64_sys_openat+0x1f0/0x240 [ 37.594065][ T4290] invoke_syscall+0x98/0x2bc [ 37.595073][ T4290] el0_svc_common+0x138/0x258 [ 37.596062][ T4290] do_el0_svc+0x58/0x13c [ 37.596994][ T4290] el0_svc+0x58/0x168 [ 37.597876][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 37.598942][ T4290] el0t_64_sync+0x18c/0x190 [ 37.599917][ T4290] [ 37.599917][ T4290] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}: [ 37.601951][ T4290] down_write+0x5c/0x88 [ 37.602857][ T4290] ocfs2_reserve_local_alloc_bits+0xfc/0x25dc [ 37.604133][ T4290] ocfs2_reserve_clusters_with_limit+0x194/0xabc [ 37.605540][ T4290] ocfs2_reserve_clusters+0x3c/0x50 [ 37.606657][ T4290] ocfs2_mknod+0xe04/0x2560 [ 37.607639][ T4290] ocfs2_create+0x1a8/0x560 [ 37.608614][ T4290] path_openat+0xeac/0x2548 [ 37.609616][ T4290] do_filp_open+0x1bc/0x3cc [ 37.610595][ T4290] do_sys_openat2+0x128/0x3e0 [ 37.611618][ T4290] __arm64_sys_openat+0x1f0/0x240 [ 37.612665][ T4290] invoke_syscall+0x98/0x2bc [ 37.613670][ T4290] el0_svc_common+0x138/0x258 [ 37.614716][ T4290] do_el0_svc+0x58/0x13c [ 37.615647][ T4290] el0_svc+0x58/0x168 [ 37.616531][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 37.617600][ T4290] el0t_64_sync+0x18c/0x190 [ 37.618600][ T4290] [ 37.618600][ T4290] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}: [ 37.620711][ T4290] __lock_acquire+0x3338/0x7680 [ 37.621794][ T4290] lock_acquire+0x26c/0x7cc [ 37.622758][ T4290] down_write+0x5c/0x88 [ 37.623721][ T4290] ocfs2_reserve_suballoc_bits+0x164/0x4428 [ 37.624956][ T4290] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 37.626271][ T4290] ocfs2_init_xattr_set_ctxt+0x3b0/0x9f8 [ 37.627480][ T4290] ocfs2_xattr_set+0xc08/0x1478 [ 37.628515][ T4290] ocfs2_xattr_trusted_set+0x4c/0x64 [ 37.629660][ T4290] __vfs_setxattr+0x388/0x3a4 [ 37.630674][ T4290] __vfs_setxattr_noperm+0x110/0x528 [ 37.631786][ T4290] __vfs_setxattr_locked+0x1ec/0x218 [ 37.632930][ T4290] vfs_setxattr+0x1a8/0x344 [ 37.633922][ T4290] setxattr+0x230/0x294 [ 37.634839][ T4290] path_setxattr+0x17c/0x258 [ 37.635846][ T4290] __arm64_sys_setxattr+0xbc/0xd8 [ 37.636936][ T4290] invoke_syscall+0x98/0x2bc [ 37.637990][ T4290] el0_svc_common+0x138/0x258 [ 37.638979][ T4290] do_el0_svc+0x58/0x13c [ 37.639925][ T4290] el0_svc+0x58/0x168 [ 37.640818][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 37.641899][ T4290] el0t_64_sync+0x18c/0x190 [ 37.642866][ T4290] [ 37.642866][ T4290] other info that might help us debug this: [ 37.642866][ T4290] [ 37.644871][ T4290] Chain exists of: [ 37.644871][ T4290] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3 --> jbd2_handle --> &oi->ip_xattr_sem [ 37.644871][ T4290] [ 37.647964][ T4290] Possible unsafe locking scenario: [ 37.647964][ T4290] [ 37.649412][ T4290] CPU0 CPU1 [ 37.650419][ T4290] ---- ---- [ 37.651428][ T4290] lock(&oi->ip_xattr_sem); [ 37.652365][ T4290] lock(jbd2_handle); [ 37.653657][ T4290] lock(&oi->ip_xattr_sem); [ 37.655004][ T4290] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3); [ 37.656445][ T4290] [ 37.656445][ T4290] *** DEADLOCK *** [ 37.656445][ T4290] [ 37.658042][ T4290] 3 locks held by syz-executor422/4290: [ 37.659108][ T4290] #0: ffff0000d9d6c460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 37.660873][ T4290] #1: ffff0000dfeec2c8 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_setxattr+0x17c/0x344 [ 37.662917][ T4290] #2: ffff0000dfeebff8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x4e4/0x1478 [ 37.664827][ T4290] [ 37.664827][ T4290] stack backtrace: [ 37.665961][ T4290] CPU: 1 PID: 4290 Comm: syz-executor422 Not tainted 6.1.127-syzkaller #0 [ 37.667600][ T4290] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 37.669516][ T4290] Call trace: [ 37.670170][ T4290] dump_backtrace+0x1c8/0x1f4 [ 37.671067][ T4290] show_stack+0x2c/0x3c [ 37.671860][ T4290] dump_stack_lvl+0x108/0x170 [ 37.672743][ T4290] dump_stack+0x1c/0x5c [ 37.673560][ T4290] print_circular_bug+0x150/0x1b8 [ 37.674521][ T4290] check_noncircular+0x2cc/0x378 [ 37.675476][ T4290] __lock_acquire+0x3338/0x7680 [ 37.676405][ T4290] lock_acquire+0x26c/0x7cc [ 37.677251][ T4290] down_write+0x5c/0x88 [ 37.678061][ T4290] ocfs2_reserve_suballoc_bits+0x164/0x4428 [ 37.679219][ T4290] ocfs2_reserve_new_metadata_blocks+0x384/0x848 [ 37.680474][ T4290] ocfs2_init_xattr_set_ctxt+0x3b0/0x9f8 [ 37.681575][ T4290] ocfs2_xattr_set+0xc08/0x1478 [ 37.682539][ T4290] ocfs2_xattr_trusted_set+0x4c/0x64 [ 37.683553][ T4290] __vfs_setxattr+0x388/0x3a4 [ 37.684511][ T4290] __vfs_setxattr_noperm+0x110/0x528 [ 37.685521][ T4290] __vfs_setxattr_locked+0x1ec/0x218 [ 37.686518][ T4290] vfs_setxattr+0x1a8/0x344 [ 37.687427][ T4290] setxattr+0x230/0x294 [ 37.688240][ T4290] path_setxattr+0x17c/0x258 [ 37.689144][ T4290] __arm64_sys_setxattr+0xbc/0xd8 [ 37.690100][ T4290] invoke_syscall+0x98/0x2bc [ 37.690969][ T4290] el0_svc_common+0x138/0x258 [ 37.691882][ T4290] do_el0_svc+0x58/0x13c [ 37.692732][ T4290] el0_svc+0x58/0x168 [ 37.693529][ T4290] el0t_64_sync_handler+0x84/0xf0 [ 37.694524][ T4290] el0t_64_sync+0x18c/0x190