From: Keir Fraser Date: Fri, 16 Jan 2009 11:46:51 +0000 (+0000) Subject: ptrace_core: Handle FV cross-bitness. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14014^2~53 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fb9dda3e061cca44a6d87ee51bcddc006cd158a9;p=xen.git ptrace_core: Handle FV cross-bitness. Signed-off-by: Bruce Rogers --- diff --git a/tools/libxc/xc_ptrace_core.c b/tools/libxc/xc_ptrace_core.c index d4bd6bcb15..1e8dfe0535 100644 --- a/tools/libxc/xc_ptrace_core.c +++ b/tools/libxc/xc_ptrace_core.c @@ -540,7 +540,9 @@ xc_waitdomain_core_elf( XEN_ELFNOTE_DUMPCORE_XEN_VERSION, (void**)&xen_version) < 0) goto out; - if (xen_version->xen_version.pagesize != PAGE_SIZE) + /* shifted case covers 32 bit FV guest core file created on 64 bit Dom0 */ + if (xen_version->xen_version.pagesize != PAGE_SIZE && + (xen_version->xen_version.pagesize >> 32) != PAGE_SIZE) goto out; /* .note.Xen: format_version */