]> git.pld-linux.org Git - packages/kernel.git/blame - linux-do_brk-bound-check.patch
- added -r to depmod to actually check modules instead of rejecting
[packages/kernel.git] / linux-do_brk-bound-check.patch
CommitLineData
94dc8ee9
AM
1diff -urN linux-2.4.22/mm/mmap.c linux-2.4.23/mm/mmap.c
2--- linux-2.4.22/mm/mmap.c 2003-06-13 07:51:39.000000000 -0700
3+++ linux-2.4.23/mm/mmap.c 2003-11-28 10:26:21.000000000 -0800
4@@ -1041,6 +1041,9 @@
5 if (!len)
6 return addr;
7
8+ if ((addr + len) > TASK_SIZE || (addr + len) < addr)
9+ return -EINVAL;
10+
11 /*
12 * mlock MCL_FUTURE?
13 */
14
This page took 0.046224 seconds and 4 git commands to generate.