lkml.org 
[lkml]   [2004]   [Apr]   [17]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateFri, 16 Apr 2004 22:39:57 -0700
FromWilliam Lee Irwin III <>
Subject[4/5] ppc32 stack bounds checking
Index: wli-2.6.5-mm6/arch/ppc/kernel/process.c
===================================================================
--- wli-2.6.5-mm6.orig/arch/ppc/kernel/process.c	2004-04-14 23:21:03.000000000 -0700
+++ wli-2.6.5-mm6/arch/ppc/kernel/process.c	2004-04-16 10:40:04.000000000 -0700
@@ -83,7 +83,7 @@
 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 */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:02    [from the cache]
©2003-2008