Thread (8 messages) 8 messages, 3 authors, 2018-02-23

[PATCH v2 3/9] serial: imx: Fix out-of-bounds access through serial port index

From: Uwe Kleine-König <hidden>
Date: 2018-02-23 13:51:59
Also in: linux-devicetree, linux-renesas-soc, linux-serial, lkml

On Fri, Feb 23, 2018 at 02:38:31PM +0100, Geert Uytterhoeven wrote:
The imx_ports[] array is indexed using a value derived from the
"serialN" alias in DT, or from platform data, which may lead to an
out-of-bounds access.

Fix this by adding a range check.

Fixes: ff05967a07225ab6 ("serial/imx: add of_alias_get_id() reference back")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Uwe Kleine-K?nig <redacted>

Thanks for your time
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help