Commit 7c4f10b9 authored by Rune Torgersen's avatar Rune Torgersen Committed by Paul Mackerras

powerpc: Check that TASK_SIZE does not overlap KERNEL_START

Make sure CONFIG_TASK_SIZE does not overlap CONFIG_KERNEL_START
This could happen when overriding settings to get 1GB lowmem, and would lead
to userland mysteriousely hanging.

This setting is only used by PPC32.
Signed-off-by: default avatarRune Torgersen <runet@innovsys.com>
Acked-by: default avatarKumar Gala <galak@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent cec0dd94
...@@ -81,6 +81,10 @@ extern struct task_struct *last_task_used_altivec; ...@@ -81,6 +81,10 @@ extern struct task_struct *last_task_used_altivec;
extern struct task_struct *last_task_used_spe; extern struct task_struct *last_task_used_spe;
#ifdef CONFIG_PPC32 #ifdef CONFIG_PPC32
#if CONFIG_TASK_SIZE > CONFIG_KERNEL_START
#error User TASK_SIZE overlaps with KERNEL_START address
#endif
#define TASK_SIZE (CONFIG_TASK_SIZE) #define TASK_SIZE (CONFIG_TASK_SIZE)
/* This decides where the kernel will search for a free chunk of vm /* This decides where the kernel will search for a free chunk of vm
......
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