diff options
author | Colin Percival <cperciva@FreeBSD.org> | 2010-05-27 03:15:04 +0000 |
---|---|---|
committer | Colin Percival <cperciva@FreeBSD.org> | 2010-05-27 03:15:04 +0000 |
commit | 5a4327739c52195c780993710fce9dc10fe7c9b6 (patch) | |
tree | 1f3e883655f9a5cd377b29684367adba275b4b56 /sys/nfsclient/nfs_vfsops.c | |
parent | 8d0c6fc2265889343804561a37998b02971e6b18 (diff) |
Notes
Diffstat (limited to 'sys/nfsclient/nfs_vfsops.c')
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index a963083fd4ab..378c0250d9f1 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -1002,6 +1002,11 @@ nfs_mount(struct mount *mp, struct thread *td) nfs_decode_args(mp, nmp, &args, NULL); goto out; } + if (args.fhsize < 0 || args.fhsize > NFSX_V3FHMAX) { + vfs_mount_error(mp, "Bad file handle"); + error = EINVAL; + goto out; + } /* * Make the nfs_ip_paranoia sysctl serve as the default connection |