[PATCH 00/10] clk: Fix OOB writes, UAFs, ERR_PTR dereferences, and rate-calc bugs (batch 2)

From: Lee Jones

Date: Fri Nov 27 2026 - 14:26:33 EST


These issues were reported by Sashiko.

This is batch 2 of Common Clock Framework fixes, based on clk/clk-next.
It addresses output array OOB writes in ti/fapll, ERR_PTR dereferences
and double-unregister in tegra/bpmp, notifier UAFs and global array
mutation in starfive/jh7110 and rockchip/cpu, rate and parent lookup
bugs in rp1, and allocation error handling in sci-clk and icst.

Cc: "Thomas Richard (TI)" <thomas.richard@xxxxxxxxxxx>
Cc: Andrea della Porta <andrea.porta@xxxxxxxx>
Cc: Brian Masney <bmasney+clk@xxxxxxxxxx>
Cc: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
Cc: Dominique Belhachemi <db@xxxxxxxxxx>
Cc: Doug Anderson <dianders@xxxxxxxxxxxx>
Cc: Emil Renner Berthing <kernel@xxxxxxxx>
Cc: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
Cc: Hal Feng <hal.feng@xxxxxxxxxxxxxxxx>
Cc: Heiko Stuebner <heiko@xxxxxxxxx>
Cc: Jerome Brunet <jbrunet+clk@xxxxxxxxxxxx>
Cc: Jonathan Hunter <jonathanh@xxxxxxxxxx>
Cc: Joshua Peisach <jpeisach@xxxxxxxxxx>
Cc: Linus Walleij <linusw@xxxxxxxxxx>
Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
Cc: linux-clk@xxxxxxxxxxxxxxx
Cc: linux-omap@xxxxxxxxxxxxxxx
Cc: linux-rockchip@xxxxxxxxxxxxxxxxxxx
Cc: linux-tegra@xxxxxxxxxxxxxxx
Cc: Michael Turquette <mturquette@xxxxxxxxxx>
Cc: Michal Wilczynski <m.wilczynski@xxxxxxxxxxx>
Cc: Naushir Patuck <naush@xxxxxxxxxxxxxxx>
Cc: Nishanth Menon <nm@xxxxxx>
Cc: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
Cc: Prashant Gaikwad <pgaikwad@xxxxxxxxxx>
Cc: Rob Herring <robh@xxxxxxxxxx>
Cc: Rosen Penev <rosenp@xxxxxxxxx>
Cc: Santosh Shilimkar <ssantosh@xxxxxxxxxx>
Cc: Stephen Boyd <sboyd@xxxxxxxxxx>
Cc: Tero Kristo <kristo@xxxxxxxxxx>
Cc: Thierry Reding <thierry.reding@xxxxxxxxxx>
Cc: Thomas Abraham <thomas.ab@xxxxxxxxxxx>
Cc: Timo Alho <talho@xxxxxxxxxx>
Cc: Tony Lindgren <tony@xxxxxxxxxxx>
Cc: Wentao Liang <vulab@xxxxxxxxxxx>
Cc: Xingyu Wu <xingyu.wu@xxxxxxxxxxxxxxxx>

Lee Jones (10):
clk: ti: fapll: Fix output clock array allocation and bounds check
clk: tegra: bpmp: Drop manual clock unregister on provider failure
clk: starfive: jh7110-sys: Use devres for PLL0 clock and notifier
clk: starfive: jh7110: Duplicate top clock bulk arrays per device
clk: rockchip: cpu: Allocate rate_table before registering notifier
clk: tegra: bpmp: Skip ERR_PTR entries in tegra_bpmp_clk_of_xlate()
clk: rp1: Propagate determine_rate() return value for PLL dividers
clk: rp1: Reference secondary PLL divider clk_hw in parent tables
clk: keystone: sci-clk: Check allocation failure before copying clock
array
clk: versatile: icst: Check kasprintf() and put parent node on error

drivers/clk/clk-rp1.c | 32 +++++++++----------
drivers/clk/keystone/sci-clk.c | 8 +++--
drivers/clk/rockchip/clk-cpu.c | 26 +++++++--------
.../clk/starfive/clk-starfive-jh7110-isp.c | 9 ++++--
.../clk/starfive/clk-starfive-jh7110-sys.c | 5 +--
.../clk/starfive/clk-starfive-jh7110-vout.c | 9 ++++--
drivers/clk/tegra/clk-bpmp.c | 14 +-------
drivers/clk/ti/fapll.c | 13 +++++---
drivers/clk/versatile/clk-icst.c | 5 +++
9 files changed, 66 insertions(+), 55 deletions(-)

--
2.56.1.839.g22a8290db9-goog