Commit 1a023cec authored by Russell King's avatar Russell King

[ARM] Deny user space mappings in first page even on hi-vec CPUs

Don't allow user space mappings in the first page even if we are
using high vectors - this may prevent BUG() from working, as well
as allowing kernel NULL pointer derefs to be silently ignored.
parent 2440e271
......@@ -56,7 +56,7 @@ asmlinkage int sys_pipe(unsigned long __user *fildes)
* mapping to be mapped at. This is particularly important for
* non-high vector CPUs.
*/
#define MIN_MAP_ADDR (vectors_high() ? 0 : PAGE_SIZE)
#define MIN_MAP_ADDR (PAGE_SIZE)
/* common code for old and new mmaps */
inline long do_mmap2(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment