summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Jackson <iggy@gentoo.org>2003-12-02 04:13:50 +0000
committerBrian Jackson <iggy@gentoo.org>2003-12-02 04:13:50 +0000
commit6fcb03dba45b91861fc94a629ba28401c53fdb9f (patch)
treeb89fd0b21eef271a040dbd50813ed75ad490c1ed /sys-kernel/sparc-sources
parentfix do_brk vuln (diff)
downloadhistorical-6fcb03dba45b91861fc94a629ba28401c53fdb9f.tar.gz
historical-6fcb03dba45b91861fc94a629ba28401c53fdb9f.tar.bz2
historical-6fcb03dba45b91861fc94a629ba28401c53fdb9f.zip
fix do_brk vuln
Diffstat (limited to 'sys-kernel/sparc-sources')
-rw-r--r--sys-kernel/sparc-sources/ChangeLog7
-rw-r--r--sys-kernel/sparc-sources/Manifest19
-rw-r--r--sys-kernel/sparc-sources/files/do_brk_fix.patch12
-rw-r--r--sys-kernel/sparc-sources/sparc-sources-2.4.20-r8.ebuild4
-rw-r--r--sys-kernel/sparc-sources/sparc-sources-2.4.21-r1.ebuild4
-rw-r--r--sys-kernel/sparc-sources/sparc-sources-2.4.22.ebuild4
6 files changed, 37 insertions, 13 deletions
diff --git a/sys-kernel/sparc-sources/ChangeLog b/sys-kernel/sparc-sources/ChangeLog
index fbb46af41f95..49c0c3167a63 100644
--- a/sys-kernel/sparc-sources/ChangeLog
+++ b/sys-kernel/sparc-sources/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-kernel/sparc-sources
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/ChangeLog,v 1.34 2003/12/01 17:23:07 joker Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/ChangeLog,v 1.35 2003/12/02 04:13:45 iggy Exp $
+
+ 01 Dec 2003; Brian Jackson <iggy@gentoo.org> sparc-sources-2.4.20-r8.ebuild,
+ sparc-sources-2.4.21-r1.ebuild, sparc-sources-2.4.22.ebuild,
+ files/do_brk_fix.patch:
+ fix do_brk vuln
*sparc-sources-2.4.23 (01 Dec 2003)
diff --git a/sys-kernel/sparc-sources/Manifest b/sys-kernel/sparc-sources/Manifest
index 22cb07781031..3f06f1ed3196 100644
--- a/sys-kernel/sparc-sources/Manifest
+++ b/sys-kernel/sparc-sources/Manifest
@@ -1,14 +1,15 @@
-MD5 86eff1cdf3bb6c9c4c0e6229d5fc693d ChangeLog 6150
-MD5 6706a601c155869440dcb544e3759a04 metadata.xml 381
-MD5 a79bf1f2e01309da7f069b79696061bf sparc-sources-2.4.20-r8.ebuild 2321
-MD5 d8daaf8b1916aff1059e181071455c87 sparc-sources-2.4.21-r1.ebuild 2155
-MD5 2c5c5fe6fdd340af6c64aeb0c59f6804 sparc-sources-2.4.22.ebuild 2152
+MD5 084b1528fa23bc2836219c1b5d0644a6 sparc-sources-2.4.21-r1.ebuild 2229
MD5 34a347e2b0eaa4ac76faa335675407f9 sparc-sources-2.4.23.ebuild 2150
+MD5 29de7eebe8a32ba875514a32f6f95d07 sparc-sources-2.4.20-r8.ebuild 2395
+MD5 754c42fba6640866b8dbbac53d24fe8d sparc-sources-2.4.22.ebuild 2226
+MD5 62b22986f0752351d55739fdc35d0560 ChangeLog 6336
+MD5 6706a601c155869440dcb544e3759a04 metadata.xml 381
+MD5 afd982621a7d4faba455607353e659c9 files/digest-sparc-sources-2.4.22 140
+MD5 8c8598fb61743bb94c3a9eaf3ff339f4 files/digest-sparc-sources-2.4.23 140
MD5 935f3a9c9a5209ad79a0cdbf9ca4b610 files/U1-hme-lockup.patch 263
+MD5 e637c6fa41097ea2c4693d0766f2e1c5 files/do_brk_fix.patch 242
+MD5 25553b42e5daa2638570a8b019a35069 files/generate-asm-sparc 1656
MD5 5cc2d0aaf480b0f39d42e04133d4138a files/digest-sparc-sources-2.4.20-r8 143
MD5 78fb563990b579b7408f77a65ca176a0 files/digest-sparc-sources-2.4.21-r1 143
-MD5 afd982621a7d4faba455607353e659c9 files/digest-sparc-sources-2.4.22 140
-MD5 25553b42e5daa2638570a8b019a35069 files/generate-asm-sparc 1656
-MD5 8c8598fb61743bb94c3a9eaf3ff339f4 files/digest-sparc-sources-2.4.23 140
-MD5 13f20ae89e814fb87621b471e4d2ca68 files/2.4.19/sparc-asm_offsets.h 23156
MD5 89fb52efc9018f970ceeeaadac9c0f9e files/2.4.19/sparc64-asm_offsets.h 35521
+MD5 13f20ae89e814fb87621b471e4d2ca68 files/2.4.19/sparc-asm_offsets.h 23156
diff --git a/sys-kernel/sparc-sources/files/do_brk_fix.patch b/sys-kernel/sparc-sources/files/do_brk_fix.patch
new file mode 100644
index 000000000000..fef1f1e981e2
--- /dev/null
+++ b/sys-kernel/sparc-sources/files/do_brk_fix.patch
@@ -0,0 +1,12 @@
+--- a/mm/mmap.c Fri Sep 12 06:44:06 2003
++++ b/mm/mmap.c Thu Oct 2 01:18:19 2003
+@@ -1041,6 +1041,9 @@
+ if (!len)
+ return addr;
+
++ if ((addr + len) > TASK_SIZE || (addr + len) < addr)
++ return -EINVAL;
++
+ /*
+ * mlock MCL_FUTURE?
+ */
diff --git a/sys-kernel/sparc-sources/sparc-sources-2.4.20-r8.ebuild b/sys-kernel/sparc-sources/sparc-sources-2.4.20-r8.ebuild
index 73e61bd96927..bd45547364f6 100644
--- a/sys-kernel/sparc-sources/sparc-sources-2.4.20-r8.ebuild
+++ b/sys-kernel/sparc-sources/sparc-sources-2.4.20-r8.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/sparc-sources-2.4.20-r8.ebuild,v 1.8 2003/11/20 07:43:38 lostlogic Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/sparc-sources-2.4.20-r8.ebuild,v 1.9 2003/12/02 04:13:45 iggy Exp $
IUSE="build ultra1"
@@ -45,6 +45,8 @@ src_unpack() {
cd ${WORKDIR}/${KV}
+ epatch ${FILESDIR}/do_brk_fix.patch || die "failed to patch for do_brk vuln"
+
kernel_src_unpack
# Patch the HME driver only on Ultra1 machines.
diff --git a/sys-kernel/sparc-sources/sparc-sources-2.4.21-r1.ebuild b/sys-kernel/sparc-sources/sparc-sources-2.4.21-r1.ebuild
index 19542ffb99a3..c2376a98ce41 100644
--- a/sys-kernel/sparc-sources/sparc-sources-2.4.21-r1.ebuild
+++ b/sys-kernel/sparc-sources/sparc-sources-2.4.21-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/sparc-sources-2.4.21-r1.ebuild,v 1.6 2003/11/20 07:43:38 lostlogic Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/sparc-sources-2.4.21-r1.ebuild,v 1.7 2003/12/02 04:13:45 iggy Exp $
IUSE="build ultra1"
@@ -40,6 +40,8 @@ src_unpack() {
mv linux-${OKV} linux-${KV} || die "Error moving kernel source tree to linux-${KV}"
cd ${WORKDIR}/${KV}
+ epatch ${FILESDIR}/do_brk_fix.patch || die "failed to patch for do_brk vuln"
+
kernel_src_unpack
# Patch the HME driver only on Ultra1 machines.
diff --git a/sys-kernel/sparc-sources/sparc-sources-2.4.22.ebuild b/sys-kernel/sparc-sources/sparc-sources-2.4.22.ebuild
index a6dd3bcde3e0..0b12208ce425 100644
--- a/sys-kernel/sparc-sources/sparc-sources-2.4.22.ebuild
+++ b/sys-kernel/sparc-sources/sparc-sources-2.4.22.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/sparc-sources-2.4.22.ebuild,v 1.4 2003/11/20 07:43:38 lostlogic Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/sparc-sources-2.4.22.ebuild,v 1.5 2003/12/02 04:13:45 iggy Exp $
IUSE="build ultra1"
@@ -40,6 +40,8 @@ src_unpack() {
mv linux-${OKV} linux-${KV} || die "Error moving kernel source tree to linux-${KV}"
cd ${WORKDIR}/${KV}
+ epatch ${FILESDIR}/do_brk_fix.patch || die "failed to patch for do_brk vuln"
+
kernel_src_unpack
# Patch the HME driver only on Ultra1 machines.