(original) (raw)
Apply by doing: cd /usr/src patch -p0 < 012_nfs.patch And then rebuild your kernel. Index: sys/nfs/nfs_vfsops.c =================================================================== RCS file: /cvs/src/sys/nfs/nfs_vfsops.c,v retrieving revision 1.32 retrieving revision 1.32.2.1 diff -u -r1.32 -r1.32.2.1 --- sys/nfs/nfs_vfsops.c 2001/02/20 01:50:11 1.32 +++ sys/nfs/nfs_vfsops.c 2001/07/30 22:07:10 1.32.2.1 @@ -1,4 +1,4 @@ -/* OpenBSD:nfsvfsops.c,v1.322001/02/2001:50:11assarExpOpenBSD: nfs_vfsops.c,v 1.32 2001/02/20 01:50:11 assar Exp OpenBSD:nfsvfsops.c,v1.322001/02/2001:50:11assarExp */ +/* OpenBSD:nfsvfsops.c,v1.32.2.12001/07/3022:07:10jasonExpOpenBSD: nfs_vfsops.c,v 1.32.2.1 2001/07/30 22:07:10 jason Exp OpenBSD:nfsvfsops.c,v1.32.2.12001/07/3022:07:10jasonExp */ /* NetBSD:nfsvfsops.c,v1.46.4.11996/05/2522:40:35fvdlExpNetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp NetBSD:nfsvfsops.c,v1.46.4.11996/05/2522:40:35fvdlExp */ /* @@ -649,6 +649,8 @@ nfs_decode_args(nmp, &args, &mp->mnt_stat.mount_info.nfs_args); return (0); } + if (args.fhsize < 0 || args.fhsize > NFSX_V3FHMAX) + return (EINVAL); error = copyin((caddr_t)args.fh, (caddr_t)nfh, args.fhsize); if (error) return (error);