linux-stable/drivers/pinctrl/samsung
Krzysztof Kozlowski 93b0beae72 pinctrl: samsung: Validate alias coming from DT
Driver uses alias from Device Tree as an index of pin controller data
array.  In case of a wrong DTB or an out-of-tree DTB, the alias could be
outside of this data array leading to out-of-bounds access.

Depending on binary and memory layout, this could be handled properly
(showing error like "samsung-pinctrl 3860000.pinctrl: driver data not
available") or could lead to exceptions.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: <stable@vger.kernel.org>
Fixes: 30574f0db1 ("pinctrl: add samsung pinctrl and gpiolib driver")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-03-08 13:02:26 +01:00
..
Kconfig pinctrl: samsung: Add SPDX license identifiers 2018-01-03 08:46:54 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pinctrl-exynos-arm.c pinctrl: samsung: Validate alias coming from DT 2018-03-08 13:02:26 +01:00
pinctrl-exynos-arm64.c pinctrl: samsung: Validate alias coming from DT 2018-03-08 13:02:26 +01:00
pinctrl-exynos.c pinctrl: samsung: Add SPDX license identifiers 2018-01-03 08:46:54 +01:00
pinctrl-exynos.h pinctrl: samsung: Add SPDX license identifiers 2018-01-03 08:46:54 +01:00
pinctrl-exynos5440.c pinctrl: samsung: Add SPDX license identifiers 2018-01-03 08:46:54 +01:00
pinctrl-s3c24xx.c pinctrl: samsung: Validate alias coming from DT 2018-03-08 13:02:26 +01:00
pinctrl-s3c64xx.c pinctrl: samsung: Validate alias coming from DT 2018-03-08 13:02:26 +01:00
pinctrl-samsung.c pinctrl: samsung: Validate alias coming from DT 2018-03-08 13:02:26 +01:00
pinctrl-samsung.h pinctrl: samsung: Validate alias coming from DT 2018-03-08 13:02:26 +01:00