[PATCH]: Check that TASK_SIZE does not overlap KERNEL_START

Subsystems: the rest · Maintainer: Linus Torvalds

STALE6731d

2 messages, 2 authors, 2008-05-23 · open the first message on its own page

[PATCH]: Check that TASK_SIZE does not overlap KERNEL_START

From: Rune Torgersen <hidden>
Date: 2008-05-23 15:58:29

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 [off-list ref]
diff --git a/include/asm-powerpc/processor.h b/include/asm-powerpc/processor.h
index fd98ca9..72e0e3f 100644
--- a/include/asm-powerpc/processor.h
+++ b/include/asm-powerpc/processor.h
@@ -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

Re: [PATCH]: Check that TASK_SIZE does not overlap KERNEL_START

From: Kumar Gala <hidden>
Date: 2008-05-23 17:56:13

On May 23, 2008, at 10:59 AM, Rune Torgersen wrote:
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 [off-list ref]
you seem to have lost a colon.

Acked-by: Kumar Gala <redacted>

- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help