Re: [PATCH 04/12] clk: samsung: artpec9: Terminate PLL rate tables with sentinels
From: Jesper Nilsson
Date: Mon Nov 30 2026 - 09:39:10 EST
On Fri, Nov 27, 2026 at 06:03:12PM +0000, Lee Jones wrote
> [Some people who received this message don't often get email from lee@xxxxxxxxxx. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> _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, artpec9_pll_audio_rates,
> artpec9_pll_cpucl_rates, and artpec9_pll_fsys1_rates 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 3 PLL rate tables.
>
> Fixes: 85cc5be65b82 ("clk: samsung: artpec-9: Add initial clock support for ARTPEC-9 SoC")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
Acked-by: Jesper Nilsson <jesper.nilsson@xxxxxxxx>
/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson@xxxxxxxx