[PATCH] pinctrl: stm32: fix array read out of bound
Linus Walleij
linus.walleij at linaro.org
Tue Nov 14 05:43:05 PST 2023
On Tue, Nov 7, 2023 at 12:06 PM Antonio Borneo
<antonio.borneo at foss.st.com> wrote:
> The existing code does not verify if the "tentative" index exceeds
> the size of the array, causing out of bound read.
> Issue identified with kasan.
>
> Check the index before using it.
>
> Signed-off-by: Antonio Borneo <antonio.borneo at foss.st.com>
> Fixes: 32c170ff15b0 ("pinctrl: stm32: set default gpio line names using pin names")
Patch applied for fixes.
And now I feel better about that I spent so much time porting Kasan to ARM32.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list