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

Dann Frazier dannf at alioth.debian.org
Thu Aug 13 22:07:53 UTC 2009


Author: dannf
Date: Thu Aug 13 22:07:50 2009
New Revision: 14102

Log:
Make sock_sendpage() use kernel_sendpage() (CVE-2009-2692)

Added:
   dists/lenny-security/linux-2.6/debian/patches/bugfix/all/make-sock_sendpage-use-kernel_sendpage.patch
   dists/lenny-security/linux-2.6/debian/patches/series/17lenny2
Modified:
   dists/lenny-security/linux-2.6/debian/changelog

Modified: dists/lenny-security/linux-2.6/debian/changelog
==============================================================================
--- dists/lenny-security/linux-2.6/debian/changelog	Wed Aug 12 01:09:56 2009	(r14101)
+++ dists/lenny-security/linux-2.6/debian/changelog	Thu Aug 13 22:07:50 2009	(r14102)
@@ -1,3 +1,9 @@
+linux-2.6 (2.6.26-17lenny2) UNRELEASED; urgency=high
+
+  * Make sock_sendpage() use kernel_sendpage() (CVE-2009-2692)
+
+ -- dann frazier <dannf at debian.org>  Thu, 13 Aug 2009 15:41:34 -0600
+
 linux-2.6 (2.6.26-17lenny1) stable-security; urgency=high
 
   * [KVM] x86: check for cr3 validity in ioctl_set_sregs

Added: dists/lenny-security/linux-2.6/debian/patches/bugfix/all/make-sock_sendpage-use-kernel_sendpage.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/lenny-security/linux-2.6/debian/patches/bugfix/all/make-sock_sendpage-use-kernel_sendpage.patch	Thu Aug 13 22:07:50 2009	(r14102)
@@ -0,0 +1,34 @@
+commit e694958388c50148389b0e9b9e9e8945cf0f1b98
+Author: Linus Torvalds <torvalds at linux-foundation.org>
+Date:   Thu Aug 13 08:28:36 2009 -0700
+
+    Make sock_sendpage() use kernel_sendpage()
+    
+    kernel_sendpage() does the proper default case handling for when the
+    socket doesn't have a native sendpage implementation.
+    
+    Now, arguably this might be something that we could instead solve by
+    just specifying that all protocols should do it themselves at the
+    protocol level, but we really only care about the common protocols.
+    Does anybody really care about sendpage on something like Appletalk? Not
+    likely.
+    
+    Acked-by: David S. Miller <davem at davemloft.net>
+    Acked-by: Julien TINNES <julien at cr0.org>
+    Acked-by: Tavis Ormandy <taviso at sdf.lonestar.org>
+    Cc: stable at kernel.org
+    Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
+
+diff --git a/net/socket.c b/net/socket.c
+index 791d71a..6d47165 100644
+--- a/net/socket.c
++++ b/net/socket.c
+@@ -736,7 +736,7 @@ static ssize_t sock_sendpage(struct file *file, struct page *page,
+ 	if (more)
+ 		flags |= MSG_MORE;
+ 
+-	return sock->ops->sendpage(sock, page, offset, size, flags);
++	return kernel_sendpage(sock, page, offset, size, flags);
+ }
+ 
+ static ssize_t sock_splice_read(struct file *file, loff_t *ppos,

Added: dists/lenny-security/linux-2.6/debian/patches/series/17lenny2
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/lenny-security/linux-2.6/debian/patches/series/17lenny2	Thu Aug 13 22:07:50 2009	(r14102)
@@ -0,0 +1 @@
++ bugfix/all/make-sock_sendpage-use-kernel_sendpage.patch



More information about the Kernel-svn-changes mailing list