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

Jesper Nilsson jesper.nilsson at axis.com
Mon Nov 30 06:38:32 PST 2026


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 at kernel.org. 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 at vger.kernel.org
> Signed-off-by: Lee Jones <lee at kernel.org>

Acked-by: Jesper Nilsson <jesper.nilsson at axis.com>

/^JN - Jesper Nilsson
-- 
               Jesper Nilsson -- jesper.nilsson at axis.com



More information about the linux-arm-kernel mailing list