[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75VfWawPZyqVQ5TJVPQiW+QANWvnougdiDfvthuNhfrzTbA@mail.gmail.com>
Date: Thu, 20 Oct 2022 20:16:37 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: cy_huang <u0084500@...il.com>
Cc: lee@...nel.org, matthias.bgg@...il.com, chiaen_wu@...htek.com,
cy_huang@...htek.com, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mfd: mt6370: Add the overbound check to prevent the null pointer
On Thu, Oct 20, 2022 at 7:31 PM cy_huang <u0084500@...il.com> wrote:
>
> From: ChiYuan Huang <cy_huang@...htek.com>
>
> This potential risk could happen at regmap_raw_read or
> regmap_raw_write when accessing the over-bound register address.
Functions are referred to as func().
> Below's the issue reproduced log to access over-bound register with
> regmap_raw_read function.
Ditto.
> [ 41.301385] Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT)
> [ 41.307296] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Please, read Submitting Patches, and trim your commit message accordingly.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists