diff options
| author | Krzysztof Kozlowski <[email protected]> | 2018-02-20 18:17:51 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2018-03-08 12:02:26 +0000 |
| commit | 93b0beae721b3344923b4b8317e9d83b542f4ca6 (patch) | |
| tree | ce5cc58b8d2c4ad71fd843922eea601ca3728005 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | pinctrl: sh-pfc: r8a7795: remove duplicate of CLKOUT pin in pinmux_pins[] (diff) | |
| download | kernel-93b0beae721b3344923b4b8317e9d83b542f4ca6.tar.gz kernel-93b0beae721b3344923b4b8317e9d83b542f4ca6.zip | |
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 <[email protected]>
Cc: <[email protected]>
Fixes: 30574f0db1b1 ("pinctrl: add samsung pinctrl and gpiolib driver")
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Acked-by: Tomasz Figa <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
