[kernel] r14566 - in dists/etch/linux-2.6.24/debian: . patches/bugfix/all patches/series

Dann Frazier dannf at alioth.debian.org
Thu Nov 5 02:04:24 UTC 2009


Author: dannf
Date: Thu Nov  5 02:04:05 2009
New Revision: 14566

Log:
reapply fix queued for 2.6.26-6~etchnhalf.10

Added:
   dists/etch/linux-2.6.24/debian/patches/bugfix/all/md-avoid-dereferencing-NULL-pointer-when-accessing-suspend-sysfs-attribs.patch
   dists/etch/linux-2.6.24/debian/patches/series/6~etchnhalf.10
Modified:
   dists/etch/linux-2.6.24/debian/changelog

Modified: dists/etch/linux-2.6.24/debian/changelog
==============================================================================
--- dists/etch/linux-2.6.24/debian/changelog	Thu Nov  5 01:57:17 2009	(r14565)
+++ dists/etch/linux-2.6.24/debian/changelog	Thu Nov  5 02:04:05 2009	(r14566)
@@ -1,3 +1,10 @@
+linux-2.6.24 (2.6.24-6~etchnhalf.10) UNRELEASED; urgency=high
+
+  * md: avoid dereferencing NULL pointer when accessing suspend_* sysfs
+    attributes.
+
+ -- dann frazier <dannf at debian.org>  Wed, 04 Nov 2009 19:01:57 -0700
+
 linux-2.6.24 (2.6.24-6~etchnhalf.9etch1) oldstable-security; urgency=high
 
   * [parisc] isa-eeprom - Fix loff_t usage (CVE-2009-2846)

Added: dists/etch/linux-2.6.24/debian/patches/bugfix/all/md-avoid-dereferencing-NULL-pointer-when-accessing-suspend-sysfs-attribs.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/etch/linux-2.6.24/debian/patches/bugfix/all/md-avoid-dereferencing-NULL-pointer-when-accessing-suspend-sysfs-attribs.patch	Thu Nov  5 02:04:05 2009	(r14566)
@@ -0,0 +1,39 @@
+commit b8d966efd9a46a9a35beac50cbff6e30565125ef
+Author: NeilBrown <neilb at suse.de>
+Date:   Wed Jul 1 11:14:04 2009 +1000
+
+    md: avoid dereferencing NULL pointer when accessing suspend_* sysfs attributes.
+    
+    If we try to modify one of the md/ sysfs files
+      suspend_lo or suspend_hi
+    when the array is not active, we dereference a NULL.
+    Protect against that.
+    
+    Cc: stable at kernel.org
+    Signed-off-by: NeilBrown <neilb at suse.de>
+
+Adjusted to apply to Debian's 2.6.24 by dann frazier <dannf at debian.org>
+
+diff -urpN linux-source-2.6.24.orig/drivers/md/md.c linux-source-2.6.24/drivers/md/md.c
+--- linux-source-2.6.24.orig/drivers/md/md.c	2008-10-10 00:11:28.000000000 -0600
++++ linux-source-2.6.24/drivers/md/md.c	2009-08-15 09:36:51.000000000 -0600
+@@ -2869,7 +2869,8 @@ suspend_lo_store(mddev_t *mddev, const c
+ 	char *e;
+ 	unsigned long long new = simple_strtoull(buf, &e, 10);
+ 
+-	if (mddev->pers->quiesce == NULL)
++	if (mddev->pers == NULL ||
++	    mddev->pers->quiesce == NULL)
+ 		return -EINVAL;
+ 	if (buf == e || (*e && *e != '\n'))
+ 		return -EINVAL;
+@@ -2897,7 +2898,8 @@ suspend_hi_store(mddev_t *mddev, const c
+ 	char *e;
+ 	unsigned long long new = simple_strtoull(buf, &e, 10);
+ 
+-	if (mddev->pers->quiesce == NULL)
++	if (mddev->pers == NULL || 
++	    mddev->pers->quiesce == NULL)
+ 		return -EINVAL;
+ 	if (buf == e || (*e && *e != '\n'))
+ 		return -EINVAL;

Added: dists/etch/linux-2.6.24/debian/patches/series/6~etchnhalf.10
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/etch/linux-2.6.24/debian/patches/series/6~etchnhalf.10	Thu Nov  5 02:04:05 2009	(r14566)
@@ -0,0 +1 @@
++ bugfix/all/md-avoid-dereferencing-NULL-pointer-when-accessing-suspend-sysfs-attribs.patch



More information about the Kernel-svn-changes mailing list