diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2004-04-15 18:04:23 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2004-04-15 18:04:23 +0000 |
commit | d2b7b40143880ebe9d8a5f348b42c5488aa864bd (patch) | |
tree | fbc768ba78622844b7cb13798f3f5c12086c753e /sys-kernel/usermode-sources | |
parent | added s390 to keywords (diff) | |
download | historical-d2b7b40143880ebe9d8a5f348b42c5488aa864bd.tar.gz historical-d2b7b40143880ebe9d8a5f348b42c5488aa864bd.tar.bz2 historical-d2b7b40143880ebe9d8a5f348b42c5488aa864bd.zip |
Version bump for the CAN-2004-0109 issue; bug #47881.
Diffstat (limited to 'sys-kernel/usermode-sources')
-rw-r--r-- | sys-kernel/usermode-sources/ChangeLog | 11 | ||||
-rw-r--r-- | sys-kernel/usermode-sources/Manifest | 30 | ||||
-rw-r--r-- | sys-kernel/usermode-sources/files/digest-usermode-sources-2.4.24-r2 (renamed from sys-kernel/usermode-sources/files/digest-usermode-sources-2.4.24-r1) | 0 | ||||
-rw-r--r-- | sys-kernel/usermode-sources/files/digest-usermode-sources-2.6.3-r2 (renamed from sys-kernel/usermode-sources/files/digest-usermode-sources-2.6.3-r1) | 0 | ||||
-rw-r--r-- | sys-kernel/usermode-sources/files/usermode-sources-2.4.24.CAN-2004-0109.patch | 87 | ||||
-rw-r--r-- | sys-kernel/usermode-sources/files/usermode-sources-2.6.3.CAN-2004-0109.patch | 88 | ||||
-rw-r--r-- | sys-kernel/usermode-sources/usermode-sources-2.4.24-r2.ebuild (renamed from sys-kernel/usermode-sources/usermode-sources-2.4.24-r1.ebuild) | 26 | ||||
-rw-r--r-- | sys-kernel/usermode-sources/usermode-sources-2.6.3-r2.ebuild (renamed from sys-kernel/usermode-sources/usermode-sources-2.6.3-r1.ebuild) | 6 |
8 files changed, 213 insertions, 35 deletions
diff --git a/sys-kernel/usermode-sources/ChangeLog b/sys-kernel/usermode-sources/ChangeLog index f33dd681b317..18bca9320f2c 100644 --- a/sys-kernel/usermode-sources/ChangeLog +++ b/sys-kernel/usermode-sources/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-kernel/usermode-sources # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/usermode-sources/ChangeLog,v 1.29 2004/04/12 16:36:23 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/usermode-sources/ChangeLog,v 1.30 2004/04/15 18:04:22 plasmaroo Exp $ + +*usermode-sources-2.6.3-r2 (15 Apr 2004) + + 15 Apr 2004; <plasmaroo@gentoo.org> + +files/usermode-sources-2.4.24.CAN-2004-0109.patch, + +files/usermode-sources-2.6.3.CAN-2004-0109.patch, + -usermode-sources-2.4.24-r1.ebuild, +usermode-sources-2.4.24-r2.ebuild, + -usermode-sources-2.6.3-r1.ebuild, +usermode-sources-2.6.3-r2.ebuild: + Version bump for the CAN-2004-0109 issue; bug #47881. 12 Apr 2004; Daniel Ahlberg <aliz@gentoo.org> usermode-sources-2.6.3-r1.ebuild: diff --git a/sys-kernel/usermode-sources/Manifest b/sys-kernel/usermode-sources/Manifest index 24251155a54b..afd885a83f24 100644 --- a/sys-kernel/usermode-sources/Manifest +++ b/sys-kernel/usermode-sources/Manifest @@ -1,23 +1,25 @@ -MD5 48ac359d9b4bd01d58538bac6ab3643e usermode-sources-2.6.1-r1.ebuild 1506 -MD5 2f03fbab00001abd97bbf6a22ad25481 usermode-sources-2.4.20-r2.ebuild 2270 -MD5 6432b6a6e6fdf8d11e98a8fb0bf955ad usermode-sources-2.4.21-r1.ebuild 1976 +MD5 fac526745a7c3984f5b800ebfbd2fc26 ChangeLog 5253 +MD5 11cda6c297ce7d28937a1a7fbc9b6a58 usermode-sources-2.4.24-r2.ebuild 1710 MD5 5c739fab83545ccbea47c9afc2df914c usermode-sources-2.4.23-r2.ebuild 1684 -MD5 0473410c8ecc0e20e35d8785d3b9da62 usermode-sources-2.4.24-r1.ebuild 1789 -MD5 b9f652dfb1ac2d155ca977c56294896f usermode-sources-2.6.3-r1.ebuild 799 -MD5 a2f284fae42dbf9801371cd88b76382c usermode-sources-2.4.22-r2.ebuild 1969 +MD5 6432b6a6e6fdf8d11e98a8fb0bf955ad usermode-sources-2.4.21-r1.ebuild 1976 MD5 73a76ea43d99f2369d8ac469599c8175 usermode-sources-2.4.23-r1.ebuild 1688 -MD5 3c3ccc118e899f6c20c3ceea3d7d79da ChangeLog 4858 MD5 6cdc1e33ed67ce129f7498203526cb16 metadata.xml 252 +MD5 48ac359d9b4bd01d58538bac6ab3643e usermode-sources-2.6.1-r1.ebuild 1506 +MD5 a2f284fae42dbf9801371cd88b76382c usermode-sources-2.4.22-r2.ebuild 1969 +MD5 2f03fbab00001abd97bbf6a22ad25481 usermode-sources-2.4.20-r2.ebuild 2270 +MD5 634e7f9fd8566b856eadf6db27cd2565 usermode-sources-2.6.3-r2.ebuild 847 +MD5 174438d215b70cad5ffb00ca8123c062 files/usermode-sources-2.4.24.munmap.patch 837 +MD5 2f7e35e02cfe97af5e6e49bf84614b42 files/digest-usermode-sources-2.4.24-r2 134 +MD5 cf8295a2c632cf6aa45b56a91e9a8a31 files/digest-usermode-sources-2.6.3-r2 135 MD5 a61e57d5483a06f20da339d91f98fbb8 files/usermode-sources-2.4.20.rtc_fix.patch 6769 -MD5 3c89919b01bf69d48c4307faa77d99a1 files/digest-usermode-sources-2.4.20-r2 134 MD5 2b62c53b9695ab543819727b7e64e73b files/digest-usermode-sources-2.4.21-r1 134 -MD5 4c510db2fdca185ae68005e677b87dcd files/digest-usermode-sources-2.4.22-r2 134 +MD5 31ec7b4310dd7be3e34aab0204f9b1e8 files/usermode-sources-2.6.3.CAN-2004-0109.patch 2072 +MD5 e2e2b545b6fcdcecf49e33798efa5b84 files/usermode-sources-2.4.22.rtc_fix.patch 7073 MD5 b8ba6a7baf14cbeb3a21bf174ea7d773 files/digest-usermode-sources-2.4.23-r1 134 MD5 81d1aecdba0a87dcee572935be335b6d files/digest-usermode-sources-2.4.23-r2 134 -MD5 2f7e35e02cfe97af5e6e49bf84614b42 files/digest-usermode-sources-2.4.24-r1 134 +MD5 3c89919b01bf69d48c4307faa77d99a1 files/digest-usermode-sources-2.4.20-r2 134 +MD5 4c510db2fdca185ae68005e677b87dcd files/digest-usermode-sources-2.4.22-r2 134 MD5 f418f335a883a78923ebd9205011c25a files/digest-usermode-sources-2.6.1-r1 131 -MD5 cf8295a2c632cf6aa45b56a91e9a8a31 files/digest-usermode-sources-2.6.3-r1 135 -MD5 e2e2b545b6fcdcecf49e33798efa5b84 files/usermode-sources-2.4.22.rtc_fix.patch 7073 -MD5 e637c6fa41097ea2c4693d0766f2e1c5 files/do_brk_fix.patch 242 -MD5 174438d215b70cad5ffb00ca8123c062 files/usermode-sources-2.4.24.munmap.patch 837 MD5 e77a93fdf26f06cf3ea5080b27211725 files/usermode-sources.CAN-2003-0985.patch 414 +MD5 21f3a4f186017d925067335e24db36a1 files/usermode-sources-2.4.24.CAN-2004-0109.patch 1877 +MD5 e637c6fa41097ea2c4693d0766f2e1c5 files/do_brk_fix.patch 242 diff --git a/sys-kernel/usermode-sources/files/digest-usermode-sources-2.4.24-r1 b/sys-kernel/usermode-sources/files/digest-usermode-sources-2.4.24-r2 index 1afde5baa80a..1afde5baa80a 100644 --- a/sys-kernel/usermode-sources/files/digest-usermode-sources-2.4.24-r1 +++ b/sys-kernel/usermode-sources/files/digest-usermode-sources-2.4.24-r2 diff --git a/sys-kernel/usermode-sources/files/digest-usermode-sources-2.6.3-r1 b/sys-kernel/usermode-sources/files/digest-usermode-sources-2.6.3-r2 index 4648c8799288..4648c8799288 100644 --- a/sys-kernel/usermode-sources/files/digest-usermode-sources-2.6.3-r1 +++ b/sys-kernel/usermode-sources/files/digest-usermode-sources-2.6.3-r2 diff --git a/sys-kernel/usermode-sources/files/usermode-sources-2.4.24.CAN-2004-0109.patch b/sys-kernel/usermode-sources/files/usermode-sources-2.4.24.CAN-2004-0109.patch new file mode 100644 index 000000000000..d02b51c57fc6 --- /dev/null +++ b/sys-kernel/usermode-sources/files/usermode-sources-2.4.24.CAN-2004-0109.patch @@ -0,0 +1,87 @@ +--- linux/fs/isofs/rock.c.orig ++++ linux/fs/isofs/rock.c +@@ -14,6 +14,7 @@ + #include <linux/slab.h> + #include <linux/pagemap.h> + #include <linux/smp_lock.h> ++#include <asm/page.h> + + #include "rock.h" + +@@ -419,7 +420,7 @@ + return 0; + } + +-static char *get_symlink_chunk(char *rpnt, struct rock_ridge *rr) ++static char *get_symlink_chunk(char *rpnt, struct rock_ridge *rr, char *plimit) + { + int slen; + int rootflag; +@@ -431,16 +432,25 @@ + rootflag = 0; + switch (slp->flags & ~1) { + case 0: ++ if (slp->len > plimit - rpnt) ++ return NULL; + memcpy(rpnt, slp->text, slp->len); + rpnt+=slp->len; + break; ++ case 2: ++ if (rpnt >= plimit) ++ return NULL; ++ *rpnt++='.'; ++ break; + case 4: ++ if (2 > plimit - rpnt) ++ return NULL; + *rpnt++='.'; +- /* fallthru */ +- case 2: + *rpnt++='.'; + break; + case 8: ++ if (rpnt >= plimit) ++ return NULL; + rootflag = 1; + *rpnt++='/'; + break; +@@ -457,17 +467,23 @@ + * If there is another SL record, and this component + * record isn't continued, then add a slash. + */ +- if ((!rootflag) && (rr->u.SL.flags & 1) && !(oldslp->flags & 1)) ++ if ((!rootflag) && (rr->u.SL.flags & 1) && ++ !(oldslp->flags & 1)) { ++ if (rpnt >= plimit) ++ return NULL; + *rpnt++='/'; ++ } + break; + } + + /* + * If this component record isn't continued, then append a '/'. + */ +- if (!rootflag && !(oldslp->flags & 1)) ++ if (!rootflag && !(oldslp->flags & 1)) { ++ if (rpnt >= plimit) ++ return NULL; + *rpnt++='/'; +- ++ } + } + return rpnt; + } +@@ -548,7 +564,10 @@ + CHECK_SP(goto out); + break; + case SIG('S', 'L'): +- rpnt = get_symlink_chunk(rpnt, rr); ++ rpnt = get_symlink_chunk(rpnt, rr, ++ link + (PAGE_SIZE - 1)); ++ if (rpnt == NULL) ++ goto out; + break; + case SIG('C', 'E'): + /* This tells is if there is a continuation record */ + diff --git a/sys-kernel/usermode-sources/files/usermode-sources-2.6.3.CAN-2004-0109.patch b/sys-kernel/usermode-sources/files/usermode-sources-2.6.3.CAN-2004-0109.patch new file mode 100644 index 000000000000..d7726c2e5aaf --- /dev/null +++ b/sys-kernel/usermode-sources/files/usermode-sources-2.6.3.CAN-2004-0109.patch @@ -0,0 +1,88 @@ +--- linux/fs/isofs/rock.c.orig ++++ linux/fs/isofs/rock.c +@@ -14,6 +14,7 @@ + #include <linux/slab.h> + #include <linux/pagemap.h> + #include <linux/smp_lock.h> + #include <linux/buffer_head.h> ++#include <asm/page.h> + + #include "rock.h" +@@ -419,7 +420,7 @@ int parse_rock_ridge_inode_internal(stru + return 0; + } + +-static char *get_symlink_chunk(char *rpnt, struct rock_ridge *rr) ++static char *get_symlink_chunk(char *rpnt, struct rock_ridge *rr, char *plimit) + { + int slen; + int rootflag; +@@ -431,16 +432,25 @@ static char *get_symlink_chunk(char *rpn + rootflag = 0; + switch (slp->flags & ~1) { + case 0: ++ if (slp->len > plimit - rpnt) ++ return NULL; + memcpy(rpnt, slp->text, slp->len); + rpnt+=slp->len; + break; ++ case 2: ++ if (rpnt >= plimit) ++ return NULL; ++ *rpnt++='.'; ++ break; + case 4: ++ if (2 > plimit - rpnt) ++ return NULL; + *rpnt++='.'; +- /* fallthru */ +- case 2: + *rpnt++='.'; + break; + case 8: ++ if (rpnt >= plimit) ++ return NULL; + rootflag = 1; + *rpnt++='/'; + break; +@@ -457,17 +467,23 @@ static char *get_symlink_chunk(char *rpn + * If there is another SL record, and this component + * record isn't continued, then add a slash. + */ +- if ((!rootflag) && (rr->u.SL.flags & 1) && !(oldslp->flags & 1)) ++ if ((!rootflag) && (rr->u.SL.flags & 1) && ++ !(oldslp->flags & 1)) { ++ if (rpnt >= plimit) ++ return NULL; + *rpnt++='/'; ++ } + break; + } + + /* + * If this component record isn't continued, then append a '/'. + */ +- if (!rootflag && !(oldslp->flags & 1)) ++ if (!rootflag && !(oldslp->flags & 1)) { ++ if (rpnt >= plimit) ++ return NULL; + *rpnt++='/'; +- ++ } + } + return rpnt; + } +@@ -548,7 +564,10 @@ static int rock_ridge_symlink_readpage(s + CHECK_SP(goto out); + break; + case SIG('S', 'L'): +- rpnt = get_symlink_chunk(rpnt, rr); ++ rpnt = get_symlink_chunk(rpnt, rr, ++ link + (PAGE_SIZE - 1)); ++ if (rpnt == NULL) ++ goto out; + break; + case SIG('C', 'E'): + /* This tells is if there is a continuation record */ + + diff --git a/sys-kernel/usermode-sources/usermode-sources-2.4.24-r1.ebuild b/sys-kernel/usermode-sources/usermode-sources-2.4.24-r2.ebuild index 283e7bc8831d..65c140cb52e4 100644 --- a/sys-kernel/usermode-sources/usermode-sources-2.4.24-r1.ebuild +++ b/sys-kernel/usermode-sources/usermode-sources-2.4.24-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/usermode-sources/usermode-sources-2.4.24-r1.ebuild,v 1.1 2004/02/18 18:48:56 iggy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/usermode-sources/usermode-sources-2.4.24-r2.ebuild,v 1.1 2004/04/15 18:04:22 plasmaroo Exp $ ETYPE="sources" inherit kernel eutils @@ -13,9 +13,9 @@ SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${PV}.tar.bz2 mirror://sourceforge/user-mode-linux/${UML_PATCH}.bz2" HOMEPAGE="http://www.kernel.org/ http://user-mode-linux.sourceforge.net" LICENSE="GPL-2" -SLOT="${PV}" +SLOT="${PV}-${PR}" KEYWORDS="x86" -EXTRAVERSION=${PR} +EXTRAVERSION="-uml1-${PR}" RESTRICT="nomirror" # console-tools is needed to solve the loadkeys fiasco. @@ -23,28 +23,20 @@ RESTRICT="nomirror" DEPEND=">=sys-devel/binutils-2.11.90.0.31 dev-lang/perl" RDEPEND=">=sys-libs/ncurses-5.2" -S=${WORKDIR}/linux-${PV} +S=${WORKDIR}/linux-${PV}${EXTRAVERSION} src_unpack() { - # unpack vanilla sources cd ${WORKDIR} unpack linux-${PV}.tar.bz2 - # apply usermode patch - cd ${S} + mv linux-${PV} ${S} && cd ${S} epatch ${DISTDIR}/${UML_PATCH}.bz2 - epatch ${FILESDIR}/${P}.munmap.patch || die "failed to apply munmap patch" - - #epatch ${FILESDIR}/${PN}.CAN-2003-0985.patch || die "Failed to patch mremap() vulnerability!" - #epatch ${FILESDIR}/${PN}-2.4.22.rtc_fix.patch || die "Failed to patch RTC vulnerabilities!" + epatch ${FILESDIR}/${P}.munmap.patch || die "Failed to apply munmap patch!" + epatch ${FILESDIR}/${P}.CAN-2004-0109.patch || die "Failed to patch CAN-2004-0109 vulnerability!" kernel_universal_unpack } -src_compile() { - true -} - src_install() { mkdir -p ${D}/usr/src/uml @@ -53,7 +45,7 @@ src_install() { chown -R root:root * chmod -R a+r-w+X,u+w * - mv linux-${PV} ${D}/usr/src/uml/ + mv linux-${PV}${EXTRAVERSION} ${D}/usr/src/uml/ } pkg_postinst() { @@ -61,6 +53,6 @@ pkg_postinst() { if [ ! -e ${ROOT}usr/src/uml/linux ] then rm -f ${ROOT}usr/src/uml/linux - ln -sf ${ROOT}usr/src/uml/linux-${PV} ${ROOT}usr/src/uml/linux + ln -sf ${ROOT}usr/src/uml/linux-${PV}${EXTRAVERSION} ${ROOT}usr/src/uml/linux fi } diff --git a/sys-kernel/usermode-sources/usermode-sources-2.6.3-r1.ebuild b/sys-kernel/usermode-sources/usermode-sources-2.6.3-r2.ebuild index 89ac67df62fb..38a3eb4a9a91 100644 --- a/sys-kernel/usermode-sources/usermode-sources-2.6.3-r1.ebuild +++ b/sys-kernel/usermode-sources/usermode-sources-2.6.3-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/usermode-sources/usermode-sources-2.6.3-r1.ebuild,v 1.2 2004/04/12 16:36:23 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/usermode-sources/usermode-sources-2.6.3-r2.ebuild,v 1.1 2004/04/15 18:04:22 plasmaroo Exp $ K_NOUSENAME="yes" ETYPE="sources" @@ -8,12 +8,12 @@ ETYPE="sources" inherit kernel-2 UML_PATCH="uml-patch-2.6.3-rc2-1" OKV="${PV}" -EXTRAVERSION="-${UML_PATCH//-*-/}" +EXTRAVERSION="-${UML_PATCH//-*-/}-${PR}" KV="${OKV}${EXTRAVERSION}" S="${WORKDIR}/linux-${KV}" IUSE="" -UNIPATCH_LIST="${DISTDIR}/${UML_PATCH}.bz2" +UNIPATCH_LIST="${DISTDIR}/${UML_PATCH}.bz2 ${FILESDIR}/${P}.CAN-2004-0109.patch" DESCRIPTION="Full (vanilla) sources for the User Mode Linux kernel" SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${PV}.tar.bz2 |