twx-linux/include/linux/sunrpc
Dave Wysochanski 64a38e840c SUNRPC: Track writers of the 'channel' file to improve cache_listeners_exist
The sunrpc cache interface is susceptible to being fooled by a rogue
process just reading a 'channel' file.  If this happens the kernel
may think a valid daemon exists to service the cache when it does not.
For example, the following may fool the kernel:
cat /proc/net/rpc/auth.unix.gid/channel

Change the tracking of readers to writers when considering whether a
listener exists as all valid daemon processes either open a channel
file O_RDWR or O_WRONLY.  While this does not prevent a rogue process
from "stealing" a message from the kernel, it does at least improve
the kernels perception of whether a valid process servicing the cache
exists.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2019-07-30 11:55:53 -04:00
..
addr.h
auth_gss.h
auth.h
bc_xprt.h SUNRPC: Fix up backchannel slot table accounting 2019-07-18 01:12:59 -04:00
cache.h SUNRPC: Track writers of the 'channel' file to improve cache_listeners_exist 2019-07-30 11:55:53 -04:00
clnt.h SUNRPC: Fix up backchannel slot table accounting 2019-07-18 01:12:59 -04:00
debug.h
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5_enctypes.h
gss_krb5.h
metrics.h SUNRPC: Count ops completing with tk_status < 0 2019-07-06 14:54:51 -04:00
msg_prot.h
rpc_pipe_fs.h
rpc_rdma.h
sched.h Merge branch 'multipath_tcp' 2019-07-06 14:54:52 -04:00
stats.h
svc_rdma.h
svc_xprt.h SUNRPC: Cache the process user cred in the RPC server listener 2019-04-24 09:46:35 -04:00
svc.h SUNRPC: Allow further customisation of RPC program registration 2019-04-24 09:46:35 -04:00
svcauth_gss.h
svcauth.h
svcsock.h SUNRPC: Cache the process user cred in the RPC server listener 2019-04-24 09:46:35 -04:00
timer.h
types.h
xdr.h nfsd: create xdr_netobj_dup helper 2019-07-03 17:52:51 -04:00
xprt.h SUNRPC: Fix up backchannel slot table accounting 2019-07-18 01:12:59 -04:00
xprtmultipath.h SUNRPC: Add basic load balancing to the transport switch 2019-07-06 14:54:49 -04:00
xprtrdma.h
xprtsock.h SUNRPC: Replace direct task wakeups from softirq context 2019-07-06 14:54:48 -04:00