HomeFreeBSD

Add some very basic handling of TLS_GET_RECORD control mbufs for the

Description

Add some very basic handling of TLS_GET_RECORD control mbufs for the
client side krpc. For now, it just tosses away any non-application
data records. This will probably need to change, but not until TLS1.3,
I think?

I also added code that shuts down the connection for a couple of
cases that should rarely, if ever, happen:

  • If m_split(..,M_NOWAIT) returns NULL, the system is basically out of mbufs and I figured shutting down the TCP connection and then trying to create a new one is about as good as any other recovery. At least it doesn't end up hung waiting for more record data, which may never come.
  • If the RPC over TCP record mark is bogus, the connection is obviously no longer usable. This should never happen, but I have seen it recently during testing of the nfs-over-tls and I am not sure if it might still happen.

Details

Provenance
rmacklemAuthored on
Parents
rS360857: MFC 357313: Trim duplicate CSR swaps from user exceptions.
Branches
Unknown
Tags
Unknown