From: Jan Blunck <jblunck@suse.de>
To: Robert Fitzsimons <robfitz@273k.net>
Cc: linux-kernel@vger.kernel.org, Andi Kleen <ak@suse.de>,
Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
akpm@linux-foundation.org
Subject: Re: oops in oprofile/dump_trace/X86 with 2.6.24-rcX
Date: Fri, 9 Nov 2007 22:30:10 +0100 [thread overview]
Message-ID: <20071109213010.GJ18693@hasse.suse.de> (raw)
In-Reply-To: <20071108014527.GA2474@localhost>
On Thu, Nov 08, Robert Fitzsimons wrote:
> A couple of days ago I tried to use oprofile with a recent build of
> 2.6.24-rc1, this resulted in a oops 'BUG: unable to handle kernel paging
> request at virtual address'.
Sorry,
this only happens 32bit. Somehow I broke this when I introduced
stack_pointer(). Here is a patch that fixes the problem.
Thanks,
Jan
--
Subject: oprofile: Fix oops on x86 32-bit
x86 32-bit isn't saving the stack pointer to pt_regs->esp on when an
interrupt occures.
Signed-off-by: Jan Blunck <jblunck@suse.de>
---
include/asm-x86/ptrace.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/include/asm-x86/ptrace.h
===================================================================
--- a/include/asm-x86/ptrace.h
+++ b/include/asm-x86/ptrace.h
@@ -60,7 +60,7 @@ static inline int v8086_mode(struct pt_r
#define instruction_pointer(regs) ((regs)->eip)
#define frame_pointer(regs) ((regs)->ebp)
-#define stack_pointer(regs) ((regs)->esp)
+#define stack_pointer(regs) ((unsigned long)(regs))
#define regs_return_value(regs) ((regs)->eax)
extern unsigned long profile_pc(struct pt_regs *regs);
next prev parent reply other threads:[~2007-11-09 21:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-08 1:45 oops in oprofile/dump_trace/X86 with 2.6.24-rcX Robert Fitzsimons
2007-11-08 18:54 ` Andrew Morton
2007-11-09 0:53 ` Robert Fitzsimons
2007-11-09 11:42 ` Philippe Elie
2007-11-09 21:30 ` Jan Blunck [this message]
2007-11-09 22:55 ` Robert Fitzsimons
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=20071109213010.GJ18693@hasse.suse.de \
--to=jblunck@suse.de \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=robfitz@273k.net \
--cc=tglx@linutronix.de \
/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