[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174591879451.993707.7630596131927470519.b4-ty@bootlin.com>
Date: Tue, 29 Apr 2025 11:26:34 +0200
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Mikhail Arkhipov <m.arhipov@...a.ru>
Cc: Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>, linux-mtd@...ts.infradead.org,
linux-kernel@...r.kernel.org, lvc-project@...uxtesting.org
Subject: Re: [PATCH] mtd: nand: ecc-mxic: Fix use of uninitialized variable
ret
On Wed, 09 Apr 2025 00:39:06 +0300, Mikhail Arkhipov wrote:
> If ctx->steps is zero, the loop processing ECC steps is skipped,
> and the variable ret remains uninitialized. It is later checked
> and returned, which leads to undefined behavior and may cause
> unpredictable results in user space or kernel crashes.
>
> This scenario can be triggered in edge cases such as misconfigured
> geometry, ECC engine misuse, or if ctx->steps is not validated
> after initialization.
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: nand: ecc-mxic: Fix use of uninitialized variable ret
commit: d95846350aac72303036a70c4cdc69ae314aa26d
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
Powered by blists - more mailing lists