Centos-kernel-stream-9/net/tls
Sabrina Dubroca 6b16516b23 tls: improve lockless access safety of tls_err_abort()
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2219775
Tested: tls selftests

commit 8a0d57df8938e9fd2e99d47a85b7f37d86f91097
Author: Jakub Kicinski <kuba@kernel.org>
Date:   Wed May 24 22:17:41 2023 -0700

    tls: improve lockless access safety of tls_err_abort()

    Most protos' poll() methods insert a memory barrier between
    writes to sk_err and sk_error_report(). This dates back to
    commit a4d258036e ("tcp: Fix race in tcp_poll").

    I guess we should do the same thing in TLS, tcp_poll() does
    not hold the socket lock.

    Fixes: 3c4d755915 ("tls: kernel TLS support")
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Reviewed-by: Simon Horman <simon.horman@corigine.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

Signed-off-by: Sabrina Dubroca <sdubroca@redhat.com>
2023-07-05 15:14:34 +02:00
..
Kconfig net/tls: Select SOCK_RX_QUEUE_MAPPING from TLS_DEVICE 2021-02-11 19:08:06 -08:00
Makefile tls: rx: async: hold onto the input skb 2022-11-30 23:43:07 +01:00
tls.h tls: rx: strp: preserve decryption status of skbs when needed 2023-07-05 15:14:28 +02:00
tls_device.c tls: rx: strp: preserve decryption status of skbs when needed 2023-07-05 15:14:28 +02:00
tls_device_fallback.c net/tls: Fix memory leak in tls_enc_skb() and tls_sw_fallback_init() 2023-04-06 15:13:51 +02:00
tls_main.c net: tls: fix possible race condition between do_tls_getsockopt_conf() and do_tls_setsockopt_conf() 2023-05-10 16:58:47 +02:00
tls_proc.c tls: rx: add counter for NoPad violations 2022-11-30 23:43:04 +01:00
tls_strp.c tls: improve lockless access safety of tls_err_abort() 2023-07-05 15:14:34 +02:00
tls_sw.c tls: improve lockless access safety of tls_err_abort() 2023-07-05 15:14:34 +02:00
tls_toe.c tls: create an internal header 2022-11-30 23:43:03 +01:00
trace.c net/tls: add tracing for device/offload events 2019-10-05 16:29:00 -07:00
trace.h net/tls: add device decrypted trace point 2019-10-05 16:29:00 -07:00