Skip to contentSkip to conversation

: Check that TASK_SIZE does not overlap KERNEL_START

PATCH In review Rune Torgersen 2 participants 2 messages May 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : 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 Rune Torgersen <[email protected]>

include/asm-powerpc/processor.h +4 -0
index fd98ca9..72e0e3f 100644
@@ -81,6 +81,10 @@ extern struct task_struct *last_task_used_altivec;
 extern struct task_struct *last_task_used_spe;
 
 #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)
 
 /* This decides where the kernel will search for a free chunk of vm
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Rune Torgersen

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 Rune Torgersen <[email protected]>

you seem to have lost a colon.

- k