aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorDavid Gstir <[email protected]>2024-07-03 12:49:58 +0000
committerHerbert Xu <[email protected]>2024-07-12 23:50:28 +0000
commitdd52b5eeb0f70893f762da7254e923fd23fd1379 (patch)
treea9e1f5bf9fefdfe1325d8f277aa4e5cf1a8d386f /lib/crypto/mpi/mpi-bit.c
parenthwrng: Kconfig - Do not enable by default CN10K driver (diff)
downloadkernel-dd52b5eeb0f70893f762da7254e923fd23fd1379.tar.gz
kernel-dd52b5eeb0f70893f762da7254e923fd23fd1379.zip
crypto: mxs-dcp - Ensure payload is zero when using key slot
We could leak stack memory through the payload field when running AES with a key from one of the hardware's key slots. Fix this by ensuring the payload field is set to 0 in such cases. This does not affect the common use case when the key is supplied from main memory via the descriptor payload. Signed-off-by: David Gstir <[email protected]> Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Fixes: 3d16af0b4cfa ("crypto: mxs-dcp: Add support for hardware-bound keys") Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions