tls: clear key material from kernel memory when do_tls_setsockopt_conf fails
authorSabrina Dubroca <sd@queasysnail.net>
Wed, 12 Sep 2018 15:44:43 +0000 (17:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Sep 2018 10:06:01 +0000 (03:06 -0700)
commit18fef87e05d3569979bfce16ad7284259f60b52c
tree48808ecb790ad15dfc9724536a617109563d4034
parent0c0334299a7e085849c83bffe754626ba517d5ee
tls: clear key material from kernel memory when do_tls_setsockopt_conf fails

[ Upstream commit c844eb46b7d43c2cf760169df5ae1d5b033af338 ]

Fixes: 3c4d7559159b ("tls: kernel TLS support")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/tls/tls_main.c