Re: [PATCH 0/2] nilfs2: robustness fixes from Jake Labelle
From: Viacheslav Dubeyko
Date: Thu Oct 08 2026 - 12:46:35 EST
On Thu, 2026-10-08 at 20:52 +0900, Ryusuke Konishi wrote:
> Hi Viacheslav,
>
> Please add the following two commits from Jake Labelle to your queue
> for the next cycle.
>
> As this cycle is getting closer to its end, I am sending these ahead
> with
> a minor fix applied. If Jake responds with further comments or
> revised
> proposals later, we can discuss them as needed.
>
> These patches address two robustness issues:
>
> - Patch 1/2 rejects special inodes during dsync recovery to prevent
> dereferencing uninitialized bmap function pointers.
> - Patch 2/2 validates and snaps the directory position after llseek
> in
> nilfs_readdir() to prevent invalid or out-of-bounds page reads.
>
> For full context and background details, please refer to the original
> cover letter here:
>
> https://lore.kernel.org/all/20260930000954.371774-1-southampton.jake.labelle@xxxxxxxxx
>
> Thanks,
> Ryusuke Konishi
>
> Jake Labelle (2):
> nilfs2: reject non-regular inodes in dsync recovery
> nilfs2: validate directory position after llseek in readdir
>
> fs/nilfs2/dir.c | 34 ++++++++++++++++++++++++++++++++++
> fs/nilfs2/recovery.c | 17 +++++++++++++++++
> 2 files changed, 51 insertions(+)
Applied.
Thanks,
Slava.