]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc32 stack bounds checking
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Apr 2004 05:07:19 +0000 (22:07 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 19 Apr 2004 05:07:19 +0000 (22:07 -0700)
From: William Lee Irwin III <wli@holomorphy.com>

The stack is now shared with struct thread_info on most arches, not task_t.
This mostly affects get_wchan() and stack usage debug.

arch/ppc/kernel/process.c

index 3363a030e00f27f9dfdf4e84cdf54340788725c1..767aee8895c3f110c54e86366f032b0a4eb26159 100644 (file)
@@ -83,7 +83,7 @@ kernel_stack_top(struct task_struct *tsk)
 unsigned long
 task_top(struct task_struct *tsk)
 {
-       return ((unsigned long)tsk) + sizeof(struct task_struct);
+       return ((unsigned long)tsk) + sizeof(struct thread_info);
 }
 
 /* check to make sure the kernel stack is healthy */