diff options
author | Brian Jackson <iggy@gentoo.org> | 2003-12-01 22:58:31 +0000 |
---|---|---|
committer | Brian Jackson <iggy@gentoo.org> | 2003-12-01 22:58:31 +0000 |
commit | 69e4be4d7eca58854a5dacc20e9f3d4e1426bd69 (patch) | |
tree | d4a07dfec6bf4912bc1a96938a8f2aaa9b6c24aa /sys-kernel/openmosix-sources | |
parent | fix do_brk vuln (diff) | |
download | historical-69e4be4d7eca58854a5dacc20e9f3d4e1426bd69.tar.gz historical-69e4be4d7eca58854a5dacc20e9f3d4e1426bd69.tar.bz2 historical-69e4be4d7eca58854a5dacc20e9f3d4e1426bd69.zip |
fix do_brk vuln
Diffstat (limited to 'sys-kernel/openmosix-sources')
5 files changed, 25 insertions, 7 deletions
diff --git a/sys-kernel/openmosix-sources/Manifest b/sys-kernel/openmosix-sources/Manifest index afbb868361bd..281d262a0a30 100644 --- a/sys-kernel/openmosix-sources/Manifest +++ b/sys-kernel/openmosix-sources/Manifest @@ -1,7 +1,7 @@ -MD5 1007113e71fa9f95741e31bd3340df90 openmosix-sources-2.4.20-r6.ebuild 3257 -MD5 27a00a294346f95d6d54e4f31ce68edf openmosix-sources-2.4.22.ebuild 1338 -MD5 35b0473aaa52d6652a6db424a30ed8a3 openmosix-sources-2.4.21.ebuild 3257 -MD5 9f93ddd5d1263f2abb847ded50f44c53 ChangeLog 1883 +MD5 5de707573772ebd655af578010d11ab8 openmosix-sources-2.4.20-r6.ebuild 3254 +MD5 22f47b2bec6b172bff9b7b9fdc628f35 openmosix-sources-2.4.22.ebuild 1333 +MD5 249fc41c404cdf5a1d7de7742a6ea215 openmosix-sources-2.4.21.ebuild 3254 +MD5 4bf63aba02b59f8600ec2624b51e49d9 ChangeLog 2118 MD5 beb9efce81ae2c582a621528fc783095 metadata.xml 373 MD5 8ea0ebaf9ea87558abecdc1df6145dc5 files/digest-openmosix-sources-2.4.20-r6 133 MD5 e637c6fa41097ea2c4693d0766f2e1c5 files/do_brk_fix.patch 242 diff --git a/sys-kernel/openmosix-sources/files/do_brk_fix.patch b/sys-kernel/openmosix-sources/files/do_brk_fix.patch new file mode 100644 index 000000000000..fef1f1e981e2 --- /dev/null +++ b/sys-kernel/openmosix-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/openmosix-sources/openmosix-sources-2.4.20-r6.ebuild b/sys-kernel/openmosix-sources/openmosix-sources-2.4.20-r6.ebuild index b8029f0fb852..4c15d98832bc 100644 --- a/sys-kernel/openmosix-sources/openmosix-sources-2.4.20-r6.ebuild +++ b/sys-kernel/openmosix-sources/openmosix-sources-2.4.20-r6.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/openmosix-sources/openmosix-sources-2.4.20-r6.ebuild,v 1.3 2003/09/27 14:05:01 tantive Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/openmosix-sources/openmosix-sources-2.4.20-r6.ebuild,v 1.4 2003/12/01 22:58:29 iggy Exp $ #OKV=original kernel version, KV=patched kernel version. They can be the same. #we use this next variable to avoid duplicating stuff on cvs @@ -42,6 +42,8 @@ src_unpack() { cd ${S} cat ${DISTDIR}/openMosix-2.4.20-3.gz | gzip -d | patch -p1 || die + epatch ${FILESDIR}/do_brk_fix.patch || die "failed to patch for do_brk vuln" + # Gentoo Linux uses /boot, so fix 'make install' to work properly cd ${S} mv Makefile Makefile.orig diff --git a/sys-kernel/openmosix-sources/openmosix-sources-2.4.21.ebuild b/sys-kernel/openmosix-sources/openmosix-sources-2.4.21.ebuild index c4da74753f0a..8825a4b0f8c0 100644 --- a/sys-kernel/openmosix-sources/openmosix-sources-2.4.21.ebuild +++ b/sys-kernel/openmosix-sources/openmosix-sources-2.4.21.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/openmosix-sources/openmosix-sources-2.4.21.ebuild,v 1.3 2003/09/27 14:05:01 tantive Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/openmosix-sources/openmosix-sources-2.4.21.ebuild,v 1.4 2003/12/01 22:58:29 iggy Exp $ #OKV=original kernel version, KV=patched kernel version. They can be the same. #we use this next variable to avoid duplicating stuff on cvs @@ -42,6 +42,8 @@ src_unpack() { cd ${S} cat ${DISTDIR}/openMosix-2.4.21-1.bz2 | bzip2 -d | patch -p1 || die + epatch ${FILESDIR}/do_brk_fix.patch || die "failed to patch for do_brk vuln" + # Gentoo Linux uses /boot, so fix 'make install' to work properly cd ${S} mv Makefile Makefile.orig diff --git a/sys-kernel/openmosix-sources/openmosix-sources-2.4.22.ebuild b/sys-kernel/openmosix-sources/openmosix-sources-2.4.22.ebuild index 12312dae7613..ea1a112f5f1a 100644 --- a/sys-kernel/openmosix-sources/openmosix-sources-2.4.22.ebuild +++ b/sys-kernel/openmosix-sources/openmosix-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/openmosix-sources/openmosix-sources-2.4.22.ebuild,v 1.5 2003/11/20 07:43:38 lostlogic Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/openmosix-sources/openmosix-sources-2.4.22.ebuild,v 1.6 2003/12/01 22:58:29 iggy Exp $ #OKV=original kernel version, KV=patched kernel version. They can be the same. ETYPE="sources" @@ -33,5 +33,7 @@ src_unpack() { cd linux-${KV} bzcat ${DISTDIR}/openMosix-2.4.22-1.bz2|patch -p1 || die "-openmosix patch failed" + epatch ${FILESDIR}/do_brk_fix.patch || die "failed to patch for do_brk vuln" + kernel_universal_unpack } |