Skip to content

clk: Fix OOB writes, UAFs, ERR_PTR dereferences, and rate-calc bugs (batch 2)

Lee Jones linux-arm-kernel linux-clk linux-omap linux-rockchip linux-tegra lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10clk: ti: fapll: Fix output clock array allocation and bounds checkdrivers/clk/ti/fapll.c+9 -40 replies
2/10clk: tegra: bpmp: Drop manual clock unregister on provider failuredrivers/clk/tegra/clk-bpmp.c+0 -120 replies
3/10clk: starfive: jh7110-sys: Use devres for PLL0 clock and notifierdrivers/clk/starfive/clk-starfive-jh7110-sys.c+3 -20 replies
4/10clk: starfive: jh7110: Duplicate top clock bulk arrays per devicedrivers/clk/starfive/clk-starfive-jh7110-isp.c drivers/clk/starfive/clk-starfive-jh7110-vout.c+14 -40 replies
5/10clk: rockchip: cpu: Allocate rate_table before registering notifierdrivers/clk/rockchip/clk-cpu.c+13 -130 replies
6/10clk: tegra: bpmp: Skip ERR_PTR entries in tegra_bpmp_clk_of_xlate()drivers/clk/tegra/clk-bpmp.c+1 -10 replies
7/10clk: rp1: Propagate determine_rate() return value for PLL dividersdrivers/clk/clk-rp1.c+1 -30 replies
8/10clk: rp1: Reference secondary PLL divider clk_hw in parent tablesdrivers/clk/clk-rp1.c+14 -140 replies
9/10clk: keystone: sci-clk: Check allocation failure before copying clock arraydrivers/clk/keystone/sci-clk.c+6 -20 replies
10/10clk: versatile: icst: Check kasprintf() and put parent node on errordrivers/clk/versatile/clk-icst.c+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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)" <[email protected]>
Cc Andrea della Porta <[email protected]>
Cc Brian Masney <[email protected]>
Cc Conor Dooley <[email protected]>
Cc Dominique Belhachemi <[email protected]>
Cc Doug Anderson <[email protected]>
Cc Emil Renner Berthing <[email protected]>
Cc Florian Fainelli <[email protected]>
Cc Hal Feng <[email protected]>
Cc Heiko Stuebner <[email protected]>
Cc Jerome Brunet <[email protected]>
Cc Jonathan Hunter <[email protected]>
Cc Joshua Peisach <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Michael Turquette <[email protected]>
Cc Michal Wilczynski <[email protected]>
Cc Naushir Patuck <[email protected]>
Cc Nishanth Menon <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Prashant Gaikwad <[email protected]>
Cc Rob Herring <[email protected]>
Cc Rosen Penev <[email protected]>
Cc Santosh Shilimkar <[email protected]>
Cc Stephen Boyd <[email protected]>
Cc Tero Kristo <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Thomas Abraham <[email protected]>
Cc Timo Alho <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc Wentao Liang <[email protected]>
Cc Xingyu Wu <[email protected]>

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(-)
Signature · 1 line
2.56.1.839.g22a8290db9-goog