Re: [PATCH] f2fs: fix off-by-one error in nat journal entries check

2023-01-17 Thread Daniel Kiper
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-

[PATCH] f2fs: fix off-by-one error in nat journal entries check

2023-01-14 Thread Daniel Axtens
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: программист нект Tested-by: программист нект Signed-off-by: Daniel Ax