]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
crypto: simd - correctly take reqsize of wrapped skcipher into account
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 8 Nov 2018 22:55:16 +0000 (23:55 +0100)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:44:52 +0000 (09:44 -0600)
commit63f19517004930fc1d606df6859bf6d56c686b37
tree34cdb15e72cb47ce07f3ad2902a2e3f22f3f165f
parentdd83a90e64a5256a152cf64a1d7778aee7d7653a
crypto: simd - correctly take reqsize of wrapped skcipher into account

BugLink: https://bugs.launchpad.net/bugs/1836968
[ Upstream commit 508a1c4df085a547187eed346f1bfe5e381797f1 ]

The simd wrapper's skcipher request context structure consists
of a single subrequest whose size is taken from the subordinate
skcipher. However, in simd_skcipher_init(), the reqsize that is
retrieved is not from the subordinate skcipher but from the
cryptd request structure, whose size is completely unrelated to
the actual wrapped skcipher.

Reported-by: Qian Cai <cai@gmx.us>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Qian Cai <cai@gmx.us>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
crypto/simd.c