Re: [PATCH] arm64/crc-t10dif: fix use of out-of-scope array in crc_t10dif_arch()
From: Ard Biesheuvel
Date: Thu Mar 27 2025 - 04:16:35 EST
On Wed, 26 Mar 2025 at 21:09, Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
>
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
>
> 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.