[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdbHzO-Tc7s0aGMy7QxHMQ1NhN0tXF5U_ZdnVcUGn8rjwg@mail.gmail.com>
Date: Fri, 16 Jun 2023 15:00:14 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Xiaolei Wang <xiaolei.wang@...driver.com>
Cc: aisheng.dong@....com, festevam@...il.com, shawnguo@...nel.org,
ping.bai@....com, kernel@...gutronix.de, peng.fan@....com,
shenwei.wang@....com, bartosz.golaszewski@...aro.org,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [v4][PATCH] pinctrl: freescale: Fix a memory out of bounds when
num_configs is 1
On Fri, May 5, 2023 at 1:38 AM Xiaolei Wang <xiaolei.wang@...driver.com> 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@...driver.com>
> ---
> 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
Powered by blists - more mailing lists