android_kernel_xiaomi_sm8350/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
..
auth.c
export.c [PATCH] kfree cleanup: fs 2005-11-07 07:54:06 -08:00
lockd.c
Makefile
nfs2acl.c [PATCH] nfsd: check for read-only exports before setting acls 2005-12-20 10:31:33 -08:00
nfs3acl.c [PATCH] nfsd: check for read-only exports before setting acls 2005-12-20 10:31:33 -08:00
nfs3proc.c [PATCH] knfsd: check error status from vfs_getattr and i_op->fsync 2006-01-06 08:33:59 -08:00
nfs3xdr.c [PATCH] knfsd: check error status from vfs_getattr and i_op->fsync 2006-01-06 08:33:59 -08:00
nfs4acl.c
nfs4callback.c SUNRPC: display human-readable procedure name in rpc_iostats output 2006-03-20 13:44:22 -05:00
nfs4idmap.c [PATCH] sunrpc: cache_register can use wrong module reference 2005-09-07 16:57:25 -07:00
nfs4proc.c [PATCH] knfsd: fix nfs4_open lock leak 2006-02-07 16:12:31 -08:00
nfs4recover.c [PATCH] nfsd4: recovery lookup dir check 2006-01-18 19:20:26 -08:00
nfs4state.c locks,lockd: fix race in nlmsvc_testlock 2006-03-20 13:44:26 -05:00
nfs4xdr.c [PATCH] nfsd4: Fix bug in rdattr_error return 2006-01-18 19:20:27 -08:00
nfscache.c [PATCH] kfree cleanup: fs 2005-11-07 07:54:06 -08:00
nfsctl.c [PATCH] knfsd: Allow run-time selection of NFS versions to export 2005-11-07 07:53:48 -08:00
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 [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
stats.c
vfs.c [PATCH] knfsd: Fix some more errno/nfserr confusion in vfs.c 2006-01-18 19:20:28 -08:00