# ChangeLog for sys-kernel/xbox-sources
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xbox-sources/ChangeLog,v 1.13 2004/11/04 09:51:04 chrb Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xbox-sources/ChangeLog,v 1.14 2004/11/06 23:12:37 plasmaroo Exp $
+
+*xbox-sources-2.6.8.1-r2 (06 Nov 2004)
+
+ 06 Nov 2004; <plasmaroo@gentoo.org> -xbox-sources-2.4.27-r1.ebuild,
+ -xbox-sources-2.4.27-r2.ebuild, +xbox-sources-2.4.27-r3.ebuild,
+ -xbox-sources-2.6.7-r5.ebuild, -xbox-sources-2.6.8.1-r1.ebuild,
+ +xbox-sources-2.6.8.1-r2.ebuild, -xbox-sources-2.6.8.1.ebuild,
+ +files/xbox-sources-2.4.27.XDRWrapFix.patch,
+ -files/xbox-sources-2.6.7.CAN-2004-0596.patch,
+ +files/xbox-sources-2.6.8.1.devPtmx.patch,
+ -files/xbox-sources.CAN-2004-0497.patch,
+ -files/xbox-sources.IPTables-RDoS.patch,
+ -files/xbox-sources.ProcPerms.patch:
+ Fix for 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. Removing
+ old versions.
*xbox-sources-2.6.8.1-r1 (04 Nov 2004)
-MD5 c2b217cd7215960dc1b832acf05a25d8 ChangeLog 3526
+MD5 950486478c515eb082a89dd17da0c315 xbox-sources-2.4.27-r3.ebuild 950
+MD5 8a8008a7e6f630b14e087675e5bd223b ChangeLog 4272
+MD5 4efcfef4b1fd64c0e5e48ec7f2ec9446 xbox-sources-2.6.8.1-r2.ebuild 864
MD5 c2a56d354398d9255422286f7af425ee metadata.xml 351
-MD5 01040ae00020d4f3a6fc2181e67bb334 xbox-sources-2.4.27-r1.ebuild 652
-MD5 fd11fe1df67c2eb0bc2e27a32fe3040a xbox-sources-2.4.27-r2.ebuild 723
-MD5 82492461b3ed710c1e22bad2e0e6c7fd xbox-sources-2.6.7-r5.ebuild 1098
-MD5 0339f7379d3b6d2b968a94bec6c748b3 xbox-sources-2.6.8.1.ebuild 736
-MD5 1ac90f8616a814530cddef4ccf09c934 xbox-sources-2.6.8.1-r1.ebuild 739
-MD5 e7618bb6ea7f4753aa322434f9afdbca files/digest-xbox-sources-2.4.27-r1 144
-MD5 e291b39007c54b281caede6bb6f6ca5a files/digest-xbox-sources-2.4.27-r2 226
-MD5 e8473a36d7996787f7df82f8f9468b73 files/digest-xbox-sources-2.6.7-r5 221
-MD5 c2c619a48a6efaad25875343ae2b68b0 files/digest-xbox-sources-2.6.8.1 149
-MD5 d4a740ae56c2049247083af387a22a85 files/xbox-sources-2.4.26.CAN-2004-0394.patch 350
MD5 d1ccc2047be533c992f67270a150a210 files/xbox-sources-2.4.27.cmdlineLeak.patch 388
-MD5 8204afea1d572b49a4a80d8da4eef0c9 files/xbox-sources-2.6.7.CAN-2004-0596.patch 1033
+MD5 452e04a312368605e145428c35bd0e05 files/xbox-sources-2.6.8.1.devPtmx.patch 572
MD5 c2510fe1891f5a9effb12c2196922206 files/xbox-sources-2.6.7.cmdlineLeak.patch 281
-MD5 95708646470a95668e8789cd415844ed files/xbox-sources.CAN-2004-0497.patch 846
-MD5 39361f8d16b1fe5891aab62e92f8cd30 files/xbox-sources.IPTables-RDoS.patch 390
-MD5 b738cb0120a32aa92cfcfdbd564dd21f files/xbox-sources.ProcPerms.patch 1368
-MD5 2051e20891c2d7147a9ff72bb1bb2d81 files/digest-xbox-sources-2.6.8.1-r1 149
+MD5 d4a740ae56c2049247083af387a22a85 files/xbox-sources-2.4.26.CAN-2004-0394.patch 350
+MD5 2051e20891c2d7147a9ff72bb1bb2d81 files/digest-xbox-sources-2.6.8.1-r2 149
+MD5 2b3ddb8b8b15f8da35ade38544b57857 files/xbox-sources-2.4.27.XDRWrapFix.patch 1499
+MD5 103bb9f9dd95f5afb332c235ee040cb2 files/digest-xbox-sources-2.4.27-r3 302
+++ /dev/null
-MD5 59a2e6fde1d110e2ffa20351ac8b4d9e linux-2.4.27.tar.bz2 30898453
-MD5 6236760189c6c17affecb47768bf143c xbox-sources-2.4.27-r0.patch.bz2 133155
MD5 59a2e6fde1d110e2ffa20351ac8b4d9e linux-2.4.27.tar.bz2 30898453
MD5 6236760189c6c17affecb47768bf143c xbox-sources-2.4.27-r0.patch.bz2 133155
MD5 a68b51962e4bd9349749d2ca167e97ab xbox-sources-2.4.27.squashfs.patch.bz2 13033
+MD5 2f6a60e03ececd400a454509ebb4ece4 linux-2.4.27-CAN-2004-0814.patch 83118
+++ /dev/null
-MD5 a74671ea68b0e3c609e8785ed8497c14 linux-2.6.7.tar.bz2 35092228
-MD5 8ff14d264817d81b1b4bdd6e93e16708 xboxpatches-2.6-7.20040629.tar.bz2 142768
-MD5 52996b643afbd6ed9ba38b9483c2cac3 linux-2.6.7-CAN-2004-0415.patch 112612
+++ /dev/null
-MD5 9517ca999e822b898fbdc7e72796b1aa linux-2.6.8.1.tar.bz2 35628066
-MD5 f3a9915a3c060513d906179804df422b xboxpatches-2.6.8.1-20041016.tar.bz2 143532
--- /dev/null
+MD5 9517ca999e822b898fbdc7e72796b1aa linux-2.6.8.1.tar.bz2 35628066
+MD5 6c4a83a0acc1c9f3120d8829a554fc69 xboxpatches-2.6.8.1-20041104.tar.bz2 155697
--- /dev/null
+# 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 {
+++ /dev/null
---- 1.13/drivers/net/eql.c 2004-07-21 03:13:40 -07:00
-+++ 1.14/drivers/net/eql.c 2004-07-21 03:13:40 -07:00
-@@ -495,6 +495,8 @@
- return -EFAULT;
-
- slave_dev = dev_get_by_name(sc.slave_name);
-+ if (!slave_dev)
-+ return -ENODEV;
-
- ret = -EINVAL;
-
-@@ -527,11 +529,13 @@
- if (copy_from_user(&sc, scp, sizeof (slave_config_t)))
- return -EFAULT;
-
-- eql = dev->priv;
- slave_dev = dev_get_by_name(sc.slave_name);
-+ if (!slave_dev)
-+ return -ENODEV;
-
- ret = -EINVAL;
-
-+ eql = dev->priv;
- spin_lock_bh(&eql->queue.lock);
- if (eql_is_slave(slave_dev)) {
- slave = __eql_find_slave_dev(&eql->queue, slave_dev);
---- 1.14/drivers/net/eql.c 2004-07-21 03:13:33 -07:00
-+++ 1.15/drivers/net/eql.c 2004-07-21 03:13:33 -07:00
-@@ -499,6 +499,8 @@
- return -ENODEV;
-
- ret = -EINVAL;
-+ if (!slave_dev)
-+ return ret;
-
- spin_lock_bh(&eql->queue.lock);
- if (eql_is_slave(slave_dev)) {
-@@ -534,6 +536,8 @@
- return -ENODEV;
-
- ret = -EINVAL;
-+ if (!slave_dev)
-+ return ret;
-
- eql = dev->priv;
- spin_lock_bh(&eql->queue.lock);
--- /dev/null
+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);
+
+++ /dev/null
-# This is a BitKeeper generated diff -Nru style patch.
-#
-# ChangeSet
-# 2004/07/02 20:55:04-07:00 chrisw@osdl.org
-# [PATCH] chown permission check fix for ATTR_GID
-#
-# SuSE discovered this problem with chown and ATTR_GID. Make sure user
-# is authorized to change the group, CAN-2004-0497.
-#
-# fs/attr.c
-# 2004/07/02 09:07:32-07:00 chrisw@osdl.org +2 -1
-# chown permission check fix for ATTR_GID
-#
-diff -Nru a/fs/attr.c b/fs/attr.c
---- a/fs/attr.c 2004-07-08 16:35:57 -07:00
-+++ b/fs/attr.c 2004-07-08 16:35:57 -07:00
-@@ -35,7 +35,8 @@
-
- /* Make sure caller can chgrp. */
- if ((ia_valid & ATTR_GID) &&
-- (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid) &&
-+ (current->fsuid != inode->i_uid ||
-+ (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid)) &&
- !capable(CAP_CHOWN))
- goto error;
-
+++ /dev/null
---- net/ipv4/netfilter/ip_tables.c.orig 2004-04-04 05:36:47.000000000 +0200
-+++ net/ipv4/netfilter/ip_tables.c 2004-06-24 21:24:26.000000000 +0200
-@@ -1461,7 +1461,7 @@
- int *hotdrop)
- {
- /* tcp.doff is only 4 bits, ie. max 15 * 4 bytes */
-- char opt[60 - sizeof(struct tcphdr)];
-+ u_int8_t opt[60 - sizeof(struct tcphdr)];
- unsigned int i;
-
- duprintf("tcp_match: finding option\n");
+++ /dev/null
-# This is a BitKeeper generated diff -Nru style patch.
-#
-# ChangeSet
-# 2004/07/02 18:48:26-07:00 chrisw@osdl.org
-# [PATCH] check attr updates in /proc
-#
-# Any proc entry with default proc_file_inode_operations allow unauthorized
-# attribute updates. This is very dangerous for proc entries that rely
-# solely on file permissions for open/read/write.
-#
-# Signed-off-by: Chris Wright <chrisw@osdl.org>
-# Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-#
-# fs/proc/generic.c
-# 2004/07/02 15:47:55-07:00 chrisw@osdl.org +14 -7
-# check attr updates in /proc
-#
-diff -Nru a/fs/proc/generic.c b/fs/proc/generic.c
---- a/fs/proc/generic.c 2004-07-08 17:03:20 -07:00
-+++ b/fs/proc/generic.c 2004-07-08 17:03:20 -07:00
-@@ -231,14 +231,21 @@
- static int proc_notify_change(struct dentry *dentry, struct iattr *iattr)
- {
- struct inode *inode = dentry->d_inode;
-- int error = inode_setattr(inode, iattr);
-- if (!error) {
-- struct proc_dir_entry *de = PDE(inode);
-- de->uid = inode->i_uid;
-- de->gid = inode->i_gid;
-- de->mode = inode->i_mode;
-- }
-+ struct proc_dir_entry *de = PDE(inode);
-+ int error;
-
-+ error = inode_change_ok(inode, iattr);
-+ if (error)
-+ goto out;
-+
-+ error = inode_setattr(inode, iattr);
-+ if (error)
-+ goto out;
-+
-+ de->uid = inode->i_uid;
-+ de->gid = inode->i_gid;
-+ de->mode = inode->i_mode;
-+out:
- return error;
- }
-
+++ /dev/null
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xbox-sources/xbox-sources-2.4.27-r1.ebuild,v 1.1 2004/08/10 01:12:51 plasmaroo Exp $
-
-ETYPE="sources"
-inherit kernel-2
-detect_version
-
-XBOX_PATCH="xbox-sources-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-${PR/r1/r0}.patch.bz2"
-
-SRC_URI="${KERNEL_URI}
- mirror://gentoo/${XBOX_PATCH}"
-DESCRIPTION="Full sources for the Xbox Linux kernel"
-HOMEPAGE="http://www.xbox-linux.org"
-K_NOSETEXTRAVERSION="don't_set_it"
-KEYWORDS="~x86 -*"
-
-UNIPATCH_LIST="
- ${DISTDIR}/${XBOX_PATCH}
- ${FILESDIR}/${P}.cmdlineLeak.patch"
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xbox-sources/xbox-sources-2.4.27-r2.ebuild,v 1.1 2004/08/21 14:15:56 chrb Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xbox-sources/xbox-sources-2.4.27-r3.ebuild,v 1.1 2004/11/06 23:12:37 plasmaroo Exp $
ETYPE="sources"
inherit kernel-2
detect_version
-XBOX_PATCH="xbox-sources-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-${PR/r2/r0}.patch.bz2"
+XBOX_PATCH="xbox-sources-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-${PR/r3/r0}.patch.bz2"
SRC_URI="${KERNEL_URI}
mirror://gentoo/${XBOX_PATCH}
- mirror://gentoo/${P}.squashfs.patch.bz2"
+ mirror://gentoo/${P}.squashfs.patch.bz2
+ http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-${OKV}-CAN-2004-0814.patch"
DESCRIPTION="Full sources for the Xbox Linux kernel"
HOMEPAGE="http://www.xbox-linux.org"
K_NOSETEXTRAVERSION="don't_set_it"
UNIPATCH_LIST="
${DISTDIR}/${XBOX_PATCH}
+ ${DISTDIR}/${P}.squashfs.patch.bz2
+ ${FILESDIR}/${PN}-2.4.26.CAN-2004-0394.patch
${FILESDIR}/${P}.cmdlineLeak.patch
- ${DISTDIR}/${P}.squashfs.patch.bz2"
+ ${FILESDIR}/${P}.XDRWrapFix.patch
+ ${DISTDIR}/linux-${OKV}-CAN-2004-0814.patch"
+++ /dev/null
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xbox-sources/xbox-sources-2.6.7-r5.ebuild,v 1.1 2004/08/10 01:12:51 plasmaroo Exp $
-
-ETYPE='sources'
-inherit kernel-2
-detect_version
-
-#version of gentoo patchset
-XPV=7.20040629
-XBOX_PATCHES=xboxpatches-${KV_MAJOR}.${KV_MINOR}-${XPV}.tar.bz2
-
-K_NOSETEXTRAVERSION="don't_set_it"
-KEYWORDS="~x86 -*"
-UNIPATCH_LIST="
- ${DISTDIR}/${XBOX_PATCHES}
- ${DISTDIR}/linux-${OKV}-CAN-2004-0415.patch
- ${FILESDIR}/${PN}.CAN-2004-0497.patch
- ${FILESDIR}/${PN}.IPTables-RDoS.patch
- ${FILESDIR}/${PN}.ProcPerms.patch
- ${FILESDIR}/${P}.CAN-2004-0596.patch
- ${FILESDIR}/${P}.cmdlineLeak.patch"
-DESCRIPTION='Full sources for the Xbox Linux kernel'
-SRC_URI="${KERNEL_URI}
- mirror://gentoo/${XBOX_PATCHES}
- http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-${OKV}-CAN-2004-0415.patch"
-
-pkg_postinst() {
- einfo ''
- einfo 'WARNING: The FATX driver is currently horribly broken. Writing to a FATX partition with this kernel will corrupt it.'
- einfo ''
-}
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xbox-sources/xbox-sources-2.6.8.1-r1.ebuild,v 1.1 2004/11/04 09:51:04 chrb Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xbox-sources/xbox-sources-2.6.8.1-r2.ebuild,v 1.1 2004/11/06 23:12:37 plasmaroo Exp $
ETYPE='sources'
inherit kernel-2
K_NOSETEXTRAVERSION="don't_set_it"
KEYWORDS="~x86 -*"
UNIPATCH_LIST="
- ${DISTDIR}/${XBOX_PATCHES}"
+ ${DISTDIR}/${XBOX_PATCHES}
+ ${DISTDIR}/linux-${OKV}-CAN-2004-0814.patch
+ ${FILESDIR}/${PN}-2.6.7.cmdlineLeak.patch
+ ${FILESDIR}/${P}.devPtmx.patch"
DESCRIPTION='Full sources for the Xbox Linux kernel'
SRC_URI="${KERNEL_URI}
mirror://gentoo/${XBOX_PATCHES}"
+++ /dev/null
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xbox-sources/xbox-sources-2.6.8.1.ebuild,v 1.2 2004/10/18 09:46:55 chrb Exp $
-
-ETYPE='sources'
-inherit kernel-2
-detect_version
-
-# version of gentoo patchset
-XBOX_PATCHES=xboxpatches-2.6.8.1-20041016.tar.bz2
-
-K_NOSETEXTRAVERSION="don't_set_it"
-KEYWORDS="~x86 -*"
-UNIPATCH_LIST="
- ${DISTDIR}/${XBOX_PATCHES}"
-DESCRIPTION='Full sources for the Xbox Linux kernel'
-SRC_URI="${KERNEL_URI}
- mirror://gentoo/${XBOX_PATCHES}"
-
-pkg_postinst() {
- einfo ''
- einfo 'WARNING: The FATX driver is currently horribly broken. Writing to a FATX partition with this kernel will corrupt it.'
- einfo ''
-}