aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorKrzysztof Kozlowski2018-02-20 19:17:51 +0100
committerLinus Walleij2018-03-08 13:02:26 +0100
commit93b0beae721b3344923b4b8317e9d83b542f4ca6 (patch)
treece5cc58b8d2c4ad71fd843922eea601ca3728005 /arch/x86
parent625504aeff11eeb95f78ad9dde22d911c6839c71 (diff)
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: 30574f0db1b1 ("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>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions