From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH] s390: show_task oops fix
Date: Fri, 13 Jan 2006 13:24:21 +0100 [thread overview]
Message-ID: <20060113122421.GB8268@osiris.boeblingen.de.ibm.com> (raw)
In-Reply-To: <1137141942.6192.5.camel@localhost.localdomain>
From: Heiko Carstens <heiko.carstens@de.ibm.com>
Use new stack page accessors as pointed out by Andrew Morton.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
arch/s390/kernel/process.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff -urN a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c
--- a/arch/s390/kernel/process.c 2006-01-13 12:15:44.000000000 +0100
+++ b/arch/s390/kernel/process.c 2006-01-13 12:43:32.000000000 +0100
@@ -60,11 +60,10 @@
{
struct stack_frame *sf, *low, *high;
- if (!tsk || !tsk->thread_info)
+ if (!tsk || !task_stack_page(tsk))
return 0;
- low = (struct stack_frame *) tsk->thread_info;
- high = (struct stack_frame *)
- ((unsigned long) tsk->thread_info + THREAD_SIZE) - 1;
+ low = task_stack_page(tsk);
+ high = (struct stack_frame *) task_pt_regs(tsk);
sf = (struct stack_frame *) (tsk->thread.ksp & PSW_ADDR_INSN);
if (sf <= low || sf > high)
return 0;
prev parent reply other threads:[~2006-01-13 12:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-12 17:15 [patch 5/13] s390: show_task oops Martin Schwidefsky
2006-01-13 0:58 ` Andrew Morton
2006-01-13 8:45 ` Martin Schwidefsky
2006-01-13 12:24 ` Heiko Carstens [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=20060113122421.GB8268@osiris.boeblingen.de.ibm.com \
--to=heiko.carstens@de.ibm.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=schwidefsky@de.ibm.com \
/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
all inboxes | Powered by JetHome®