Skip to content

tls: don't leave keys in kernel memory

Sabrina Dubroca netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tls: don't copy the key out of tls12_crypto_info_aes_gcm_128net/tls/tls_sw.c+1 -40 replies
2/3tls: zero the crypto information from tls_context before freeinginclude/net/tls.h net/tls/tls_device.c net/tls/tls_device_fallback.c +2 more+32 -230 replies
3/3tls: clear key material from kernel memory when do_tls_setsockopt_conf failsnet/tls/tls_main.c+1 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH net v2 0/3] tls: don't leave keys in kernel memory

There are a few places where the RX/TX key for a TLS socket is copied to kernel memory. This series clears those memory areas when they're no longer needed.

v2: add union tls_crypto_context, following Vakul Garg's comment
swap patch 2 and 3, using new union in patch 3

Sabrina Dubroca (3):
tls: don't copy the key out of tls12_crypto_info_aes_gcm_128
tls: zero the crypto information from tls_context before freeing
tls: clear key material from kernel memory when do_tls_setsockopt_conf
fails

 include/net/tls.h             | 19 +++++++++----------
 net/tls/tls_device.c          |  6 +++---
 net/tls/tls_device_fallback.c |  2 +-
 net/tls/tls_main.c            | 22 ++++++++++++++++------
 net/tls/tls_sw.c              | 13 +++++--------
 5 files changed, 34 insertions(+), 28 deletions(-)
Signature · 1 line
2.18.0