opnsense-src/sys/rpc
Rick Macklem f6dc363f6d nfs-over-tls: handle res.gid.gid_val correctly for memory allocation
When the server side nfs-over-tls does an upcall to rpc.tlsservd(8)
for the handshake and the rpc.tlsservd "-u" command line option has
been specified, a list of gids may be returned.
The list will be returned in malloc'd memory pointed to by
res.gid.gid_val. To ensure the malloc occurs, res.gid.gid_val must
be NULL before the call. Then, the malloc'd memory needs to be free'd.
mem_free() just calls free(9), so a NULL pointer argument is fine
and a length argument == 0 is ok, since the "len" argument is not used.

This bug would have only affected nfs-over-tls and only when
rpc.tlsservd(8) is running with the "-u" command line option.
2021-01-12 13:59:52 -08: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 nfs-over-tls: handle res.gid.gid_val correctly for memory allocation 2021-01-12 13:59:52 -08:00
auth.h Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
auth_none.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
auth_unix.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
authunix_prot.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
clnt.h Add a new "tlscertname" NFS mount option. 2020-12-23 13:42:55 -08:00
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 a new "tlscertname" NFS mount option. 2020-12-23 13:42:55 -08:00
clnt_stat.h
clnt_vc.c Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00:00
getnetconfig.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
krpc.h Add a new "tlscertname" NFS mount option. 2020-12-23 13:42:55 -08: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 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
svc_auth.c Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00: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 sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
svc_generic.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
svc_vc.c Add TLS support to the kernel RPC. 2020-08-22 03:57:55 +00: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