Warning: Permanently added '10.128.0.189' (ED25519) to the list of known hosts. executing program [ 45.560889][ T4023] loop0: detected capacity change from 0 to 32768 [ 45.638919][ T4023] (syz-executor328,4023,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. [ 45.643276][ T4023] (syz-executor328,4023,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. [ 45.653808][ T4023] JBD2: Ignoring recovery information on journal [ 45.683391][ T4023] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [ 45.699235][ T4023] [ 45.699893][ T4023] ====================================================== [ 45.701794][ T4023] WARNING: possible circular locking dependency detected [ 45.703699][ T4023] 5.15.180-syzkaller #0 Not tainted [ 45.705038][ T4023] ------------------------------------------------------ [ 45.706927][ T4023] syz-executor328/4023 is trying to acquire lock: [ 45.708676][ T4023] ffff0000e1811808 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x12c/0x3a68 [ 45.712357][ T4023] [ 45.712357][ T4023] but task is already holding lock: [ 45.714281][ T4023] ffff0000e18186f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x328/0xea8 [ 45.716816][ T4023] [ 45.716816][ T4023] which lock already depends on the new lock. [ 45.716816][ T4023] [ 45.719537][ T4023] [ 45.719537][ T4023] the existing dependency chain (in reverse order) is: [ 45.722027][ T4023] [ 45.722027][ T4023] -> #5 (&oi->ip_xattr_sem){++++}-{3:3}: [ 45.724132][ T4023] down_read+0xc0/0x390 [ 45.725389][ T4023] ocfs2_init_acl+0x260/0x604 [ 45.726819][ T4023] ocfs2_mknod+0x114c/0x1e88 [ 45.728163][ T4023] ocfs2_create+0x180/0x468 [ 45.729537][ T4023] path_openat+0x1144/0x26e4 [ 45.730913][ T4023] do_filp_open+0x164/0x330 [ 45.732234][ T4023] do_sys_openat2+0x128/0x3d8 [ 45.733682][ T4023] __arm64_sys_openat+0x120/0x154 [ 45.735216][ T4023] invoke_syscall+0x98/0x2b8 [ 45.736645][ T4023] el0_svc_common+0x138/0x258 [ 45.738035][ T4023] do_el0_svc+0x58/0x14c [ 45.739348][ T4023] el0_svc+0x78/0x1e0 [ 45.740548][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 45.742022][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 45.743331][ T4023] [ 45.743331][ T4023] -> #4 (jbd2_handle){.+.+}-{0:0}: [ 45.745370][ T4023] start_this_handle+0xef4/0x11a4 [ 45.746882][ T4023] jbd2__journal_start+0x28c/0x744 [ 45.748467][ T4023] jbd2_journal_start+0x3c/0x4c [ 45.749982][ T4023] ocfs2_start_trans+0x43c/0x794 [ 45.751471][ T4023] ocfs2_modify_bh+0xe4/0x450 [ 45.752929][ T4023] ocfs2_local_read_info+0x102c/0x131c [ 45.754538][ T4023] dquot_load_quota_sb+0x6c4/0xa24 [ 45.756012][ T4023] dquot_load_quota_inode+0x274/0x4e4 [ 45.757613][ T4023] ocfs2_enable_quotas+0x17c/0x3b4 [ 45.759220][ T4023] ocfs2_fill_super+0x2e74/0x4074 [ 45.760687][ T4023] mount_bdev+0x264/0x358 [ 45.762004][ T4023] ocfs2_mount+0x44/0x58 [ 45.763290][ T4023] legacy_get_tree+0xd4/0x16c [ 45.764700][ T4023] vfs_get_tree+0x90/0x274 [ 45.766076][ T4023] do_new_mount+0x228/0x810 [ 45.767444][ T4023] path_mount+0x5b4/0x1000 [ 45.768824][ T4023] __arm64_sys_mount+0x514/0x5e4 [ 45.770310][ T4023] invoke_syscall+0x98/0x2b8 [ 45.771653][ T4023] el0_svc_common+0x138/0x258 [ 45.773065][ T4023] do_el0_svc+0x58/0x14c [ 45.774347][ T4023] el0_svc+0x78/0x1e0 [ 45.775568][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 45.777013][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 45.778432][ T4023] [ 45.778432][ T4023] -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: [ 45.780774][ T4023] down_read+0xc0/0x390 [ 45.781994][ T4023] ocfs2_start_trans+0x430/0x794 [ 45.783493][ T4023] ocfs2_modify_bh+0xe4/0x450 [ 45.784891][ T4023] ocfs2_local_read_info+0x102c/0x131c [ 45.786582][ T4023] dquot_load_quota_sb+0x6c4/0xa24 [ 45.788131][ T4023] dquot_load_quota_inode+0x274/0x4e4 [ 45.789698][ T4023] ocfs2_enable_quotas+0x17c/0x3b4 [ 45.791253][ T4023] ocfs2_fill_super+0x2e74/0x4074 [ 45.792754][ T4023] mount_bdev+0x264/0x358 [ 45.793980][ T4023] ocfs2_mount+0x44/0x58 [ 45.795230][ T4023] legacy_get_tree+0xd4/0x16c [ 45.796635][ T4023] vfs_get_tree+0x90/0x274 [ 45.797944][ T4023] do_new_mount+0x228/0x810 [ 45.799286][ T4023] path_mount+0x5b4/0x1000 [ 45.800617][ T4023] __arm64_sys_mount+0x514/0x5e4 [ 45.802073][ T4023] invoke_syscall+0x98/0x2b8 [ 45.803450][ T4023] el0_svc_common+0x138/0x258 [ 45.804842][ T4023] do_el0_svc+0x58/0x14c [ 45.806191][ T4023] el0_svc+0x78/0x1e0 [ 45.807459][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 45.808972][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 45.810338][ T4023] [ 45.810338][ T4023] -> #2 (sb_internal#2){.+.+}-{0:0}: [ 45.812401][ T4023] ocfs2_start_trans+0x2c4/0x794 [ 45.813805][ T4023] ocfs2_mknod+0xc60/0x1e88 [ 45.815161][ T4023] ocfs2_create+0x180/0x468 [ 45.816584][ T4023] path_openat+0x1144/0x26e4 [ 45.817999][ T4023] do_filp_open+0x164/0x330 [ 45.819366][ T4023] do_sys_openat2+0x128/0x3d8 [ 45.820745][ T4023] __arm64_sys_openat+0x120/0x154 [ 45.822232][ T4023] invoke_syscall+0x98/0x2b8 [ 45.823626][ T4023] el0_svc_common+0x138/0x258 [ 45.825091][ T4023] do_el0_svc+0x58/0x14c [ 45.826308][ T4023] el0_svc+0x78/0x1e0 [ 45.827558][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 45.829063][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 45.830444][ T4023] [ 45.830444][ T4023] -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}: [ 45.833325][ T4023] down_write+0xbc/0x12c [ 45.834605][ T4023] ocfs2_reserve_local_alloc_bits+0xf8/0x260c [ 45.836359][ T4023] ocfs2_reserve_clusters_with_limit+0x198/0x9e0 [ 45.838160][ T4023] ocfs2_reserve_clusters+0x3c/0x50 [ 45.839718][ T4023] ocfs2_mknod+0xc10/0x1e88 [ 45.841064][ T4023] ocfs2_create+0x180/0x468 [ 45.842615][ T4023] path_openat+0x1144/0x26e4 [ 45.844037][ T4023] do_filp_open+0x164/0x330 [ 45.845410][ T4023] do_sys_openat2+0x128/0x3d8 [ 45.846848][ T4023] __arm64_sys_openat+0x120/0x154 [ 45.848349][ T4023] invoke_syscall+0x98/0x2b8 [ 45.849743][ T4023] el0_svc_common+0x138/0x258 [ 45.851179][ T4023] do_el0_svc+0x58/0x14c [ 45.852446][ T4023] el0_svc+0x78/0x1e0 [ 45.853639][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 45.855108][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 45.856428][ T4023] [ 45.856428][ T4023] -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}: [ 45.859260][ T4023] __lock_acquire+0x2928/0x651c [ 45.860693][ T4023] lock_acquire+0x1f4/0x620 [ 45.862017][ T4023] down_write+0xbc/0x12c [ 45.863298][ T4023] ocfs2_reserve_suballoc_bits+0x12c/0x3a68 [ 45.865136][ T4023] ocfs2_reserve_new_metadata_blocks+0x34c/0x7d8 [ 45.867093][ T4023] ocfs2_init_xattr_set_ctxt+0x2f8/0x750 [ 45.868696][ T4023] ocfs2_xattr_set+0x928/0xea8 [ 45.870086][ T4023] ocfs2_xattr_trusted_set+0x4c/0x64 [ 45.871607][ T4023] __vfs_setxattr+0x388/0x3a4 [ 45.873077][ T4023] __vfs_setxattr_noperm+0x120/0x564 [ 45.874641][ T4023] __vfs_setxattr_locked+0x1ec/0x218 [ 45.876222][ T4023] vfs_setxattr+0x158/0x2ac [ 45.877551][ T4023] setxattr+0x248/0x2ac [ 45.878808][ T4023] path_setxattr+0x12c/0x25c [ 45.880250][ T4023] __arm64_sys_setxattr+0xbc/0xd8 [ 45.881744][ T4023] invoke_syscall+0x98/0x2b8 [ 45.883068][ T4023] el0_svc_common+0x138/0x258 [ 45.884427][ T4023] do_el0_svc+0x58/0x14c [ 45.885691][ T4023] el0_svc+0x78/0x1e0 [ 45.886871][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 45.888312][ T4023] el0t_64_sync+0x1a0/0x1a4 [ 45.889628][ T4023] [ 45.889628][ T4023] other info that might help us debug this: [ 45.889628][ T4023] [ 45.892401][ T4023] Chain exists of: [ 45.892401][ T4023] &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5 --> jbd2_handle --> &oi->ip_xattr_sem [ 45.892401][ T4023] [ 45.896694][ T4023] Possible unsafe locking scenario: [ 45.896694][ T4023] [ 45.898697][ T4023] CPU0 CPU1 [ 45.900149][ T4023] ---- ---- [ 45.901584][ T4023] lock(&oi->ip_xattr_sem); [ 45.902806][ T4023] lock(jbd2_handle); [ 45.904578][ T4023] lock(&oi->ip_xattr_sem); [ 45.906426][ T4023] lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); [ 45.908392][ T4023] [ 45.908392][ T4023] *** DEADLOCK *** [ 45.908392][ T4023] [ 45.910666][ T4023] 3 locks held by syz-executor328/4023: [ 45.912205][ T4023] #0: ffff0000d6dd8460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 45.914679][ T4023] #1: ffff0000e18189c8 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_setxattr+0x138/0x2ac [ 45.917386][ T4023] #2: ffff0000e18186f8 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x328/0xea8 [ 45.920029][ T4023] [ 45.920029][ T4023] stack backtrace: [ 45.921575][ T4023] CPU: 0 PID: 4023 Comm: syz-executor328 Not tainted 5.15.180-syzkaller #0 [ 45.923978][ T4023] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 45.926682][ T4023] Call trace: [ 45.927509][ T4023] dump_backtrace+0x0/0x43c [ 45.928774][ T4023] show_stack+0x2c/0x3c [ 45.929965][ T4023] __dump_stack+0x30/0x40 [ 45.931141][ T4023] dump_stack_lvl+0xf8/0x160 [ 45.932342][ T4023] dump_stack+0x1c/0x5c [ 45.933425][ T4023] print_circular_bug+0x148/0x1b0 [ 45.934835][ T4023] check_noncircular+0x240/0x2d4 [ 45.936187][ T4023] __lock_acquire+0x2928/0x651c [ 45.937466][ T4023] lock_acquire+0x1f4/0x620 [ 45.938647][ T4023] down_write+0xbc/0x12c [ 45.939746][ T4023] ocfs2_reserve_suballoc_bits+0x12c/0x3a68 [ 45.941341][ T4023] ocfs2_reserve_new_metadata_blocks+0x34c/0x7d8 [ 45.943045][ T4023] ocfs2_init_xattr_set_ctxt+0x2f8/0x750 [ 45.944684][ T4023] ocfs2_xattr_set+0x928/0xea8 [ 45.945967][ T4023] ocfs2_xattr_trusted_set+0x4c/0x64 [ 45.947370][ T4023] __vfs_setxattr+0x388/0x3a4 [ 45.948617][ T4023] __vfs_setxattr_noperm+0x120/0x564 [ 45.950057][ T4023] __vfs_setxattr_locked+0x1ec/0x218 [ 45.951467][ T4023] vfs_setxattr+0x158/0x2ac [ 45.952719][ T4023] setxattr+0x248/0x2ac [ 45.953843][ T4023] path_setxattr+0x12c/0x25c [ 45.955062][ T4023] __arm64_sys_setxattr+0xbc/0xd8 [ 45.956376][ T4023] invoke_syscall+0x98/0x2b8 [ 45.957563][ T4023] el0_svc_common+0x138/0x258 [ 45.958997][ T4023] do_el0_svc+0x58/0x14c [ 45.960186][ T4023] el0_svc+0x78/0x1e0 [ 45.961226][ T4023] el0t_64_sync_handler+0xcc/0xe4 [ 45.962561][ T4023] el0t_64_sync+0x1a0/0x1a4