packages (LINUX_2_6_27): kernel/kernel.spec, kernel/kernel-sock-sendpage.pa...

arekm arekm at pld-linux.org
Thu Aug 13 22:55:36 CEST 2009


Author: arekm                        Date: Thu Aug 13 20:55:36 2009 GMT
Module: packages                      Tag: LINUX_2_6_27
---- Log message:
- local root fix (http://lwn.net/Articles/347006/)

---- Files affected:
packages/kernel:
   kernel.spec (1.441.2.2036.2.31 -> 1.441.2.2036.2.32) , kernel-sock-sendpage.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: packages/kernel/kernel.spec
diff -u packages/kernel/kernel.spec:1.441.2.2036.2.31 packages/kernel/kernel.spec:1.441.2.2036.2.32
--- packages/kernel/kernel.spec:1.441.2.2036.2.31	Sat Aug  1 23:00:10 2009
+++ packages/kernel/kernel.spec	Thu Aug 13 22:55:29 2009
@@ -316,6 +316,7 @@
 Patch2001:	linux-2.6.21.1-pwc-uncompress.patch
 Patch2002:	kernel-atom-coretemp.patch
 Patch2003:	kernel-regressions.patch
+Patch2004:	kernel-sock-sendpage.patch
 
 # kill some thousands of warnings
 # (only warnings, so just remove parts of this patch if conflics)
@@ -936,6 +937,7 @@
 %patch2001 -p1
 %patch2002 -p1
 #%patch2003 -p1
+%patch2004 -p1
 
 # Fix EXTRAVERSION in main Makefile
 sed -i 's#EXTRAVERSION =.*#EXTRAVERSION = %{postver}%{?alt_kernel:_%{alt_kernel}}#g' Makefile
@@ -1670,6 +1672,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.441.2.2036.2.32  2009/08/13 20:55:29  arekm
+- local root fix (http://lwn.net/Articles/347006/)
+
 Revision 1.441.2.2036.2.31  2009/08/01 21:00:10  hawk
 - updated to 2.6.27.29
 

================================================================
Index: packages/kernel/kernel-sock-sendpage.patch
diff -u /dev/null packages/kernel/kernel-sock-sendpage.patch:1.1.2.1
--- /dev/null	Thu Aug 13 22:55:36 2009
+++ packages/kernel/kernel-sock-sendpage.patch	Thu Aug 13 22:55:30 2009
@@ -0,0 +1,36 @@
+From: Linus Torvalds <torvalds at linux-foundation.org>
+Date: Thu, 13 Aug 2009 15:28:36 +0000 (-0700)
+Subject: Make sock_sendpage() use kernel_sendpage()
+X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=e694958388c50148389b0e9b9e9e8945cf0f1b98;hp=a3620f7545344f932873bf98fbdf416b49409c8e
+
+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,
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel.spec?r1=1.441.2.2036.2.31&r2=1.441.2.2036.2.32&f=u



More information about the pld-cvs-commit mailing list