Centos-kernel-stream-9/net/tls
Benjamin Coddington 8afd47fecf tls: Fix tls_sw_sendmsg error handling
JIRA: https://issues.redhat.com/browse/RHEL-60028

commit b341ca51d2679829d26a3f6a4aa9aee9abd94f92
Author: Benjamin Coddington <bcodding@redhat.com>
Date:   Sat Jan 4 10:29:45 2025 -0500

    tls: Fix tls_sw_sendmsg error handling

    We've noticed that NFS can hang when using RPC over TLS on an unstable
    connection, and investigation shows that the RPC layer is stuck in a tight
    loop attempting to transmit, but forever getting -EBADMSG back from the
    underlying network.  The loop begins when tcp_sendmsg_locked() returns
    -EPIPE to tls_tx_records(), but that error is converted to -EBADMSG when
    calling the socket's error reporting handler.

    Instead of converting errors from tcp_sendmsg_locked(), let's pass them
    along in this path.  The RPC layer handles -EPIPE by reconnecting the
    transport, which prevents the endless attempts to transmit on a broken
    connection.

    Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
    Fixes: a42055e8d2 ("net/tls: Add support for async encryption of records for performance")
    Link: https://patch.msgid.link/9594185559881679d81f071b181a10eb07cd079f.1736004079.git.bcodding@redhat.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
2025-01-13 08:28:51 -05:00
..
Kconfig net: skbuff: generalize the skb->decrypted bit 2024-05-01 17:48:16 +02:00
Makefile tls: rx: async: hold onto the input skb 2022-11-30 23:43:07 +01:00
tls.h tls: fix lockless read of strp->msg_ready in ->poll 2024-05-01 17:48:15 +02:00
tls_device.c tls: don't reset prot->aad_size and prot->tail_size for TLS_HW 2023-12-13 14:27:49 +01:00
tls_device_fallback.c tls: rename MAX_IV_SIZE to TLS_MAX_IV_SIZE 2023-12-13 14:27:48 +01:00
tls_main.c tls: fix missing memory barrier in tls_init 2024-06-25 19:15:43 +00:00
tls_proc.c tls: rx: add counter for NoPad violations 2022-11-30 23:43:04 +01:00
tls_strp.c tls: fix lockless read of strp->msg_ready in ->poll 2024-05-01 17:48:15 +02:00
tls_sw.c tls: Fix tls_sw_sendmsg error handling 2025-01-13 08:28:51 -05:00
tls_toe.c tls: create an internal header 2022-11-30 23:43:03 +01:00
trace.c
trace.h