[PATCH] crypto: vmx - fix copy-paste error in CTR mode
mpe at ellerman.id.au
Mon Mar 18 17:03:07 AEDT 2019
Daniel Axtens <dja at axtens.net> writes:
> The original assembly imported from OpenSSL has two copy-paste
> errors in handling CTR mode. When dealing with a 2 or 3 block tail,
> the code branches to the CBC decryption exit path, rather than to
> the CTR exit path.
> This leads to corruption of the IV, which leads to subsequent blocks
> being corrupted.
> This can be detected with libkcapi test suite, which is available at
> Reported-by: Ondrej Mosnáček <omosnacek at gmail.com>
> Fixes: 5c380d623ed3 ("crypto: vmx - Add support for VMS instructions by ASM")
> Cc: stable at vger.kernel.org
> Signed-off-by: Daniel Axtens <dja at axtens.net>
Thanks, this fixes kcapi-enc-test.sh for me.
Tested-by: Michael Ellerman <mpe at ellerman.id.au>
More information about the Linuxppc-dev