Re: [PATCH 1/6] xfs: don't spin forever on zero-length dirents when salvaging them

Christoph Hellwig <[email protected]>
Newsgroups org.kernel.vger.stable,org.kernel.vger.linux-xfs
Message-ID <[email protected]>
On Mon, Aug 24, 2026 at 10:34:39PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <[email protected]>
> 
> LOLLM noticed that xrep_dir_recover_data can spin forever if it
> encounters an unused dirent that claims to have length zero.  Fix that,
> and prevent the same thing from happening with a zero-length entry.

xfstests for this?

The fix itself looks good:

Reviewed-by: Christoph Hellwig <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.