]> git.pld-linux.org Git - packages/kernel.git/blobdiff - linux-2.4-do_mremap.patch
- orphaned, outdated
[packages/kernel.git] / linux-2.4-do_mremap.patch
diff --git a/linux-2.4-do_mremap.patch b/linux-2.4-do_mremap.patch
deleted file mode 100644 (file)
index 80e568f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-[PATCH] Andrea Arcangeli: malicious users of mremap() syscall can gain priviledges
-
-All diffs for ChangeSet 1.1136.92.4
-diff -Nru a/mm/mremap.c b/mm/mremap.c
---- a/mm/mremap.c      Mon Jan  5 06:14:39 2004
-+++ b/mm/mremap.c      Mon Jan  5 06:14:39 2004
-@@ -241,6 +241,13 @@
-               if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len)
-                       goto out;
-+              /*
-+               * Allow new_len == 0 only if new_addr == addr
-+               * to preserve truncation in place (that was working
-+               * safe and some app may depend on it).
-+               */
-+              if (unlikely(!new_len && new_addr != addr))
-+                      goto out;
-               /* Check if the location we're moving into overlaps the
-                * old location at all, and fail if it does.
This page took 0.028768 seconds and 4 git commands to generate.