opnsense-src/sys/rpc
Rick Macklem 8908c590e3 krpc: Fix NFS-over-TLS for KTLS1.3
When NFS-over-TLS uses KTLS1.3, the client can receive
post-handshake handshake records.  These records can be
safely thown away, but are not handled correctly via the
rpctls_ct_handlerecord() upcall to the daemon.

Commit 373511338d changed soreceive_generic() so that it
will only return ENXIO for Alert records when MSG_TLSAPPDATA
is specified.  As such, the post-handshake handshake
records will be returned to the krpc.

This patch modifies the krpc so that it will throw
these records away, which seems sufficient to make
NFS-over-TLS work with KTLS1.3.  This change has
no effect on the use of KTLS1.2, since it does not
generate post-handshake handshake records.

(cherry picked from commit 0b4f2ab0e9)
2022-05-30 17:38:43 -07:00
..
rpcsec_gss rpc: Make function tables const 2021-08-21 12:10:31 -04:00
rpcsec_tls mbuf: Only allow extpg mbufs if the system has a direct map 2021-11-29 20:34:54 -05:00
auth.h rpc: Delete AUTH_NEEDS_TLS(_MUTUAL_HOST) auth_stat values 2021-12-29 17:23:30 -08:00
auth_none.c rpc: Make function tables const 2021-08-21 12:10:31 -04:00
auth_unix.c rpc: Make function tables const 2021-08-21 12:10:31 -04:00
authunix_prot.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
clnt.h rpc: Make function tables const 2021-08-21 12:10:31 -04:00
clnt_bck.c rpc: Make function tables const 2021-08-21 12:10:31 -04:00
clnt_dg.c rpc: Make function tables const 2021-08-21 12:10:31 -04:00
clnt_rc.c rpc: Make function tables const 2021-08-21 12:10:31 -04:00
clnt_stat.h
clnt_vc.c krpc: Fix NFS-over-TLS for KTLS1.3 2022-05-30 17:38:43 -07:00
getnetconfig.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
krpc.h nfsv4 client: do the BindConnectionToSession as required 2021-04-29 17:43:50 -07:00
netconfig.h
nettype.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
pmap_prot.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
replay.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
replay.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
rpc.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
rpc_callmsg.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
rpc_com.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
rpc_generic.c Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
rpc_msg.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
rpc_prot.c Move M_RPC malloc type into XDR. Both RPC and XDR libraries use 2020-04-17 06:02:13 +00:00
rpcb_clnt.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
rpcb_clnt.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
rpcb_prot.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
rpcb_prot.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
rpcm_subs.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
rpcsec_gss.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
rpcsec_tls.h Add a new "tlscertname" NFS mount option. 2020-12-23 13:42:55 -08:00
svc.c nfsd: fix a NFSv4.1 Linux client mount stuck in CLOSE_WAIT 2021-05-10 18:12:21 -07:00
svc.h Fix a common typo in source code comments 2021-09-07 09:24:05 +02:00
svc_auth.c rpc(3): Fix two typos in source code comments 2022-04-09 08:17:17 +02:00
svc_auth.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
svc_auth_unix.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
svc_dg.c rpc: Make function tables const 2021-08-21 12:10:31 -04:00
svc_generic.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
svc_vc.c krpc: Fix NFS-over-TLS for KTLS1.3 2022-05-30 17:38:43 -07:00
types.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
xdr.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00