[PATCH 08/12] clk: samsung: exynos7885: Terminate PLL rate table with sentinel
From: Lee Jones
Date: Fri Nov 27 2026 - 13:05:35 EST
_samsung_clk_register_pll() sizes each PLL rate table by scanning until
it encounters an entry with .rate == 0, then copies the counted entries
into pll->rate_table. However, pll_usb_rate_table omits a terminating
zero sentinel, causing out-of-bounds reads into adjacent read-only data
and populating pll->rate_table with bogus entries.
Append a sentinel entry to pll_usb_rate_table.
Fixes: 011a9de99793 ("clk: samsung: exynos7885: Add USB related clocks to CMU_FSYS")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
---
drivers/clk/samsung/clk-exynos7885.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/samsung/clk-exynos7885.c b/drivers/clk/samsung/clk-exynos7885.c
index 17c2a4fc1a55..6bde2437b0ff 100644
--- a/drivers/clk/samsung/clk-exynos7885.c
+++ b/drivers/clk/samsung/clk-exynos7885.c
@@ -729,6 +729,7 @@ static const unsigned long fsys_clk_regs[] __initconst = {
static const struct samsung_pll_rate_table pll_usb_rate_table[] __initconst = {
PLL_35XX_RATE(26 * MHZ, 50000000U, 400, 13, 4),
+ { /* sentinel */ }
};
static const struct samsung_pll_clock fsys_pll_clks[] __initconst = {
--
2.56.1.839.g22a8290db9-goog