freebsd-src/sys/rpc
Rick Macklem 6c9170e0af svc.c: Check for a non-NULL xp_socket
Commit a16ff32f04 added support to the kernel RPC to set
TCP_USE_DDP.
However, for the unusual case of a NFSv4.1/4.2 non-NULL callback,
the xp_socket field of SVCXPRT is NULL, since it uses the same
socket as the client->server connection.

This patch adds the check for this to avoid crashes.

This only affects NFSv4.1/4.2 mounts where either pNFS or
delegations are in use.

MFC after:	3 days
2024-05-27 19:22:04 -07:00
..
rpcsec_gss sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
rpcsec_tls
auth.h
auth_none.c
auth_unix.c
authunix_prot.c
clnt.h
clnt_bck.c rpc: use new macros to lock socket buffers 2024-04-09 09:17:19 -07:00
clnt_dg.c rpc: use new macros to lock socket buffers 2024-04-09 09:17:19 -07:00
clnt_rc.c NFS: Request use of TCP_USE_DDP for in-kernel TCP sockets 2024-03-20 15:29:51 -07:00
clnt_stat.h
clnt_vc.c krpc: Ref cnt the client structures for TLS upcalls 2024-04-26 17:55:24 -07:00
getnetconfig.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
krpc.h
netconfig.h
nettype.h
pmap_prot.h
replay.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
replay.h
rpc.h
rpc_callmsg.c
rpc_com.h
rpc_generic.c sockets: don't malloc/free sockaddr memory on getpeername/getsockname 2023-11-30 08:31:10 -08:00
rpc_msg.h
rpc_prot.c
rpcb_clnt.c
rpcb_clnt.h
rpcb_prot.c
rpcb_prot.h
rpcm_subs.h
rpcsec_gss.h
rpcsec_tls.h
svc.c svc.c: Check for a non-NULL xp_socket 2024-05-27 19:22:04 -07:00
svc.h NFS: Request use of TCP_USE_DDP for in-kernel TCP sockets 2024-03-20 15:29:51 -07:00
svc_auth.c
svc_auth.h
svc_auth_unix.c
svc_dg.c rpc: use new macros to lock socket buffers 2024-04-09 09:17:19 -07:00
svc_generic.c
svc_vc.c rpc: use new macros to lock socket buffers 2024-04-09 09:17:19 -07:00
types.h
xdr.h