aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-08-10 23:35:21 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-08-10 23:35:21 +0000
commit41b91afdc2ed269ae6cc7ca634f2d1291284290c (patch)
treeabff328a904cd65654024287f7e1f6431f38d6d9
parentebe53c53fe4a772bb9b9d45020418068edec7130 (diff)
downloadsrc-41b91afdc2ed269ae6cc7ca634f2d1291284290c.tar.gz
src-41b91afdc2ed269ae6cc7ca634f2d1291284290c.zip
MFC 1.24: Validate the iBCS2 statfs(2) length parameter.
Notes
Notes: svn path=/releng/5.0/; revision=118755
-rw-r--r--UPDATING3
-rw-r--r--sys/conf/newvers.sh2
-rw-r--r--sys/i386/ibcs2/ibcs2_stat.c4
3 files changed, 8 insertions, 1 deletions
diff --git a/UPDATING b/UPDATING
index 3309c7c107e7..571e9109d9a1 100644
--- a/UPDATING
+++ b/UPDATING
@@ -17,6 +17,9 @@ minimal number of processes, if possible, for that patch. For those
updates that don't have an advisory, or to be safe, you can do a full
build and install as described in the COMMON ITEMS section.
+20030810: p10 FreeBSD-SA-03:10.iBCS2
+ iBCS2 system call translator for statfs leaked information.
+
20030810: p9 FreeBSD-SA-03:09.signal
Repair range-checking errors in signal handling.
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index c1bc1cda5bda..63a4f904071b 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -36,7 +36,7 @@
TYPE="FreeBSD"
REVISION="5.0"
-BRANCH="RELEASE-p9"
+BRANCH="RELEASE-p10"
RELEASE="${REVISION}-${BRANCH}"
VERSION="${TYPE} ${RELEASE}"
diff --git a/sys/i386/ibcs2/ibcs2_stat.c b/sys/i386/ibcs2/ibcs2_stat.c
index 79925350be7e..5172220a2b90 100644
--- a/sys/i386/ibcs2/ibcs2_stat.c
+++ b/sys/i386/ibcs2/ibcs2_stat.c
@@ -82,6 +82,10 @@ cvt_statfs(sp, buf, len)
{
struct ibcs2_statfs ssfs;
+ if (len < 0)
+ return (EINVAL);
+ else if (len > sizeof(ssfs))
+ len = sizeof(ssfs);
bzero(&ssfs, sizeof ssfs);
ssfs.f_fstyp = 0;
ssfs.f_bsize = sp->f_bsize;