Skip to content

qnx4: Avoid confusing compiler about buffer lengths

Kees Cook linux-hardening lkml 2 versions – Applied

Status from this message: Applied to for-next/hardening, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesApplied
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Use BUILD_BUG_ON() instead of _Static_assert()
v1: https://lore.kernel.org/all/[email protected]/

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2qnx4: Extract dir entry filename processing into helperfs/qnx4/dir.c fs/qnx4/qnx4.h+67 -450 replies
2/2qnx4: Use get_directory_fname() in qnx4_match()fs/qnx4/namei.c+11 -180 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAnders Larsen
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] qnx4: Avoid confusing compiler about buffer lengths

Hi,

This attempts to fix the issue Ronald Monthero found[1]. Avoids using a too-short struct buffer when reading the string, by using the existing struct union.

-Kees

[1] https://lore.kernel.org/lkml/[email protected]/

v2:
- Use BUILD_BUG_ON() instead of _Static_assert()
v1: https://lore.kernel.org/all/[email protected]/

Kees Cook (2):
qnx4: Extract dir entry filename processing into helper
qnx4: Use get_directory_fname() in qnx4_match()

 fs/qnx4/dir.c   | 52 ++++++------------------------------------
 fs/qnx4/namei.c | 29 +++++++++---------------
 fs/qnx4/qnx4.h  | 60 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 78 insertions(+), 63 deletions(-)
Signature · 1 line
2.34.1