linux-sg2042/net/sunrpc
Neil Brown 2f34931fdc [PATCH] knfsd: fix race related problem when adding items to and svcrpc auth cache
If we don't find the item we are lookng for, we allocate a new one, and
then grab the lock again and search to see if it has been added while we
did the alloc.  If it had been added we need to 'cache_put' the newly
created item that we are never going to use.  But as it hasn't been
initialised properly, putting it can cause an oops.

So move the ->init call earlier to that it will always be fully initilised
if we have to put it.

Thanks to Philipp Matthias Hahn <pmhahn@svs.Informatik.Uni-Oldenburg.de>
for reporting the problem.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-08-06 08:57:47 -07:00
..
auth_gss [NET]: Conversions from kmalloc+memset to k(z|c)alloc. 2006-07-21 14:51:30 -07:00
Makefile [PATCH] RPC: introduce client-side transport switch 2005-09-23 12:38:12 -04:00
auth.c SUNRPC: Auto-load RPC authentication kernel modules 2006-03-20 13:44:08 -05:00
auth_null.c NFS: Display the chosen RPCSEC_GSS security flavour in /proc/mounts 2006-06-09 09:34:34 -04:00
auth_unix.c NFS: Display the chosen RPCSEC_GSS security flavour in /proc/mounts 2006-06-09 09:34:34 -04:00
cache.c [PATCH] knfsd: fix race related problem when adding items to and svcrpc auth cache 2006-08-06 08:57:47 -07:00
clnt.c RPC: Ensure that we disconnect TCP socket when client requests error out 2006-08-03 16:56:55 -04:00
pmap_clnt.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
rpc_pipe.c SUNRPC: Fix obvious refcounting bugs in rpc_pipefs. 2006-08-03 16:57:26 -04:00
sched.c [PATCH] mempool: use mempool_create_slab_pool() 2006-03-26 08:57:00 -08:00
socklib.c [NET]: Detect hardware rx checksum faults correctly 2005-11-10 13:01:24 -08:00
stats.c [NET]: Conversions from kmalloc+memset to k(z|c)alloc. 2006-07-21 14:51:30 -07:00
sunrpc_syms.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
svc.c [NET]: Conversions from kmalloc+memset to k(z|c)alloc. 2006-07-21 14:51:30 -07:00
svcauth.c [PATCH] knfsd: Change the store of auth_domains to not be a 'cache' 2006-03-27 08:44:41 -08:00
svcauth_unix.c [PATCH] knfsd: Tidy up unix_domain_find 2006-03-27 08:44:43 -08:00
svcsock.c [NET]: Conversions from kmalloc+memset to k(z|c)alloc. 2006-07-21 14:51:30 -07:00
sysctl.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
timer.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xdr.c This fixes a panic doing the first READDIR or READDIRPLUS call when: 2006-07-05 13:17:12 -04:00
xprt.c RPC: Ensure that we disconnect TCP socket when client requests error out 2006-08-03 16:56:55 -04:00
xprtsock.c RPC: Ensure that we disconnect TCP socket when client requests error out 2006-08-03 16:56:55 -04:00