Re: [v4][PATCH] pinctrl: freescale: Fix a memory out of bounds when num_configs is 1
From: Linus Walleij
Date: Fri Jun 16 2023 - 09:00:34 EST
On Fri, May 5, 2023 at 1:38 AM Xiaolei Wang <xiaolei.wang@xxxxxxxxxxxxx> wrote:
> The config passed in by pad wakeup is 1, when num_configs is 1,
> Configuration [1] should not be fetched, which will be detected
> by KASAN as a memory out of bounds condition. Modify to get
> configs[1] when num_configs is 2.
>
> Fixes: f60c9eac54af ("gpio: mxc: enable pad wakeup on i.MX8x platforms")
> Signed-off-by: Xiaolei Wang <xiaolei.wang@xxxxxxxxxxxxx>
> ---
> Changes since v3:
> - update commit log, delete call trace
Patch applied.
Right now I have applied it for the merge window for kernel v6.5,
tell me if it is really urgent and should rather go in for fixes.
Yours,
Linus Walleij