linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]: Check that TASK_SIZE does not overlap KERNEL_START
@ 2008-05-23 15:59 Rune Torgersen
  2008-05-23 17:55 ` Kumar Gala
  0 siblings, 1 reply; 2+ messages in thread
From: Rune Torgersen @ 2008-05-23 15:59 UTC (permalink / raw)
  To: linuxppc-dev

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 <runet@innovsys.com>

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH]: Check that TASK_SIZE does not overlap KERNEL_START
  2008-05-23 15:59 [PATCH]: Check that TASK_SIZE does not overlap KERNEL_START Rune Torgersen
@ 2008-05-23 17:55 ` Kumar Gala
  0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2008-05-23 17:55 UTC (permalink / raw)
  To: Rune Torgersen; +Cc: linuxppc-dev


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 <runet@innovsys.com>

you seem to have lost a colon.

Acked-by: Kumar Gala <galak@kernel.crashing.org>

- k

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-23 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23 15:59 [PATCH]: Check that TASK_SIZE does not overlap KERNEL_START Rune Torgersen
2008-05-23 17:55 ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).