Skip to content

crypto: crypto_user reporting fixes and cleanups

Eric Biggers linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4crypto: crypto_user - fix leaking uninitialized memory to userspacecrypto/crypto_user_base.c+9 -90 replies
2/4crypto: crypto_user_stat - Zeroize whole structure given to user spacecrypto/crypto_user_stat.c+21 -00 replies
3/4crypto: crypto_user - remove redundant reporting functionscrypto/crypto_user_base.c+0 -590 replies
4/4crypto: crypto_user - clean up report structure copyingcrypto/ablkcipher.c crypto/acompress.c crypto/aead.c +10 more+96 -1990 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] crypto: crypto_user reporting fixes and cleanups

This series fixes all the information leaks in crypto_user reporting, removes some redundant reporting functions, and makes some changes to reduce the chance of similar information leaks in the future. Patch 2 is based on a patch already sent by Corentin Labbe, but it was incomplete so I fixed it.

Corentin Labbe (1):
crypto: crypto_user_stat - Zeroize whole structure given to user space

Eric Biggers (3):
crypto: crypto_user - fix leaking uninitialized memory to userspace
crypto: crypto_user - remove redundant reporting functions
crypto: crypto_user - clean up report structure copying

 crypto/ablkcipher.c       |  32 ++++------
 crypto/acompress.c        |  10 +---
 crypto/aead.c             |  14 ++---
 crypto/ahash.c            |  12 ++--
 crypto/akcipher.c         |  11 ++--
 crypto/blkcipher.c        |  16 ++---
 crypto/crypto_user_base.c |  95 +++++------------------------
 crypto/crypto_user_stat.c | 123 ++++++++++++++------------------------
 crypto/kpp.c              |  10 +---
 crypto/rng.c              |  12 ++--
 crypto/scompress.c        |  11 ++--
 crypto/shash.c            |  12 ++--
 crypto/skcipher.c         |  15 ++---
 13 files changed, 116 insertions(+), 257 deletions(-)
Signature · 1 line
2.19.1