SOURCES: kernel-vmsplice.patch (NEW) - unofficial fix for local ro...

hawk hawk at pld-linux.org
Sun Feb 10 23:02:24 CET 2008


Author: hawk                         Date: Sun Feb 10 22:02:24 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- unofficial fix for local root hole

---- Files affected:
SOURCES:
   kernel-vmsplice.patch (1.1 -> 1.2)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/kernel-vmsplice.patch
diff -u /dev/null SOURCES/kernel-vmsplice.patch:1.2
--- /dev/null	Sun Feb 10 23:02:24 2008
+++ SOURCES/kernel-vmsplice.patch	Sun Feb 10 23:02:19 2008
@@ -0,0 +1,28 @@
+diff --git a/fs/splice.c b/fs/splice.c
+index 684bca3..2d7e598 100644
+--- a/fs/splice.c
++++ b/fs/splice.c
+@@ -1122,6 +1122,11 @@ static int get_iovec_page_array(const struct iovec __user *iov,
+ 		size_t len;
+ 		int i;
+ 
++		if (!access_ok(VERIFY_READ, iov, sizeof(struct iovec))) {
++			error = -EFAULT;
++			break;
++		}
++
+ 		/*
+ 		 * Get user address base and length for this iovec.
+ 		 */
+@@ -1141,6 +1146,11 @@ static int get_iovec_page_array(const struct iovec __user *iov,
+ 		if (unlikely(!base))
+ 			break;
+ 
++		if (!access_ok(VERIFY_READ, base, len)) {
++			error = -EFAULT;
++			break;
++		}
++
+ 		/*
+ 		 * Get this base offset and number of pages, then map
+ 		 * in the user pages.
================================================================


More information about the pld-cvs-commit mailing list