]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: make sure offload also gets the keys wiped
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 28 Jun 2019 23:11:39 +0000 (16:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2019 02:22:36 +0000 (19:22 -0700)
commit7030a49ada5a0c88108fbef47ab78aff398c07f7
tree72f95626e91ff78f4530d1d2cc7425932b9e95fe
parentaee45f5d9a8516e3b3ff7f5284813a600c881985
net/tls: make sure offload also gets the keys wiped

Commit 98e31f4036fb ("tls: zero the crypto information from tls_context
before freeing") added memzero_explicit() calls to clear the key material
before freeing struct tls_context, but it missed tls_device.c has its
own way of freeing this structure. Replace the missing free.

Fixes: 98e31f4036fb ("tls: zero the crypto information from tls_context before freeing")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_device.c
net/tls/tls_main.c