[kernel] r17414 - in dists/lenny/linux-2.6/debian: . patches/bugfix/all

Dann Frazier dannf at alioth.debian.org
Mon May 16 00:58:18 UTC 2011


Author: dannf
Date: Mon May 16 00:58:16 2011
New Revision: 17414

Log:
ocfs2_connection_find() returns pointer to bad structure

Added:
   dists/lenny/linux-2.6/debian/patches/bugfix/all/ocfs2_connection_find-returns-pointer-to-bad-structure.patch
Modified:
   dists/lenny/linux-2.6/debian/changelog

Modified: dists/lenny/linux-2.6/debian/changelog
==============================================================================
--- dists/lenny/linux-2.6/debian/changelog	Mon May 16 00:58:11 2011	(r17413)
+++ dists/lenny/linux-2.6/debian/changelog	Mon May 16 00:58:16 2011	(r17414)
@@ -22,6 +22,7 @@
     - ext2: Fix link count corruption under heavy link+rename load
     - virtio: set pci bus master enable bit
     - [s390] keyboard: integer underflow bug
+    - ocfs2_connection_find() returns pointer to bad structure
 
  -- Ben Hutchings <ben at decadent.org.uk>  Mon, 29 Nov 2010 02:01:24 +0000
 

Added: dists/lenny/linux-2.6/debian/patches/bugfix/all/ocfs2_connection_find-returns-pointer-to-bad-structure.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/lenny/linux-2.6/debian/patches/bugfix/all/ocfs2_connection_find-returns-pointer-to-bad-structure.patch	Mon May 16 00:58:16 2011	(r17414)
@@ -0,0 +1,39 @@
+commit 95dbe336d30e9356c20fc37f6351a0d0c17ad790
+Author: dann frazier <dann.frazier at canonical.com>
+Date:   Thu Nov 18 15:03:09 2010 -0700
+
+    ocfs2_connection_find() returns pointer to bad structure
+    
+    commit 226291aa4641fa13cb5dec3bcb3379faa83009e2 upstream.
+    
+    If ocfs2_live_connection_list is empty, ocfs2_connection_find() will return
+    a pointer to the LIST_HEAD, cast as a ocfs2_live_connection. This can cause
+    an oops when ocfs2_control_send_down() dereferences c->oc_conn:
+    
+    Call Trace:
+      [<ffffffffa00c2a3c>] ocfs2_control_message+0x28c/0x2b0 [ocfs2_stack_user]
+      [<ffffffffa00c2a95>] ocfs2_control_write+0x35/0xb0 [ocfs2_stack_user]
+      [<ffffffff81143a88>] vfs_write+0xb8/0x1a0
+      [<ffffffff8155cc13>] ? do_page_fault+0x153/0x3b0
+      [<ffffffff811442f1>] sys_write+0x51/0x80
+      [<ffffffff810121b2>] system_call_fastpath+0x16/0x1b
+    
+    Fix by explicitly returning NULL if no match is found.
+    
+    Signed-off-by: dann frazier <dann.frazier at canonical.com>
+    Signed-off-by: Joel Becker <joel.becker at oracle.com>
+    Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
+
+diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c
+index 353fc35..2179c7d 100644
+--- a/fs/ocfs2/stack_user.c
++++ b/fs/ocfs2/stack_user.c
+@@ -190,7 +190,7 @@ static struct ocfs2_live_connection *ocfs2_connection_find(const char *name)
+ 			return c;
+ 	}
+ 
+-	return c;
++	return NULL;
+ }
+ 
+ /*



More information about the Kernel-svn-changes mailing list