Messages in this thread Patch in this message | | | Date | Fri, 16 Apr 2004 22:37:12 -0700 | From | William Lee Irwin III <> | Subject | [1/5] h8300 stack bounds checking |
| |
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]; - 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/
| |