summaryrefslogtreecommitdiff
path: root/arch/x86_64
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-09-26 08:52:38 (GMT)
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 08:52:38 (GMT)
commite8c7391de4cd91b2cbb0c791f69ba1e066595848 (patch)
tree47d55aab3429321e346e2e9dec439d9fff4554d1 /arch/x86_64
parent3566561bfadffcb5dbc85d576be80c0dbf2cccc9 (diff)
downloadlinux-e8c7391de4cd91b2cbb0c791f69ba1e066595848.tar.xz
[PATCH] Don't use kernel_text_address in oops context
Because it can take spinlocks. Suggested by Mathieu Desnoyers Cc: Mathieu Desnoyers <compudj@krystal.dyndns.org> Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/kernel/traps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index fb8486e..01f2a8d 100644
--- a/arch/x86_64/kernel/traps.c
+++ b/arch/x86_64/kernel/traps.c
@@ -299,7 +299,9 @@ void dump_trace(struct task_struct *tsk, struct pt_regs *regs, unsigned long * s
#define HANDLE_STACK(cond) \
do while (cond) { \
unsigned long addr = *stack++; \
- if (kernel_text_address(addr)) { \
+ if (oops_in_progress ? \
+ __kernel_text_address(addr) : \
+ kernel_text_address(addr)) { \
/* \
* If the address is either in the text segment of the \
* kernel, or in the region which contains vmalloc'ed \