summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Martin <gmsoft@gentoo.org>2004-08-09 22:50:22 +0000
committerGuy Martin <gmsoft@gentoo.org>2004-08-09 22:50:22 +0000
commit9a71087f8cc8c8f7d3957757d453e35e5a168c2e (patch)
treef60922e0416303567ec046559656353cf7422392 /sys-kernel/hppa-sources
parentAdded va_list patch, thanks Kugelfang. Marked ~amd64. (Manifest recommit) (diff)
downloadgentoo-2-9a71087f8cc8c8f7d3957757d453e35e5a168c2e.tar.gz
gentoo-2-9a71087f8cc8c8f7d3957757d453e35e5a168c2e.tar.bz2
gentoo-2-9a71087f8cc8c8f7d3957757d453e35e5a168c2e.zip
Added CAN-2004-685 and CAN-2004-0415 security fix (#59769 and #59378).
Diffstat (limited to 'sys-kernel/hppa-sources')
-rw-r--r--sys-kernel/hppa-sources/ChangeLog8
-rw-r--r--sys-kernel/hppa-sources/Manifest3
-rw-r--r--sys-kernel/hppa-sources/files/CAN-2004-685.patch83
-rw-r--r--sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.26_p7-r15
-rw-r--r--sys-kernel/hppa-sources/hppa-sources-2.4.26_p7-r1.ebuild63
5 files changed, 161 insertions, 1 deletions
diff --git a/sys-kernel/hppa-sources/ChangeLog b/sys-kernel/hppa-sources/ChangeLog
index e07d9c25a845..d1d0de14f856 100644
--- a/sys-kernel/hppa-sources/ChangeLog
+++ b/sys-kernel/hppa-sources/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-kernel/hppa-sources
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-sources/ChangeLog,v 1.41 2004/07/31 14:54:50 gmsoft Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-sources/ChangeLog,v 1.42 2004/08/09 22:50:22 gmsoft Exp $
+
+*hppa-sources-2.4.26_p7-r1 (09 Aug 2004)
+
+ 09 Aug 2004; Guy Martin <gmsoft@gentoo.org> +files/CAN-2004-685.patch,
+ +hppa-sources-2.4.26_p7-r1.ebuild:
+ Added CAN-2004-685 and CAN-2004-0415 security fix (#59769 and #59378).
*hppa-sources-2.4.26_p7 (31 Jul 2004)
diff --git a/sys-kernel/hppa-sources/Manifest b/sys-kernel/hppa-sources/Manifest
index 98ef33822b14..249e5be416e4 100644
--- a/sys-kernel/hppa-sources/Manifest
+++ b/sys-kernel/hppa-sources/Manifest
@@ -2,9 +2,12 @@ MD5 05ed5731534e9423f109cbec1aa7e993 metadata.xml 223
MD5 127494e4c960e882b929174b6db34c5d ChangeLog 7071
MD5 502f3aee4aee214f710d0de28f255fa2 hppa-sources-2.4.26_p6-r1.ebuild 2294
MD5 ac36567dfb23d8bd364cbdb41d0a7b88 hppa-sources-2.4.26_p7.ebuild 2470
+MD5 260dfdaa10052926de33d9112fdfa853 hppa-sources-2.4.26_p7-r1.ebuild 2670
MD5 d4a740ae56c2049247083af387a22a85 files/CAN-2004-0394.patch 350
MD5 0f66013f643c79c97fda489618a4e2fd files/CAN-2004-0535-2.4-e1000.patch 476
MD5 dc18e982f8149588a291956481885a8c files/CAN-2004-0495-2.4-sparse.patch 17549
MD5 3bdf00d5f80fe9dfbfe8220e076cd04c files/CAN-2004-0497.patch 707
MD5 ff11f350435d0871b62d2f7a62bc463c files/digest-hppa-sources-2.4.26_p6-r1 224
MD5 cf38cb04fc6f56768ff1fce46e5da41c files/digest-hppa-sources-2.4.26_p7 302
+MD5 60d25ff310fc6abfdce39ec9e47345af files/CAN-2004-685.patch 2809
+MD5 fac8b9be67d8fe295b751bbf2b6c608c files/digest-hppa-sources-2.4.26_p7-r1 378
diff --git a/sys-kernel/hppa-sources/files/CAN-2004-685.patch b/sys-kernel/hppa-sources/files/CAN-2004-685.patch
new file mode 100644
index 000000000000..d1be834cc8a5
--- /dev/null
+++ b/sys-kernel/hppa-sources/files/CAN-2004-685.patch
@@ -0,0 +1,83 @@
+# This is a BitKeeper generated diff -Nru style patch.
+#
+# ChangeSet
+# 2004/07/26 19:14:16-03:00 mjc@redhat.com
+# [PATCH] USB: more sparse fixes
+#
+# Back in October 2003 Arnaldo commited some fixes prior to 2.6 for some leaking info to userspace in the
+# usb drivers:
+# http://linux.bkbits.net:8080/linux-2.6/cset@3f986b35LyBKc-OxB8G6k22oOjgYTQ
+#
+# The corresponding changes have not been commited to 2.4, or included in
+# the previous sparse fixes.
+#
+# drivers/usb/audio.c
+# 2004/07/15 08:46:52-03:00 mjc@redhat.com +4 -0
+# USB: more sparse fixes
+#
+# drivers/usb/brlvger.c
+# 2004/07/15 08:47:27-03:00 mjc@redhat.com +1 -0
+# USB: more sparse fixes
+#
+# drivers/usb/serial/io_edgeport.c
+# 2004/07/15 08:48:06-03:00 mjc@redhat.com +1 -0
+# USB: more sparse fixes
+#
+# drivers/usb/vicam.c
+# 2004/07/15 08:47:13-03:00 mjc@redhat.com +1 -0
+# USB: more sparse fixes
+#
+diff -Nru a/drivers/usb/audio.c b/drivers/usb/audio.c
+--- a/drivers/usb/audio.c 2004-08-08 07:41:30 -07:00
++++ b/drivers/usb/audio.c 2004-08-08 07:41:30 -07:00
+@@ -2141,6 +2141,8 @@
+
+ if (cmd == SOUND_MIXER_INFO) {
+ mixer_info info;
++
++ memset(&info, 0, sizeof(info));
+ strncpy(info.id, "USB_AUDIO", sizeof(info.id));
+ strncpy(info.name, "USB Audio Class Driver", sizeof(info.name));
+ info.modify_counter = ms->modcnt;
+@@ -2150,6 +2152,8 @@
+ }
+ if (cmd == SOUND_OLD_MIXER_INFO) {
+ _old_mixer_info info;
++
++ memset(&info, 0, sizeof(info));
+ strncpy(info.id, "USB_AUDIO", sizeof(info.id));
+ strncpy(info.name, "USB Audio Class Driver", sizeof(info.name));
+ if (copy_to_user((void *)arg, &info, sizeof(info)))
+diff -Nru a/drivers/usb/brlvger.c b/drivers/usb/brlvger.c
+--- a/drivers/usb/brlvger.c 2004-08-08 07:41:30 -07:00
++++ b/drivers/usb/brlvger.c 2004-08-08 07:41:30 -07:00
+@@ -743,6 +743,7 @@
+ case BRLVGER_GET_INFO: {
+ struct brlvger_info vi;
+
++ memset(&vi, 0, sizeof(vi));
+ strncpy(vi.driver_version, DRIVER_VERSION,
+ sizeof(vi.driver_version));
+ vi.driver_version[sizeof(vi.driver_version)-1] = 0;
+diff -Nru a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c
+--- a/drivers/usb/serial/io_edgeport.c 2004-08-08 07:41:30 -07:00
++++ b/drivers/usb/serial/io_edgeport.c 2004-08-08 07:41:30 -07:00
+@@ -1913,6 +1913,7 @@
+
+ case TIOCGICOUNT:
+ cnow = edge_port->icount;
++ memset(&icount, 0, sizeof(icount));
+ icount.cts = cnow.cts;
+ icount.dsr = cnow.dsr;
+ icount.rng = cnow.rng;
+diff -Nru a/drivers/usb/vicam.c b/drivers/usb/vicam.c
+--- a/drivers/usb/vicam.c 2004-08-08 07:41:30 -07:00
++++ b/drivers/usb/vicam.c 2004-08-08 07:41:30 -07:00
+@@ -481,6 +481,7 @@
+ struct video_capability b;
+
+ DBG("VIDIOCGCAP\n");
++ memset(&b, 0, sizeof(b));
+ strcpy(b.name, "ViCam-based Camera");
+ b.type = VID_TYPE_CAPTURE;
+ b.channels = 1;
diff --git a/sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.26_p7-r1 b/sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.26_p7-r1
new file mode 100644
index 000000000000..1be356f1f4e4
--- /dev/null
+++ b/sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.26_p7-r1
@@ -0,0 +1,5 @@
+MD5 88d7aefa03c92739cb70298a0b486e2c linux-2.4.26.tar.bz2 30772389
+MD5 993a9ea8c553f198ef62747bb7c9a7c4 patch-2.4.26-pa7.gz 725125
+MD5 010fe6b49e97365f12ce3f70376d5eb0 parisc-2.4.23-pa4-missing-ioctl-translations.diff 18091
+MD5 2758cec1dc37d4069a42fc7544599860 lasi-config-max-tag-queue-dep.patch 1455
+MD5 8f8f2412aacf9a01b5549bf2a9a3bff8 linux-2.4.26-CAN-2004-0415.patch 90145
diff --git a/sys-kernel/hppa-sources/hppa-sources-2.4.26_p7-r1.ebuild b/sys-kernel/hppa-sources/hppa-sources-2.4.26_p7-r1.ebuild
new file mode 100644
index 000000000000..f43ad0af245b
--- /dev/null
+++ b/sys-kernel/hppa-sources/hppa-sources-2.4.26_p7-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-sources/hppa-sources-2.4.26_p7-r1.ebuild,v 1.1 2004/08/09 22:50:22 gmsoft Exp $
+#OKV=original kernel version, KV=patched kernel version. They can be the same.
+
+ETYPE="sources"
+inherit kernel eutils
+OKV="${PV/_p*/}"
+PATCH_LEVEL="${PV/${OKV}_p/}"
+EXTRAVERSION="-pa${PATCH_LEVEL}"
+[ ! "${PR}" = "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}"
+KV="${OKV}${EXTRAVERSION}"
+
+S=${WORKDIR}/linux-${KV}
+
+
+DESCRIPTION="Full sources for the Linux kernel with patch for hppa"
+SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://ftp.parisc-linux.org/cvs/linux-2.4/patch-${OKV}-pa${PATCH_LEVEL}.gz
+http://dev.gentoo.org/~gmsoft/patches/parisc-2.4.23-pa4-missing-ioctl-translations.diff http://dev.gentoo.org/~gmsoft/patches/lasi-config-max-tag-queue-dep.patch http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-2.4.26-CAN-2004-0415.patch"
+HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org"
+KEYWORDS="hppa -*"
+IUSE=""
+SLOT="${KV}"
+
+
+src_unpack() {
+ unpack linux-${OKV}.tar.bz2
+ mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV}
+ cd ${S}
+
+ einfo Applying ${OKV}-pa${PATCH_LEVEL}.gz
+ zcat ${DISTDIR}/patch-${OKV}-pa${PATCH_LEVEL}.gz | patch -sp 1
+
+ DEFCONFIG="${S}/arch/parisc/defconfig"
+
+ # Tweaks the default configuration
+
+ # Enable stuff
+ for i in CONFIG_SERIAL_NONSTANDARD CONFIG_PDC_CONSOLE CONFIG_DEVFS_FS \
+ CONFIG_USB CONFIG_USB_OHCI CONFIG_USB_HID CONFIG_USB_HIDINPUT \
+ CONFIG_CRC32 CONFIG_BLK_STATS CONFIG_TMPFS
+ do
+ sed -i -e "s/^.*${i}\ .*$//" "${DEFCONFIG}"
+ echo "${i}=y" >> "${DEFCONFIG}"
+ done
+
+ # Disable stuff
+ for i in CONFIG_HOTPLUG CONFIG_PARPORT CONFIG_BLK_DEV_RAM CONFIG_MD \
+ CONFIG_CRYPTO CONFIG_DEVPTS_FS
+ do
+ sed -i -e "s/^.*${i}=.*$/# ${i} is not set/" "${DEFCONFIG}"
+ done
+
+ epatch ${DISTDIR}/parisc-2.4.23-pa4-missing-ioctl-translations.diff || die "Failed to patch missing ioctls translations!"
+ epatch ${DISTDIR}/lasi-config-max-tag-queue-dep.patch || die "Failed to patch lasi config max taq queue!"
+ epatch ${FILESDIR}/CAN-2004-0394.patch || die "Failed to patch CAN-2004-0394 security fix!"
+ epatch ${FILESDIR}/CAN-2004-0495-2.4-sparse.patch || die "Failed to patch CAN-2004-0495 security fix!"
+ epatch ${FILESDIR}/CAN-2004-0535-2.4-e1000.patch || die "Failed to patch CAN-2004-0535 security fix!"
+ epatch ${FILESDIR}/CAN-2004-0497.patch || die "Failed to patch CAN-2004-0497 security fix!"
+ epatch ${DISTDIR}/linux-2.4.26-CAN-2004-0415.patch || die "Failed to patch CAN-2004-0415 security fix!"
+
+ kernel_universal_unpack
+}