[kernel] r14189 - in dists/etch/linux-2.6.24/debian: . patches/bugfix/all patches/series
Dann Frazier
dannf at alioth.debian.org
Tue Aug 25 05:19:16 UTC 2009
Author: dannf
Date: Tue Aug 25 05:19:14 2009
New Revision: 14189
Log:
md: avoid dereferencing NULL pointer when accessing suspend_* sysfs
attributes.
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 Tue Aug 25 05:12:20 2009 (r14188)
+++ dists/etch/linux-2.6.24/debian/changelog Tue Aug 25 05:19:14 2009 (r14189)
@@ -1,6 +1,8 @@
linux-2.6.24 (2.6.24-6~etchnhalf.10) UNRELEASED; urgency=high
* Merge 2.6.24-6~etchnhalf.8etch2 - 2.6.24-6~etchnhalf.8etch3
+ * md: avoid dereferencing NULL pointer when accessing suspend_* sysfs
+ attributes.
-- dann frazier <dannf at debian.org> Thu, 30 Jul 2009 11:35:00 -0600
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 Tue Aug 25 05:19:14 2009 (r14189)
@@ -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 Tue Aug 25 05:19:14 2009 (r14189)
@@ -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