[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86 mce: Fix panic in mcheck_mca_logout
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1253003141 -3600 # Node ID 56595ee2720aded81ff3690948be5bcffe2b562c # Parent 5eb18970469000dc6636c4839dd071b56cfd9abd x86 mce: Fix panic in mcheck_mca_logout I met the following panic message in mcheck_mca_logout(). MSR_IA32_MCi_ADDR might take the values other than the machine address. FATAL PAGE FAULT occured when the non-existent address is passed to maddr_get_owner(). Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx> --- xen/arch/x86/cpu/mcheck/mce.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff -r 5eb189704690 -r 56595ee2720a xen/arch/x86/cpu/mcheck/mce.c --- a/xen/arch/x86/cpu/mcheck/mce.c Tue Sep 15 09:24:59 2009 +0100 +++ b/xen/arch/x86/cpu/mcheck/mce.c Tue Sep 15 09:25:41 2009 +0100 @@ -237,10 +237,12 @@ mctelem_cookie_t mcheck_mca_logout(enum if (status & MCi_STATUS_ADDRV) { mca_rdmsrl(MSR_IA32_MC0_ADDR + 4 * i, addr); - d = maddr_get_owner(addr); - if (d != NULL && (who == MCA_POLLER || - who == MCA_CMCI_HANDLER)) - mcb.mc_domid = d->domain_id; + if (mfn_valid(paddr_to_pfn(addr))) { + d = maddr_get_owner(addr); + if (d != NULL && (who == MCA_POLLER || + who == MCA_CMCI_HANDLER)) + mcb.mc_domid = d->domain_id; + } } if (status & MCi_STATUS_MISCV) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |