Re: [PATCH] stable: crypto: sha256 - fix crash at kexec
From: Eric Biggers
Date: Wed Oct 01 2025 - 12:56:29 EST
On Wed, Oct 01, 2025 at 09:45:07AM -0700, Breno Leitao wrote:
> Hello Eric,
>
> On Wed, Oct 01, 2025 at 09:23:05AM -0700, Eric Biggers wrote:
>
> > This looks fine, but technically 'unsigned int' would be more
> > appropriate here, given the context. If we look at the whole function
> > in 6.12, we can see that it took an 'unsigned int' length:
>
> Ack. Do you want me to send a v2 with `unsigned int` instead?
>
Sure. Could you also make it clear which kernel version(s) you are
expecting the patch to be applied to? Is it everything 5.4 through
6.15? It looks like this bug actually got exposed by f4da7afe07523f
("kexec_file: increase maximum file size to 4G") in 6.0. But
backporting to older versions should be fine too, if it applies to them.
- Eric