[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] f2fs: fix off-by-one error in nat journal entries check
From: |
Daniel Kiper |
Subject: |
Re: [PATCH] f2fs: fix off-by-one error in nat journal entries check |
Date: |
Tue, 17 Jan 2023 17:51:34 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Sun, Jan 15, 2023 at 12:19:50AM +1100, Daniel Axtens wrote:
> Oops. You're allowed to have up to n = NAT_JOURNAL_ENTRIES entries
> _inclusive_, because the loop below uses i < n, not i <= n. D'oh.
>
> Fixes: 4bd9877f6216 ("fs/f2fs: Do not read past the end of nat journal
> entries")
> Reported-by: программист нект <programmer11180@programist.ru>
> Tested-by: программист нект <programmer11180@programist.ru>
> Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel