Re: [PATCH 07/10] clk: samsung: exynos5420: Terminate PLL rate tables with sentinels
From: Krzysztof Kozlowski
Date: Thu Nov 26 2026 - 02:12:09 EST
On 2026-11-26 08:09:21+01:00, Krzysztof Kozlowski wrote:
> On 2026-11-23 16:47 +0000, Lee Jones wrote:
>
> > _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, exynos5420_pll2550x_24mhz_tbl,
> > exynos5422_bpll_rate_table, exynos5420_epll_24mhz_tbl, and
> > exynos5420_vpll_24mhz_tbl all omit 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 each of the four PLL rate tables.
> >
> > Fixes: ca5b40293822 ("clk: samsung: register exynos5420 apll/kpll configuration data")
> > Fixes: 9842452acd3d ("clk: samsung: exynos542x: Add EPLL rate table")
> > Fixes: 8b4a7acf7b30 ("clk: samsung: add BPLL rate table for Exynos 5422 SoC")
> > Fixes: b92981de92cb ("clk: samsung: exynos5420: Add VPLL rate table")
> > Closes: https://sashiko.dev/#/bug/linux-553831f9-0a7b-4e94-be60-222de60ca8c3
> > Cc: stable@xxxxxxxxxxxxxxx
> > Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
> > ---
> > drivers/clk/samsung/clk-exynos5420.c | 4 ++++
> > 1 file changed, 4 insertions(+)
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Actually let me just grab it and I still wait for other files as well.
--
Krzysztof Kozlowski <krzk@xxxxxxxxxx>