vmx-x86_64-show_stack.patch
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.
Signed-off-by Leendert van Doorn <[email protected]>
xen/arch/x86/traps.c +1 -1
@@ -106,7 +106,7 @@#define ESP_BEFORE_EXCEPTION (regs) ((unsigned long *)®s->esp)#else #define stack_words_per_line 4 -#define ESP_BEFORE_EXCEPTION (regs) ((unsigned long *)regs->esp) +#define ESP_BEFORE_EXCEPTION (regs) ((unsigned long *)®s->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