Skip to contentSkip to conversation

vmx-x86_64-show_stack.patch

PATCH New Leendert van Doorn 1 participant 1 message Sep 11, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vmx-x86_64-show_stack.patch

domain_crash_synchronous() on x86_64 causes Xen to crash because it tries to dereference an invalid stack address. The patch below fixes this. The patch also updates show_registers() to print the same information as its x86_32 equivalent.

xen/arch/x86/traps.c +1 -1
diff -r 3feb7fa331ed xen/arch/x86/traps.c
@@ -106,7 +106,7 @@
 #define ESP_BEFORE_EXCEPTION(regs) ((unsigned long *)&regs->esp)
 #else
 #define stack_words_per_line 4
-#define ESP_BEFORE_EXCEPTION(regs) ((unsigned long *)regs->esp)
+#define ESP_BEFORE_EXCEPTION(regs) ((unsigned long *)&regs->rsp)
 #endif
 
 int is_kernel_text(unsigned long addr)
xen/arch/x86/x86_64/traps.c +41 -5

66 lines not on this page · raw message