FAILED: Patch "xfs: fix remote xattr valuelblk check" failed to apply to 5.15-stable tree
Subsystems (2)
Sasha Levin
maintainerThe patch below does not apply to the 5.15-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From bd3138e8912c9db182eac5fed1337645a98b7a4f Mon Sep 17 00:00:00 2001
From: "Darrick J. Wong" <[email protected]>
Date: Fri, 23 Jan 2026 09:27:33 -0800
Subject: [PATCH] xfs: fix remote xattr valuelblk check
In debugging other problems with generic/753, it turns out that it's possible for the system go to down in the middle of a remote xattr set operation such that the leaf block entry is marked incomplete and valueblk is set to zero. Make this no longer a failure.
--- fs/xfs/scrub/attr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
fs/xfs/scrub/attr.c +4 -1
@@ -338,7 +338,10 @@ xchk_xattr_entry( rentry =xfs_attr3_leaf_name_remote (leaf, idx); namesize =xfs_attr_leaf_entsize_remote (rentry->namelen); name_end = (char *)rentry + namesize; -if (rentry->namelen ==0 || rentry->valueblk ==0 ) +if (rentry->namelen ==0 ) +xchk_da_set_corrupt (ds, level); +if (rentry->valueblk ==0 && + !(ent->flags &XFS_ATTR_INCOMPLETE ))xchk_da_set_corrupt (ds, level); }if (name_end > buf_end)
Signature · 1 line
2.51.0