On Fri, Aug 25, 2023 at 12:15 PM Mikhail Kobuk <[email protected]> wrote:
> Write into 'pctrl->gpio_bank' happens before the check for GPIO index
> validity, so out of bounds write may happen.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: a1d1e0e3d80a ("pinctrl: nuvoton: Add driver for WPCM450")
> Signed-off-by: Mikhail Kobuk <[email protected]>
> Reviewed-by: Alexey Khoroshilov <[email protected]>
Patch applied for fixes.
Yours,
Linus Walleij