lkml.org 
[lkml]   [2018]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 13/64] tls: clear key material from kernel memory when do_tls_setsockopt_conf fails
    Date
    4.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Sabrina Dubroca <sd@queasysnail.net>

    [ 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 | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/net/tls/tls_main.c
    +++ b/net/tls/tls_main.c
    @@ -425,7 +425,7 @@ static int do_tls_setsockopt_tx(struct s
    goto out;

    err_crypto_info:
    - memset(crypto_info, 0, sizeof(*crypto_info));
    + memzero_explicit(crypto_info, sizeof(union tls_crypto_context));
    out:
    return rc;
    }

    \
     
     \ /
      Last update: 2018-09-27 11:17    [W:4.241 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site