Re: [PATCH v1] regmap-irq: Fix out-of-bounds access when allocating config buffers

From: Mark Brown
Date: Tue Jul 11 2023 - 15:50:20 EST


On Tue, Jul 11, 2023 at 12:30:58PM -0700, Isaac J. Manjarres wrote:

> [ 14.033877][ T1] ==================================================================
> [ 14.042507][ T1] BUG: KASAN: invalid-access in regmap_add_irq_chip_fwnode+0x594/0x1364
> [ 14.050796][ T1] Write of size 8 at addr 06ffff8081021850 by task init/1
> [ 14.057841][ T1] Pointer tag: [06], memory tag: [fe]
> [ 14.063124][ T1]
> [ 14.065349][ T1] CPU: 2 PID: 1 Comm: init Tainted: G W E 6.4.0-mainline-g6a4b67fef3e2 #1
> [ 14.075014][ T1] Hardware name: Thundercomm Dragonboard 845c (DT)
> [ 14.081432][ T1] Call trace:

Please think hard before including complete backtraces in upstream
reports, they are very large and contain almost no useful information
relative to their size so often obscure the relevant content in your
message. If part of the backtrace is usefully illustrative (it often is
for search engines if nothing else) then it's usually better to pull out
the relevant sections.

Attachment: signature.asc
Description: PGP signature