Skip to content

clk: socfpga: Fix undefined behavior bug and add bounds-checking coverage

Gustavo A. R. Silva linux-clk linux-hardening lkml 4 versions – Applied

Status from this message: Applied to clk-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied
  2. v2 posting 2/22 patches 0 repliesSuperseded
  3. v2 posting 1/22 patches 4 repliesApplied
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches4 repliesSuperseded

Changes in v3 from the cover letter

- None, really. Just Cc [email protected] this time.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2clk: socfpga: Fix undefined behavior bug in struct stratix10_clock_datadrivers/clk/socfpga/stratix10-clk.h+3 -11 reply
2/2clk: socfpga: agilex: Add bounds-checking coverage for struct stratix10_clock_datadrivers/clk/socfpga/clk-agilex.c drivers/clk/socfpga/clk-s10.c+9 -91 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKees Cook
1/2R-b
2/2R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2][next] clk: socfpga: Fix undefined behavior bug and add bounds-checking coverage

This series aims to fix an undefined behavior bug in struct stratix10_clock_data and add bounds-checking coverage at run-time for flexible-array member hws in struct clk_hw_onecell_data when accessed throught struct stratix10_clock_data.

Changes in v3:
- None, really. Just Cc [email protected] this time.

Changes in v2:
- Mention -Wflex-array-member-not-at-end in the changelog text.
- Link: https://lore.kernel.org/linux-hardening/[email protected]/

v1:
- Link: https://lore.kernel.org/linux-hardening/[email protected]/

Gustavo A. R. Silva (2):
clk: socfpga: Fix undefined behavior bug in struct
stratix10_clock_data
clk: socfpga: agilex: Add bounds-checking coverage for struct
stratix10_clock_data

 drivers/clk/socfpga/clk-agilex.c    | 12 ++++++------
 drivers/clk/socfpga/clk-s10.c       |  6 +++---
 drivers/clk/socfpga/stratix10-clk.h |  4 +++-
 3 files changed, 12 insertions(+), 10 deletions(-)
Signature · 1 line
2.34.1