kernel-ark/net/sunrpc
Chuck Lever bf3fcf8955 SUNRPC: NFS_ROOT always uses the same XIDs
The XID generator uses get_random_bytes to generate an initial XID.
NFS_ROOT starts up before the random driver, though, so get_random_bytes
doesn't set a random XID for NFS_ROOT.  This causes NFS_ROOT mount points
to reuse XIDs every time the client is booted.  If the client boots often
enough, the server will start serving old replies out of its DRC.

Use net_random() instead.

Test plan:
I/O intensive workloads should perform well and generate no errors.  Traces
taken during client reboots should show that NFS_ROOT mounts use unique
XIDs after every reboot.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2006-06-09 09:34:06 -04:00
..
auth_gss SUNRPC: Dead code in net/sunrpc/auth_gss/auth_gss.c 2006-04-19 13:06:49 -04:00
auth_null.c
auth_unix.c
auth.c
cache.c [PATCH] knfsd: Fix two problems that can cause rmmod nfsd to die 2006-05-23 10:35:31 -07:00
clnt.c
Makefile
pmap_clnt.c
rpc_pipe.c
sched.c
socklib.c
stats.c NFS: make 2 functions static 2006-04-19 12:43:47 -04:00
sunrpc_syms.c
svc.c
svcauth_unix.c
svcauth.c
svcsock.c
sysctl.c
timer.c
xdr.c
xprt.c SUNRPC: NFS_ROOT always uses the same XIDs 2006-06-09 09:34:06 -04:00
xprtsock.c SUNRPC: select privileged port numbers at random 2006-06-09 09:34:05 -04:00