freebsd-dev/sys/rpc
John Baldwin dad1421650 Fix a potential socket leak in the NFS server. If a client closes its
connection after it was accepted by the userland nfsd process but before
it was handled off to svc_vc_create() in the kernel, then svc_vc_create()
would see it as a new listen socket and try to listen on it leaving a
dangling reference to the socket.  Instead, check for disconnected sockets
and treat them like a connected socket.  The call to pru_getaddr() should
fail and cause svc_vc_create() to fail.  Note that we need to lock the
socket to get a consistent snapshot of so_state since there is a window
in soisdisconnected() where both flags are clear.

Reviewed by:	dfr, rmacklem
MFC after:	1 week
2013-04-08 19:03:01 +00:00
..
rpcsec_gss Improve error handling when unwrapping received data. 2013-04-04 15:16:53 +00:00
auth_none.c
auth_unix.c
auth.h rpc: convert all uid and gid variables to u_int. 2012-10-04 04:15:18 +00:00
authunix_prot.c Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamic 2010-01-12 07:49:34 +00:00
clnt_dg.c Use m_get(), m_gethdr() and m_getcl() instead of historic macros. 2013-03-12 12:17:19 +00:00
clnt_rc.c Revert 195703 and 195821 as this special stop handling in NFS is now 2013-03-13 21:06:03 +00:00
clnt_stat.h
clnt_vc.c Revert 195703 and 195821 as this special stop handling in NFS is now 2013-03-13 21:06:03 +00:00
clnt.h Add support for backchannels to the kernel RPC. Backchannels 2012-12-08 00:29:16 +00:00
getnetconfig.c
krpc.h Add support for backchannels to the kernel RPC. Backchannels 2012-12-08 00:29:16 +00:00
netconfig.h
nettype.h
pmap_prot.h
replay.c - Check the result of malloc(M_NOWAIT) in replay_alloc(). The caller 2010-08-26 23:33:04 +00:00
replay.h
rpc_callmsg.c
rpc_com.h Fix RPC headers for C++ 2012-09-02 21:04:40 +00:00
rpc_generic.c Use m_get(), m_gethdr() and m_getcl() instead of historic macros. 2013-03-12 12:17:19 +00:00
rpc_msg.h
rpc_prot.c
rpc.h
rpcb_clnt.c Complete revert of r239963: 2012-09-27 19:10:25 +00:00
rpcb_clnt.h
rpcb_prot.c
rpcb_prot.h
rpcm_subs.h Use m_get(), m_gethdr() and m_getcl() instead of historic macros. 2013-03-12 12:17:19 +00:00
rpcsec_gss.h Fix the kgssapi so that it can be loaded as a module. Currently 2011-06-19 22:08:55 +00:00
svc_auth_unix.c
svc_auth.c
svc_auth.h
svc_dg.c Use m_get(), m_gethdr() and m_getcl() instead of historic macros. 2013-03-12 12:17:19 +00:00
svc_generic.c Mfp4 CH=177274,177280,177284-177285,177297,177324-177325 2011-02-16 21:29:13 +00:00
svc_vc.c Fix a potential socket leak in the NFS server. If a client closes its 2013-04-08 19:03:01 +00:00
svc.c Use m_get(), m_gethdr() and m_getcl() instead of historic macros. 2013-03-12 12:17:19 +00:00
svc.h Add support for backchannels to the kernel RPC. Backchannels 2012-12-08 00:29:16 +00:00
types.h
xdr.h Fix RPC headers for C++ 2012-09-02 21:04:40 +00:00