mbox series

[v2,0/2,next] clk: visconti: Fix undefined behavior bug and add bounds-checking coverage

Message ID cover.1697492890.git.gustavoars@kernel.org (mailing list archive)
Headers show
Series clk: visconti: Fix undefined behavior bug and add bounds-checking coverage | expand

Message

Gustavo A. R. Silva Oct. 16, 2023, 10:04 p.m. UTC
This small series aims to fix an undefined behavior bug in
`struct visconti_pll_provider` and add bounds-checking
coverage at run-time for flexible-array member `hws`
in `struct clk_hw_onecell_data` when accessed throught
`struct visconti_pll_provider`.

Changes in v2:
 - Mention -Wflex-array-member-not-at-end in the changelog text.

v1:
 - Link: https://lore.kernel.org/linux-hardening/cover.1697076650.git.gustavoars@kernel.org/

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

 drivers/clk/visconti/pll.c | 6 +++---
 drivers/clk/visconti/pll.h | 4 +++-
 2 files changed, 6 insertions(+), 4 deletions(-)