Re: [PATCH 03/12] clk: samsung: artpec8: Terminate PLL rate table with sentinel

From: Jesper Nilsson

Date: Mon Nov 30 2026 - 09:38:52 EST


On Fri, Nov 27, 2026 at 06:03:11PM +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, artpec8_pll_audio_rates 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 artpec8_pll_audio_rates.
>
> Fixes: bd5336e3f704 ("clk: samsung: artpec-8: Add initial clock support for ARTPEC-8 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