rpms/kexec-tools/F-8 kexec-tools-1.102pre-ppc64-buffer-overflow.patch, NONE, 1.1 kexec-tools.spec, 1.106, 1.107

Neil Horman (nhorman) fedora-extras-commits at redhat.com
Fri Feb 22 13:24:28 UTC 2008


Author: nhorman

Update of /cvs/extras/rpms/kexec-tools/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8127

Modified Files:
	kexec-tools.spec 
Added Files:
	kexec-tools-1.102pre-ppc64-buffer-overflow.patch 
Log Message:
Fixing Bz 428684

kexec-tools-1.102pre-ppc64-buffer-overflow.patch:

--- NEW FILE kexec-tools-1.102pre-ppc64-buffer-overflow.patch ---
diff -up kexec-tools-testing-20070330/kexec/arch/ppc64/kexec-ppc64.c.orig kexec-tools-testing-20070330/kexec/arch/ppc64/kexec-ppc64.c
--- kexec-tools-testing-20070330/kexec/arch/ppc64/kexec-ppc64.c.orig	2008-02-20 10:08:36.000000000 -0500
+++ kexec-tools-testing-20070330/kexec/arch/ppc64/kexec-ppc64.c	2008-02-20 10:10:32.000000000 -0500
@@ -133,7 +133,7 @@ static int get_base_ranges()
 	int local_memory_ranges = 0;
 	char device_tree[256] = "/proc/device-tree/";
 	char fname[256];
-	char buf[MAXBYTES-1];
+	char buf[MAXBYTES];
 	DIR *dir, *dmem;
 	FILE *file;
 	struct dirent *dentry, *mentry;
@@ -253,7 +253,7 @@ static int get_devtree_details(unsigned 
 	unsigned int tce_size;
 	unsigned long long htab_base, htab_size;
 	unsigned long long kernel_end;
-	char buf[MAXBYTES-1];
+	char buf[MAXBYTES];
 	char device_tree[256] = "/proc/device-tree/";
 	char fname[256];
 	DIR *dir, *cdir;
diff -up kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c.orig kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c
--- kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c.orig	2007-03-30 00:34:36.000000000 -0400
+++ kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c	2008-02-20 10:09:23.000000000 -0500
@@ -101,7 +101,7 @@ static int get_crash_memory_ranges(struc
 	int memory_ranges = 0;
 	char device_tree[256] = "/proc/device-tree/";
 	char fname[256];
-	char buf[MAXBYTES-1];
+	char buf[MAXBYTES];
 	DIR *dir, *dmem;
 	FILE *file;
 	struct dirent *dentry, *mentry;


Index: kexec-tools.spec
===================================================================
RCS file: /cvs/extras/rpms/kexec-tools/F-8/kexec-tools.spec,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -r1.106 -r1.107
--- kexec-tools.spec	3 Jan 2008 14:00:15 -0000	1.106
+++ kexec-tools.spec	22 Feb 2008 13:23:54 -0000	1.107
@@ -1,6 +1,6 @@
 Name: kexec-tools
 Version: 1.102pre 
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPL
 Group: Applications/System
 Summary: The kexec/kdump userspace component.
@@ -47,6 +47,7 @@
 # Patches 301 through 400 are meant for ppc64 kexec-tools enablement
 #
 Patch301: kexec-tools-1.102pre-ppc64_rmo_top.patch
+Patch302: kexec-tools-1.102pre-ppc64-buffer-overflow.patch
 
 #
 # Patches 401 through 500 are meant for s390 kexec-tools enablement
@@ -80,6 +81,7 @@
 %patch2 -p1
 
 %patch301 -p1
+%patch302 -p1
 
 %patch501 -p1
 
@@ -220,6 +222,9 @@
 %doc kexec-kdump-howto.txt
 
 %changelog
+* Fri Feb 22 2008 Neil Horman <nhorman at redhat.com> - 1.102pre-4
+- Fix ppc buffer overflow (bz 428684)
+
 * Wed Jan 02 2008 Neil Horman <nhorman at redhat.com> - 1.102pre-3
 - Fix ARCH placement in kdump init script (bz 427201)
 - Fix BuildRequires




More information about the fedora-extras-commits mailing list