Re: [PATCH] xfs: reject a hole in a remote xattr value

From: Christoph Hellwig

Date: Wed Nov 25 2026 - 01:39:52 EST


FYI: posting in reply to a thread is not great. In general, please
post it separately.

On Sat, Nov 21, 2026 at 02:05:10PM +0900, Kyuwon Cho wrote:
> +++ b/fs/xfs/libxfs/xfs_attr_remote.c
> @@ -427,8 +427,11 @@ xfs_attr_rmtval_get(
> xfs_daddr_t dblkno;
> int dblkcnt;
>
> - ASSERT((map[i].br_startblock != DELAYSTARTBLOCK) &&
> - (map[i].br_startblock != HOLESTARTBLOCK));
> + if (XFS_IS_CORRUPT(mp, map[i].br_startblock == DELAYSTARTBLOCK) ||
> + XFS_IS_CORRUPT(mp, map[i].br_startblock == HOLESTARTBLOCK)) {

Overly long lines here.

Otherwise this looks good and like a useful improvement. Thanks a lot!