summaryrefslogtreecommitdiffstats
path: root/Documentation/firmware_class
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe@baylibre.com>2018-11-03 22:56:01 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2018-11-09 10:35:43 +0100
commit9f4debe38415583086ce814798eeb864aeb39551 (patch)
treede8015d77ef66fa15b20282d86cfb8a4d5e71949 /Documentation/firmware_class
parentcrypto: user - fix leaking uninitialized memory to userspace (diff)
downloadlinux-9f4debe38415583086ce814798eeb864aeb39551.tar.xz
linux-9f4debe38415583086ce814798eeb864aeb39551.zip
crypto: user - Zeroize whole structure given to user space
For preventing uninitialized data to be given to user-space (and so leak potential useful data), the crypto_stat structure must be correctly initialized. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Fixes: cac5818c25d0 ("crypto: user - Implement a generic crypto statistics") Signed-off-by: Corentin Labbe <clabbe@baylibre.com> [EB: also fix it in crypto_reportstat_one()] [EB: use sizeof(var) rather than sizeof(type)] Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'Documentation/firmware_class')
0 files changed, 0 insertions, 0 deletions