original_kernel/fs/nfsd
Andy Adamson 8dc7c3115b locks,lockd: fix race in nlmsvc_testlock
posix_test_lock() returns a pointer to a struct file_lock which is unprotected
and can be removed while in use by the caller.  Move the conflicting lock from
the return to a parameter, and copy the conflicting lock.

In most cases the caller ends up putting the copy of the conflicting lock on
the stack.  On i386, sizeof(struct file_lock) appears to be about 100 bytes.
We're assuming that's reasonable.

Signed-off-by: Andy Adamson <andros@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2006-03-20 13:44:26 -05:00
..
Makefile
auth.c
export.c
lockd.c
nfs2acl.c
nfs3acl.c
nfs3proc.c
nfs3xdr.c
nfs4acl.c
nfs4callback.c SUNRPC: display human-readable procedure name in rpc_iostats output 2006-03-20 13:44:22 -05:00
nfs4idmap.c
nfs4proc.c [PATCH] knfsd: fix nfs4_open lock leak 2006-02-07 16:12:31 -08:00
nfs4recover.c
nfs4state.c locks,lockd: fix race in nlmsvc_testlock 2006-03-20 13:44:26 -05:00
nfs4xdr.c
nfscache.c
nfsctl.c
nfsfh.c
nfsproc.c [PATCH] knfsd: Provide missing NFSv2 part of patch for checking vfs_getattr. 2006-01-18 19:20:28 -08:00
nfssvc.c [PATCH] knfsd: Restore recently broken ACL functionality to NFS server 2006-02-01 08:53:09 -08:00
nfsxdr.c
stats.c
vfs.c [PATCH] knfsd: Fix some more errno/nfserr confusion in vfs.c 2006-01-18 19:20:28 -08:00