summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-04-05 17:44:03 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-21 00:58:31 +0800
commit2d93913e22013cb941fa7e1cf3d5e6649bc2bfad (patch)
treefa9b7f7c9c17286b8cdb27e65a28e837a3f761d0 /crypto
parent3d8ccf9f6ef6b569b0821d75e4ada9430d3be462 (diff)
crypto: chelsio - don't leak information from the stack to userspace
The structure crypto_info contains fields that are not initialized and only .version is set. The copy_to_user call is hence leaking information from the stack to userspace which must be avoided. Fix this by zero'ing all the unused fields. Detected by CoverityScan, CID#1467421 ("Uninitialized scalar variable") Fixes: a08943947873 ("crypto: chtls - Register chtls with net tls") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions