Commit 7bad0e6d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc32 stack bounds checking

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.
parent 34f77ac0
...@@ -83,7 +83,7 @@ kernel_stack_top(struct task_struct *tsk) ...@@ -83,7 +83,7 @@ kernel_stack_top(struct task_struct *tsk)
unsigned long unsigned long
task_top(struct task_struct *tsk) 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 */ /* check to make sure the kernel stack is healthy */
......
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