summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Jackson <iggy@gentoo.org>2003-12-02 04:13:50 +0000
committerBrian Jackson <iggy@gentoo.org>2003-12-02 04:13:50 +0000
commit81ce9e6e330f096a743810c61aa3456297cf6d57 (patch)
tree24dd72ade3c515e20fd87f049ef022649327caf0 /sys-kernel/rsbac-sources/files
parentfix do_brk vuln (diff)
downloadgentoo-2-81ce9e6e330f096a743810c61aa3456297cf6d57.tar.gz
gentoo-2-81ce9e6e330f096a743810c61aa3456297cf6d57.tar.bz2
gentoo-2-81ce9e6e330f096a743810c61aa3456297cf6d57.zip
fix do_brk vuln
Diffstat (limited to 'sys-kernel/rsbac-sources/files')
-rw-r--r--sys-kernel/rsbac-sources/files/do_brk_fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-kernel/rsbac-sources/files/do_brk_fix.patch b/sys-kernel/rsbac-sources/files/do_brk_fix.patch
new file mode 100644
index 000000000000..fef1f1e981e2
--- /dev/null
+++ b/sys-kernel/rsbac-sources/files/do_brk_fix.patch
@@ -0,0 +1,12 @@
+--- a/mm/mmap.c Fri Sep 12 06:44:06 2003
++++ b/mm/mmap.c Thu Oct 2 01:18:19 2003
+@@ -1041,6 +1041,9 @@
+ if (!len)
+ return addr;
+
++ if ((addr + len) > TASK_SIZE || (addr + len) < addr)
++ return -EINVAL;
++
+ /*
+ * mlock MCL_FUTURE?
+ */