[PATCH] arm64/crc-t10dif: fix use of out-of-scope array in crc_t10dif_arch()
Ard Biesheuvel
ardb at kernel.org
Thu Mar 27 01:15:09 PDT 2025
On Wed, 26 Mar 2025 at 21:09, Eric Biggers <ebiggers at kernel.org> wrote:
>
> From: Eric Biggers <ebiggers at google.com>
>
> Fix a silly bug where an array was used outside of its scope.
>
Yeah - mea culpa.
And the fact that we exit with a tail call means buf[] may be
deallocated by the time crc_t10dif_generic() refers to it - I'm
surprised this didn't already break in testing, but I suppose no tail
call is issued for other reasons.
More information about the linux-arm-kernel
mailing list