qnx4: Avoid confusing compiler about buffer lengths
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
- v2 Latest2 patches 6 repliesApplied
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | qnx4: Extract dir entry filename processing into helperfs/ fs/ | +67 | 0 replies | |
| 2/2 | qnx4: Use get_directory_fname() in qnx4_match()fs/ | +11 | 0 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.
| Patch | Anders Larsen |
|---|---|
| Series | A-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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