summaryrefslogtreecommitdiff
path: root/crypto/pcbc.c
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe@baylibre.com>2018-11-03 14:56:01 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2018-11-09 17:35:43 +0800
commitf5dc455f1b0548b15904e18be717c6f85f1c446d (patch)
tree5a38ecf7dfabe6f578e35232024dd63af0a32ae9 /crypto/pcbc.c
parent031d476c37b4e01ccd361a245842863eaa5e26be (diff)
downloadlinux-crypto-f5dc455f1b0548b15904e18be717c6f85f1c446d.tar.gz
linux-crypto-f5dc455f1b0548b15904e18be717c6f85f1c446d.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: 0115ab23b941 ("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 'crypto/pcbc.c')
0 files changed, 0 insertions, 0 deletions