Messages in this thread | | | From | Linus Walleij <> | Date | Tue, 14 Nov 2023 14:43:05 +0100 | Subject | Re: [PATCH] pinctrl: stm32: fix array read out of bound |
| |
On Tue, Nov 7, 2023 at 12:06 PM Antonio Borneo <antonio.borneo@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@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
| |