[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/1] fs/xfs: Incorrect short form directory data boundary che
From: |
Daniel Kiper |
Subject: |
Re: [PATCH 1/1] fs/xfs: Incorrect short form directory data boundary check |
Date: |
Wed, 18 Oct 2023 18:09:11 +0200 |
On Thu, Sep 28, 2023 at 10:33:44PM +0000, Lidong Chen wrote:
> After parsing of the current entry, the entry pointer is advanced
> to the next entry at the end of the 'for' loop. In case where the
> last entry is at the end of the data boundary, the advanced entry
> pointer can point off the data boundary. The subsequent boundary
> check for the advanced entry pointer can cause a failure.
>
> The fix is to include the boundary check into the 'for' loop
> condition.
>
> Signed-off-by: Lidong Chen <lidong.chen@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel