public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: linux-kernel@vger.kernel.org
Subject: [5/5] sparc32 stack bounds checking
Date: Fri, 16 Apr 2004 22:40:57 -0700	[thread overview]
Message-ID: <20040417054057.GA743@holomorphy.com> (raw)
In-Reply-To: <20040417053957.GZ743@holomorphy.com>

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;

      reply	other threads:[~2004-04-17  5:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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         ` William Lee Irwin III [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040417054057.GA743@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox