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
commitff1bd15fcc3b2c114ce86dfeb0d362744fd00892 (patch)
tree19439a88934fc40e392091a0b15b4f5827bc01d3
parent408da93b82d9488bf73f5c1d1f34133608b1c724 (diff)
downloadsrc-ff1bd15fcc3b2c114ce86dfeb0d362744fd00892.tar.gz
src-ff1bd15fcc3b2c114ce86dfeb0d362744fd00892.zip
MFC 1.24: Validate the iBCS2 statfs(2) length parameter.
Notes
Notes: svn path=/releng/4.3/; 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 eecf76265637..6193b22f945c 100644
--- a/UPDATING
+++ b/UPDATING
@@ -16,6 +16,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: p35 FreeBSD-SA-03:10.iBCS2
+ iBCS2 system call translator for statfs leaked information.
+
20030810: p34 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 8e3d4d749a1a..2b8f7e143022 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -36,7 +36,7 @@
TYPE="FreeBSD"
REVISION="4.3"
-BRANCH="RELEASE-p34"
+BRANCH="RELEASE-p35"
RELEASE="${REVISION}-${BRANCH}"
VERSION="${TYPE} ${RELEASE}"
diff --git a/sys/i386/ibcs2/ibcs2_stat.c b/sys/i386/ibcs2/ibcs2_stat.c
index 863e6e0b7d99..eb3bcb188a09 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;