Skip to content

nilfs2: robustness fixes from Jake Labelle

Ryusuke Konishi linux-nilfs lkml 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2nilfs2: reject non-regular inodes in dsync recoveryfs/nilfs2/recovery.c+17 -00 replies
2/2nilfs2: validate directory position after llseek in readdirfs/nilfs2/dir.c+34 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] nilfs2: robustness fixes from Jake Labelle

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/[email protected]

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(+)
Signature · 1 line
2.53.0