diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2004-11-07 16:58:28 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2004-11-07 16:58:28 +0000 |
commit | a3e57f6d776a43b48a361a31cf2e99402a92e1ef (patch) | |
tree | 5ca49ea3ca3b405c42e13e9155890ddaef788937 /sys-kernel | |
parent | Bump to latest 2.6.x release, and add a metadata.xml (diff) | |
download | historical-a3e57f6d776a43b48a361a31cf2e99402a92e1ef.tar.gz historical-a3e57f6d776a43b48a361a31cf2e99402a92e1ef.tar.bz2 historical-a3e57f6d776a43b48a361a31cf2e99402a92e1ef.zip |
Fixed the 2.4 kNFSd security vulnerability and the 2.6 /dev/ptmx DoS, bug #62524. Also fixed CAN-2004-0814 for 2.4 and 2.6, bug #68421.
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/win4lin-sources/ChangeLog | 12 | ||||
-rw-r--r-- | sys-kernel/win4lin-sources/Manifest | 12 | ||||
-rw-r--r-- | sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.4.26-r7 (renamed from sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.4.26-r6) | 1 | ||||
-rw-r--r-- | sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.6.7-r7 (renamed from sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.6.7-r6) | 1 | ||||
-rw-r--r-- | sys-kernel/win4lin-sources/files/win4lin-sources-2.4.26.XDRWrapFix.patch | 48 | ||||
-rw-r--r-- | sys-kernel/win4lin-sources/files/win4lin-sources-2.6.devPtmx.patch | 21 | ||||
-rw-r--r-- | sys-kernel/win4lin-sources/win4lin-sources-2.4.26-r7.ebuild (renamed from sys-kernel/win4lin-sources/win4lin-sources-2.4.26-r6.ebuild) | 7 | ||||
-rw-r--r-- | sys-kernel/win4lin-sources/win4lin-sources-2.6.7-r7.ebuild (renamed from sys-kernel/win4lin-sources/win4lin-sources-2.6.7-r6.ebuild) | 9 |
8 files changed, 100 insertions, 11 deletions
diff --git a/sys-kernel/win4lin-sources/ChangeLog b/sys-kernel/win4lin-sources/ChangeLog index cb6a6c716bf8..72447da14e1b 100644 --- a/sys-kernel/win4lin-sources/ChangeLog +++ b/sys-kernel/win4lin-sources/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for sys-kernel/win4lin-sources # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/win4lin-sources/ChangeLog,v 1.37 2004/10/21 18:33:36 plasmaroo Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/win4lin-sources/ChangeLog,v 1.38 2004/11/07 16:58:28 plasmaroo Exp $ + +*win4lin-sources-2.6.7-r7 (07 Nov 2004) + + 07 Nov 2004; <plasmaroo@gentoo.org> -win4lin-sources-2.4.26-r6.ebuild, + +win4lin-sources-2.4.26-r7.ebuild, -win4lin-sources-2.6.7-r6.ebuild, + +win4lin-sources-2.6.7-r7.ebuild, + +files/win4lin-sources-2.4.26.XDRWrapFix.patch, + +files/win4lin-sources-2.6.devPtmx.patch: + Fixed the 2.4 kNFSd security vulnerability and the 2.6 /dev/ptmx DoS, bug + #62524. Also fixed CAN-2004-0814 for 2.4 and 2.6, bug #68421. *win4lin-sources-2.6.7-r6 (21 Oct 2004) diff --git a/sys-kernel/win4lin-sources/Manifest b/sys-kernel/win4lin-sources/Manifest index 41fae6ceadad..2984b8eec564 100644 --- a/sys-kernel/win4lin-sources/Manifest +++ b/sys-kernel/win4lin-sources/Manifest @@ -1,18 +1,20 @@ -MD5 8deefecf39c704e907c2c42f810b7b4b ChangeLog 7780 +MD5 d7d8b5c4768862cdc11382870c684889 ChangeLog 8236 MD5 608fe99985244b0445f76cee44c9ae14 metadata.xml 290 -MD5 014ba03b3e63507d68b4ea6c5ad65296 win4lin-sources-2.6.7-r6.ebuild 1575 -MD5 1bcdac5843dca353edd3fdd3ab7d787f win4lin-sources-2.4.26-r6.ebuild 2051 -MD5 6d3c92f001f307906b42c86de91d8fd0 files/digest-win4lin-sources-2.6.7-r6 283 +MD5 8ce028c81e1760d848e849436170b031 win4lin-sources-2.4.26-r7.ebuild 2336 +MD5 d6ce1722f74216b1f87fad655ba7a13e win4lin-sources-2.6.7-r7.ebuild 1753 +MD5 2b3ddb8b8b15f8da35ade38544b57857 files/win4lin-sources-2.4.26.XDRWrapFix.patch 1499 +MD5 9cae5cdb5da7ef0bbe13fbbf6daee5dd files/digest-win4lin-sources-2.6.7-r7 359 MD5 8204afea1d572b49a4a80d8da4eef0c9 files/win4lin-sources-2.6.CAN-2004-0596.patch 1033 MD5 c2510fe1891f5a9effb12c2196922206 files/win4lin-sources-2.6.cmdlineLeak.patch 281 +MD5 452e04a312368605e145428c35bd0e05 files/win4lin-sources-2.6.devPtmx.patch 572 MD5 c9da1bc82b906f6abc648c056e7bf662 files/win4lin-sources-2.4.26.FPULockup-53804.patch 354 MD5 d1ccc2047be533c992f67270a150a210 files/win4lin-sources-2.4.26.cmdlineLeak.patch 388 MD5 aa595005721b58929ee55e2e8f4b6ba0 files/win4lin-sources-2.6.CAN-2004-0816.patch 1693 MD5 dc18e982f8149588a291956481885a8c files/win4lin-sources-2.4.26.CAN-2004-0495.patch 17549 MD5 60d25ff310fc6abfdce39ec9e47345af files/win4lin-sources-2.4.26.CAN-2004-0685.patch 2809 MD5 39361f8d16b1fe5891aab62e92f8cd30 files/win4lin-sources-2.6.IPTables-RDoS.patch 390 -MD5 57a8c410c25a71c974158ab331b65640 files/digest-win4lin-sources-2.4.26-r6 277 MD5 d4a740ae56c2049247083af387a22a85 files/win4lin-sources-2.4.26.CAN-2004-0394.patch 350 +MD5 2f08e494010f1d9fcd2df8ea9402e418 files/digest-win4lin-sources-2.4.26-r7 353 MD5 02c062ec3a11a6a1498cdf0b1716c90a files/win4lin-sources-2.6.6.FPULockup-53804.patch 895 MD5 0f66013f643c79c97fda489618a4e2fd files/win4lin-sources-2.4.26.CAN-2004-0535.patch 476 MD5 95708646470a95668e8789cd415844ed files/win4lin-sources.CAN-2004-0497.patch 846 diff --git a/sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.4.26-r6 b/sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.4.26-r7 index 2c48322d68cd..fe975b03e980 100644 --- a/sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.4.26-r6 +++ b/sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.4.26-r7 @@ -2,3 +2,4 @@ MD5 88d7aefa03c92739cb70298a0b486e2c linux-2.4.26.tar.bz2 30772389 MD5 32e4cda45fa0f090dffa157bc4504a4e mki-adapter.patch 181483 MD5 e9bc95992e489a3f54aabef100e13fcf Kernel-Win4Lin3-2.4.26.patch 23600 MD5 8f8f2412aacf9a01b5549bf2a9a3bff8 linux-2.4.26-CAN-2004-0415.patch 90145 +MD5 d4c051e7c6062704be85192e25e2f5b2 linux-2.4.26-CAN-2004-0814.patch 81508 diff --git a/sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.6.7-r6 b/sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.6.7-r7 index bb24ec457f28..9e871718355b 100644 --- a/sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.6.7-r6 +++ b/sys-kernel/win4lin-sources/files/digest-win4lin-sources-2.6.7-r7 @@ -2,3 +2,4 @@ MD5 a74671ea68b0e3c609e8785ed8497c14 linux-2.6.7.tar.bz2 35092228 MD5 45347c8bd1a1c791e9a12d1e09162f33 mki-adapter26_1_3_6.patch 127032 MD5 e5b7ca075f0281509442913cbd09ca26 Kernel-Win4Lin3-2.6.7.patch 26620 MD5 52996b643afbd6ed9ba38b9483c2cac3 linux-2.6.7-CAN-2004-0415.patch 112612 +MD5 c9c9ed2f30afd3750287953184100529 linux-2.6.7-CAN-2004-0814.patch 129565 diff --git a/sys-kernel/win4lin-sources/files/win4lin-sources-2.4.26.XDRWrapFix.patch b/sys-kernel/win4lin-sources/files/win4lin-sources-2.4.26.XDRWrapFix.patch new file mode 100644 index 000000000000..9a336ab7876a --- /dev/null +++ b/sys-kernel/win4lin-sources/files/win4lin-sources-2.4.26.XDRWrapFix.patch @@ -0,0 +1,48 @@ +# This is a BitKeeper generated diff -Nru style patch. +# +# ChangeSet +# 2004/08/16 14:50:04-03:00 neilb@cse.unsw.edu.au +# [PATCH] Fixed possibly xdr parsing error if write size exceed 2^31 +# +# xdr_argsize_check needs to cope with the possibility that the +# pointer has wrapped and could be below buf->base. +# +# Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> +# +# ### Diffstat output +# ./fs/nfsd/nfs3xdr.c | 2 +- +# ./include/linux/nfsd/xdr3.h | 2 +- +# 2 files changed, 2 insertions(+), 2 deletions(-) +# +# fs/nfsd/nfs3xdr.c +# 2004/08/14 00:23:06-03:00 neilb@cse.unsw.edu.au +1 -1 +# Fixed possibly xdr parsing error if write size exceed 2^31 +# +# include/linux/nfsd/xdr3.h +# 2004/08/15 20:48:43-03:00 neilb@cse.unsw.edu.au +1 -1 +# Fixed possibly xdr parsing error if write size exceed 2^31 +# +diff -Nru a/fs/nfsd/nfs3xdr.c b/fs/nfsd/nfs3xdr.c +--- a/fs/nfsd/nfs3xdr.c 2004-09-06 11:20:28 -07:00 ++++ b/fs/nfsd/nfs3xdr.c 2004-09-06 11:20:28 -07:00 +@@ -273,7 +273,7 @@ + { + struct svc_buf *buf = &rqstp->rq_argbuf; + +- return p - buf->base <= buf->buflen; ++ return p >= buf->base && p <= buf->base + buf->buflen ; + } + + static inline int +diff -Nru a/include/linux/nfsd/xdr3.h b/include/linux/nfsd/xdr3.h +--- a/include/linux/nfsd/xdr3.h 2004-09-06 11:20:28 -07:00 ++++ b/include/linux/nfsd/xdr3.h 2004-09-06 11:20:28 -07:00 +@@ -41,7 +41,7 @@ + __u32 count; + int stable; + __u8 * data; +- int len; ++ __u32 len; + }; + + struct nfsd3_createargs { diff --git a/sys-kernel/win4lin-sources/files/win4lin-sources-2.6.devPtmx.patch b/sys-kernel/win4lin-sources/files/win4lin-sources-2.6.devPtmx.patch new file mode 100644 index 000000000000..2312a2bf5e3b --- /dev/null +++ b/sys-kernel/win4lin-sources/files/win4lin-sources-2.6.devPtmx.patch @@ -0,0 +1,21 @@ +Index: linux-2.6.5/fs/devpts/inode.c +=================================================================== +--- linux-2.6.5.orig/fs/devpts/inode.c ++++ linux-2.6.5/fs/devpts/inode.c +@@ -178,9 +178,13 @@ struct tty_struct *devpts_get_tty(int nu + { + struct dentry *dentry = get_node(number); + struct tty_struct *tty; +- +- tty = (IS_ERR(dentry) || !dentry->d_inode) ? NULL : +- dentry->d_inode->u.generic_ip; ++ ++ tty = NULL; ++ if (!IS_ERR(dentry)) { ++ if (dentry->d_inode) ++ tty = dentry->d_inode->u.generic_ip; ++ dput(dentry); ++ } + + up(&devpts_root->d_inode->i_sem); + diff --git a/sys-kernel/win4lin-sources/win4lin-sources-2.4.26-r6.ebuild b/sys-kernel/win4lin-sources/win4lin-sources-2.4.26-r7.ebuild index 6a18ea0ea5ef..bf8d9ca8b034 100644 --- a/sys-kernel/win4lin-sources/win4lin-sources-2.4.26-r6.ebuild +++ b/sys-kernel/win4lin-sources/win4lin-sources-2.4.26-r7.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/win4lin-sources/win4lin-sources-2.4.26-r6.ebuild,v 1.1 2004/08/10 00:52:17 plasmaroo Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/win4lin-sources/win4lin-sources-2.4.26-r7.ebuild,v 1.1 2004/11/07 16:58:28 plasmaroo Exp $ # OKV=original kernel version, KV=patched kernel version. They can be the same. @@ -17,7 +17,8 @@ DESCRIPTION="Full sources for the Linux kernel, with Win4Lin support." SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://www.netraverse.com/member/downloads/files/mki-adapter.patch http://www.netraverse.com/member/downloads/files/Kernel-Win4Lin3-${OKV}.patch - http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-${OKV}-CAN-2004-0415.patch" + http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-${OKV}-CAN-2004-0415.patch + http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-${OKV}-CAN-2004-0814.patch" HOMEPAGE="http://www.kernel.org/ http://www.netraverse.com/" KEYWORDS="x86" SLOT="${KV}" @@ -37,8 +38,10 @@ src_unpack() { epatch ${FILESDIR}/${PN}.CAN-2004-0497.patch || die "Failed to add the CAN-2004-0497 patch!" epatch ${FILESDIR}/${P}.CAN-2004-0535.patch || die "Failed to add the CAN-2004-0535 patch!" epatch ${FILESDIR}/${P}.CAN-2004-0685.patch || die "Failed to add the CAN-2004-0685 patch!" + epatch ${DISTDIR}/linux-${OKV}-CAN-2004-0814.patch || die "Failed to add the CAN-2004-0814 patch!" epatch ${FILESDIR}/${P}.FPULockup-53804.patch || die "Failed to apply FPU-lockup patch!" epatch ${FILESDIR}/${P}.cmdlineLeak.patch || die "Failed to apply the /proc/cmdline patch!" + epatch ${FILESDIR}/${P}.XDRWrapFix.patch || die "Failed to apply the kNFSd XDR patch!" kernel_universal_unpack } diff --git a/sys-kernel/win4lin-sources/win4lin-sources-2.6.7-r6.ebuild b/sys-kernel/win4lin-sources/win4lin-sources-2.6.7-r7.ebuild index 79ea80a46e11..9af769aafa8c 100644 --- a/sys-kernel/win4lin-sources/win4lin-sources-2.6.7-r6.ebuild +++ b/sys-kernel/win4lin-sources/win4lin-sources-2.6.7-r7.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/win4lin-sources/win4lin-sources-2.6.7-r6.ebuild,v 1.1 2004/10/21 18:33:36 plasmaroo Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/win4lin-sources/win4lin-sources-2.6.7-r7.ebuild,v 1.1 2004/11/07 16:58:28 plasmaroo Exp $ ETYPE="sources" inherit kernel-2 @@ -10,13 +10,15 @@ MKI_VERSION='1_3_6' UNIPATCH_LIST=" ${DISTDIR}/Kernel-Win4Lin3-${OKV}.patch ${DISTDIR}/linux-${OKV}-CAN-2004-0415.patch + ${DISTDIR}/linux-${OKV}-CAN-2004-0814.patch ${DISTDIR}/mki-adapter26_${MKI_VERSION}.patch:1 ${FILESDIR}/${PN}.CAN-2004-0497.patch ${FILESDIR}/${PN}-2.6.CAN-2004-0596.patch ${FILESDIR}/${PN}-2.6.IPTables-RDoS.patch ${FILESDIR}/${PN}-2.6.ProcPerms.patch ${FILESDIR}/${PN}-2.6.cmdlineLeak.patch - ${FILESDIR}/${PN}-2.6.CAN-2004-0816.patch" + ${FILESDIR}/${PN}-2.6.CAN-2004-0816.patch + ${FILESDIR}/${PN}-2.6.devPtmx.patch" S=${WORKDIR}/linux-${KV} @@ -24,7 +26,8 @@ DESCRIPTION="Full sources for the 2.6 of the Linux kernel with the Win4Lin patch SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${OKV}.tar.bz2 http://www.netraverse.com/member/downloads/files/mki-adapter26_${MKI_VERSION}.patch http://www.netraverse.com/member/downloads/files/Kernel-Win4Lin3-${OKV}.patch - http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-${OKV}-CAN-2004-0415.patch" + http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-${OKV}-CAN-2004-0415.patch + http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-${OKV}-CAN-2004-0814.patch" # Best to keep "~x86" until Win4Lin-5.1.10 is in the tree and stable; # bug #55587. |