Thread (14 messages) 14 messages, 4 authors, 2022-08-23

Re: [PATCH 1/3] clk: bcm: rpi: Prevent out-of-bounds access

From: Stephen Boyd <sboyd@kernel.org>
Date: 2022-08-23 22:52:17
Also in: linux-clk, lkml

Quoting Stefan Wahren (2022-07-13 08:49:51)
The while loop in raspberrypi_discover_clocks() relies on the assumption
that the id of the last clock element is zero. Because this data comes
from the Videocore firmware and it doesn't guarantuee such a behavior
this could lead to out-of-bounds access. So fix this by providing
a sentinel element.

Fixes: 93d2725affd6 ("clk: bcm: rpi: Discover the firmware clocks")
Link: https://github.com/raspberrypi/firmware/issues/1688
Suggested-by: Phil Elwell <redacted>
Signed-off-by: Stefan Wahren <redacted>
---
Applied to clk-fixes

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help