[PATCH 0/3] xfs: bound da-node entry counts

From: Shengzhuo Wei

Date: Sat Nov 07 2026 - 14:54:30 EST


The da-node verifier cannot distinguish directory and attribute geometry.
With multi-block directories it accepts an attribute node count that is
valid for a directory but larger than the attribute buffer. These
patches add fork-specific bounds in xfs_da3_path_shift(),
xfs_attr3_node_inactive(), and xfs_attr_node_list_lookup(), preventing
out-of-bounds reads and the inactivation write.

Signed-off-by: Shengzhuo Wei <me@xxxxxxxx>
---
Shengzhuo Wei (3):
xfs: bound node entries on path shifts
xfs: bound attr node entries on inactivation
xfs: bound attr node entries in listxattr

fs/xfs/libxfs/xfs_da_btree.c | 5 +++++
fs/xfs/xfs_attr_inactive.c | 8 ++++++++
fs/xfs/xfs_attr_list.c | 3 +++
3 files changed, 16 insertions(+)
---
base-commit: d68ce4e71248e1ff5af9654b407541d9260b3ba5
change-id: 20261106-twin-20261106-fs-xfs-da-node-e319621e1c48

Best regards,
--
Shengzhuo Wei <me@xxxxxxxx>