* [0/5] stack bounds checking
@ 2004-04-17 5:35 William Lee Irwin III
2004-04-17 5:37 ` [1/5] h8300 " William Lee Irwin III
0 siblings, 1 reply; 6+ messages in thread
From: William Lee Irwin III @ 2004-04-17 5:35 UTC (permalink / raw)
To: linux-kernel
The stack is now shared with struct thread_info on most arches, not
task_t. This patch series attempts to sweep up the remaining arches in
need of updates. This mostly affects get_wchan() and stack usage debug.
-- wli
^ permalink raw reply [flat|nested] 6+ messages in thread
* [1/5] h8300 stack bounds checking
2004-04-17 5:35 [0/5] stack bounds checking William Lee Irwin III
@ 2004-04-17 5:37 ` William Lee Irwin III
2004-04-17 5:38 ` [2/5] m68k " William Lee Irwin III
0 siblings, 1 reply; 6+ messages in thread
From: William Lee Irwin III @ 2004-04-17 5:37 UTC (permalink / raw)
To: linux-kernel
Index: wli-2.6.5-mm6/arch/h8300/kernel/process.c
===================================================================
--- wli-2.6.5-mm6.orig/arch/h8300/kernel/process.c 2004-04-14 23:21:01.000000000 -0700
+++ wli-2.6.5-mm6/arch/h8300/kernel/process.c 2004-04-16 10:41:39.000000000 -0700
@@ -277,7 +277,7 @@
stack_page = (unsigned long)p;
fp = ((struct pt_regs *)p->thread.ksp)->er6;
do {
- if (fp < stack_page+sizeof(struct task_struct) ||
+ if (fp < stack_page+sizeof(struct thread_info) ||
fp >= 8184+stack_page)
return 0;
pc = ((unsigned long *)fp)[1];
^ permalink raw reply [flat|nested] 6+ messages in thread
* [2/5] m68k stack bounds checking
2004-04-17 5:37 ` [1/5] h8300 " William Lee Irwin III
@ 2004-04-17 5:38 ` William Lee Irwin III
2004-04-17 5:39 ` [3/5] m68knommu " William Lee Irwin III
0 siblings, 1 reply; 6+ messages in thread
From: William Lee Irwin III @ 2004-04-17 5:38 UTC (permalink / raw)
To: linux-kernel
Index: wli-2.6.5-mm6/arch/m68k/kernel/process.c
===================================================================
--- wli-2.6.5-mm6.orig/arch/m68k/kernel/process.c 2004-04-14 23:21:02.000000000 -0700
+++ wli-2.6.5-mm6/arch/m68k/kernel/process.c 2004-04-16 10:41:07.000000000 -0700
@@ -392,7 +392,7 @@
stack_page = (unsigned long)(p->thread_info);
fp = ((struct switch_stack *)p->thread.ksp)->a6;
do {
- if (fp < stack_page+sizeof(struct task_struct) ||
+ if (fp < stack_page+sizeof(struct thread_info) ||
fp >= 8184+stack_page)
return 0;
pc = ((unsigned long *)fp)[1];
^ permalink raw reply [flat|nested] 6+ messages in thread
* [3/5] m68knommu stack bounds checking
2004-04-17 5:38 ` [2/5] m68k " William Lee Irwin III
@ 2004-04-17 5:39 ` William Lee Irwin III
2004-04-17 5:39 ` [4/5] ppc32 " William Lee Irwin III
0 siblings, 1 reply; 6+ messages in thread
From: William Lee Irwin III @ 2004-04-17 5:39 UTC (permalink / raw)
To: linux-kernel
Index: wli-2.6.5-mm6/arch/m68knommu/kernel/process.c
===================================================================
--- wli-2.6.5-mm6.orig/arch/m68knommu/kernel/process.c 2004-04-14 23:21:02.000000000 -0700
+++ wli-2.6.5-mm6/arch/m68knommu/kernel/process.c 2004-04-16 10:40:35.000000000 -0700
@@ -415,7 +415,7 @@
stack_page = (unsigned long)p;
fp = ((struct switch_stack *)p->thread.ksp)->a6;
do {
- if (fp < stack_page+sizeof(struct task_struct) ||
+ if (fp < stack_page+sizeof(struct thread_info) ||
fp >= 8184+stack_page)
return 0;
pc = ((unsigned long *)fp)[1];
^ permalink raw reply [flat|nested] 6+ messages in thread
* [4/5] ppc32 stack bounds checking
2004-04-17 5:39 ` [3/5] m68knommu " William Lee Irwin III
@ 2004-04-17 5:39 ` William Lee Irwin III
2004-04-17 5:40 ` [5/5] sparc32 " William Lee Irwin III
0 siblings, 1 reply; 6+ messages in thread
From: William Lee Irwin III @ 2004-04-17 5:39 UTC (permalink / raw)
To: linux-kernel
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 */
^ permalink raw reply [flat|nested] 6+ messages in thread
* [5/5] sparc32 stack bounds checking
2004-04-17 5:39 ` [4/5] ppc32 " William Lee Irwin III
@ 2004-04-17 5:40 ` William Lee Irwin III
0 siblings, 0 replies; 6+ messages in thread
From: William Lee Irwin III @ 2004-04-17 5:40 UTC (permalink / raw)
To: linux-kernel
Index: wli-2.6.5-mm6/arch/sparc/kernel/process.c
===================================================================
--- wli-2.6.5-mm6.orig/arch/sparc/kernel/process.c 2004-04-14 23:21:03.000000000 -0700
+++ wli-2.6.5-mm6/arch/sparc/kernel/process.c 2004-04-16 10:38:51.000000000 -0700
@@ -318,7 +318,7 @@
fp = (unsigned long) _ksp;
do {
/* Bogus frame pointer? */
- if (fp < (task_base + sizeof(struct task_struct)) ||
+ if (fp < (task_base + sizeof(struct thread_info)) ||
fp >= (task_base + (PAGE_SIZE << 1)))
break;
rw = (struct reg_window *) fp;
@@ -710,7 +710,7 @@
fp = task->thread_info->ksp + bias;
do {
/* Bogus frame pointer? */
- if (fp < (task_base + sizeof(struct task_struct)) ||
+ if (fp < (task_base + sizeof(struct thread_info)) ||
fp >= (task_base + (2 * PAGE_SIZE)))
break;
rw = (struct reg_window *) fp;
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-04-17 5:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-17 5:35 [0/5] stack bounds checking William Lee Irwin III
2004-04-17 5:37 ` [1/5] h8300 " William Lee Irwin III
2004-04-17 5:38 ` [2/5] m68k " William Lee Irwin III
2004-04-17 5:39 ` [3/5] m68knommu " William Lee Irwin III
2004-04-17 5:39 ` [4/5] ppc32 " William Lee Irwin III
2004-04-17 5:40 ` [5/5] sparc32 " William Lee Irwin III
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.