summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorAvi Weiss <thnkslprpt@gmail.com>2026-10-23 11:48:19 +0300
committerAnna Schumaker <anna.schumaker@hammerspace.com>2026-11-09 15:04:53 -0500
commit0502c7e7f171a8c9c892bdef89e6aa6f44d7b2a3 (patch)
tree55f12ac2f5ff932a012e6ffd6456980c4cb44e03 /rust/kernel/alloc/kvec/errors.rs
parent7783534ce5fee57adf1b9025745c9af2e1ce2ccd (diff)
SUNRPC: Fix TCP-with-TLS transport class identification
xs_setup_tcp_tls() assigns the ordinary TCP transport class to a TCP-with-TLS transport. When rpc_clnt_add_xprt() is called with an unspecified transport type, it inherits the class identifier and can create an unencrypted TCP transport. Looks like a copy-paste error from the commit 3 years ago. NFSv4 trunk discovery uses an unspecified transport type when adding server-advertised addresses. If the additional transport passes server-identity validation, it can be admitted to the client's transport switch. An isolated loopback test reproduced plaintext application RPC transmission for TLS- and mTLS-configured clients, including an unpinned TLS-client RPC that selected the added transport. Assign the TCP-with-TLS class instead. With the fix, the plaintext-only test peer receives TLS negotiation probes but no application payloads. Fixes: 75eb6af7acdf ("SUNRPC: Add a TCP-with-TLS RPC transport class") Cc: stable@vger.kernel.org Signed-off-by: Avi Weiss <thnkslprpt@gmail.com> Reviewed-by: Benjamin Coddington <bcodding@hammerspace.com> Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions