[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZFEr7BoCiLw8aSxv@surfacebook>
Date: Tue, 2 May 2023 18:27:40 +0300
From: andy.shevchenko@...il.com
To: Xiaolei Wang <xiaolei.wang@...driver.com>
Cc: aisheng.dong@....com, festevam@...il.com, shawnguo@...nel.org,
ping.bai@....com, kernel@...gutronix.de, linus.walleij@...aro.org,
peng.fan@....com, shenwei.wang@....com,
bartosz.golaszewski@...aro.org, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] pinctrl: freescale: Fix a memory out of bounds when
num_configs is 1
Mon, May 01, 2023 at 10:41:39PM +0800, Xiaolei Wang kirjoitti:
> The config passed in by pad wakeup is 1, When num_configs is 1,
> configs[1] should not be obtained, which will generate the
> following memory out-of-bounds situation:
> BUG: KASAN: stack out of bounds in imx_pinconf_set_scu+0x9c/0x160
> Read size 8 at address ffff8000104c7558 by task sh/664
> CPU: 3 PID: 664 Communication: sh Tainted: G WC 6.1.20 #1
> Hardware name: Freescale i.MX8QM MEK (DT)
> Call trace:
Please, read this
https://kernel.org/doc/html/latest/process/submitting-patches.html#backtraces-in-commit-messages
and update accordingly.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists