kernel-ark/fs/nfsd
NeilBrown b41eeef14d knfsd: avoid Oops if buggy userspace performs confusing filehandle->dentry mapping
When a lookup request arrives, nfsd uses information provided by userspace
(mountd) to find the right filesystem.

It then assumes that the same filehandle type as the incoming filehandle can
be used to create an outgoing filehandle.

However if mountd is buggy, or maybe just being creative, the filesystem may
not support that filesystem type, and the kernel could oops, particularly if
'ex_uuid' is NULL but a FSID_UUID* filehandle type is used.

So add some proper checking that the fsid version/type from the incoming
filehandle is actually supportable, and ignore that information if it isn't
supportable.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-09 12:30:54 -07:00
..
auth.c
export.c knfsd: avoid use of unitialised variables on error path when nfs exports 2007-05-09 12:30:54 -07:00
lockd.c
Makefile knfsd: trivial makefile cleanup 2007-05-09 12:30:54 -07:00
nfs2acl.c
nfs3acl.c
nfs3proc.c RPC: add wrapper for svc_reserve to account for checksum 2007-05-09 12:30:54 -07:00
nfs3xdr.c knfsd: various nfsd xdr cleanups 2007-05-09 12:30:54 -07:00
nfs4acl.c remove nfs4_acl_add_ace() 2007-05-09 12:30:54 -07:00
nfs4callback.c
nfs4idmap.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
nfs4proc.c
nfs4recover.c
nfs4state.c nfsd/nfs4state: remove unnecessary daemonize call 2007-05-09 12:30:54 -07:00
nfs4xdr.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
nfscache.c
nfsctl.c
nfsfh.c knfsd: avoid Oops if buggy userspace performs confusing filehandle->dentry mapping 2007-05-09 12:30:54 -07:00
nfsproc.c RPC: add wrapper for svc_reserve to account for checksum 2007-05-09 12:30:54 -07:00
nfssvc.c
nfsxdr.c knfsd: various nfsd xdr cleanups 2007-05-09 12:30:54 -07:00
stats.c
vfs.c