freebsd-nq/sys/rpc
Rick Macklem 22f085c43b Fix a potential memory leak in the NFS over TLS handling code.
For the TLS case where there is a "user@domain" name specified in the
X.509 v3 certificate presented by the client in the otherName component
of subjectAltName, a gid list is allocated via mem_alloc().
This needs to be free'd. Otherwise xp_gidp == NULL and free() handles that.
(The size argument to mem_free() is not used by FreeBSD, so it can be 0.)

This leak would not have occurred for any other case than NFS over TLS
with the "user@domain" in the client's certificate.
2020-09-05 00:50:52 +00:00
..
rpcsec_gss Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
rpcsec_tls Remove a duplicate declaration 2020-09-03 22:40:51 +00:00
auth_none.c
auth_unix.c
auth.h Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
authunix_prot.c
clnt_bck.c Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
clnt_dg.c Change the xid for client side krpc over UDP to a global value. 2020-04-05 21:08:17 +00:00
clnt_rc.c Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
clnt_stat.h
clnt_vc.c Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
clnt.h Add an argument to newnfs_connect() that indicates use TLS for the connection. 2020-08-11 00:26:45 +00:00
getnetconfig.c
krpc.h Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
netconfig.h
nettype.h
pmap_prot.h
replay.c
replay.h
rpc_callmsg.c
rpc_com.h
rpc_generic.c Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
rpc_msg.h
rpc_prot.c Move M_RPC malloc type into XDR. Both RPC and XDR libraries use 2020-04-17 06:02:13 +00:00
rpc.h
rpcb_clnt.c
rpcb_clnt.h
rpcb_prot.c
rpcb_prot.h
rpcm_subs.h
rpcsec_gss.h
rpcsec_tls.h Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
svc_auth_unix.c
svc_auth.c Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
svc_auth.h
svc_dg.c
svc_generic.c
svc_vc.c Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
svc.c Fix a potential memory leak in the NFS over TLS handling code. 2020-09-05 00:50:52 +00:00
svc.h Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
types.h
xdr.h