Re: [PATCH] mtd: partitions: redboot: Added conversion of operands to a larger type

From: Miquel Raynal
Date: Mon Mar 25 2024 - 10:21:17 EST


On Fri, 2024-03-15 at 09:37:58 UTC, Denis Arefev wrote:
> The value of an arithmetic expression directory * master->erasesize is
> subject to overflow due to a failure to cast operands to a larger data
> type before perfroming arithmetic
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Signed-off-by: Denis Arefev <arefev@xxxxxxxxx>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel