From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751420AbdAWSBz (ORCPT ); Mon, 23 Jan 2017 13:01:55 -0500 Received: from mga06.intel.com ([134.134.136.31]:28896 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbdAWSBy (ORCPT ); Mon, 23 Jan 2017 13:01:54 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,275,1477983600"; d="scan'208";a="1086364221" Date: Mon, 23 Jan 2017 10:01:53 -0800 From: "Luck, Tony" To: Borislav Petkov Cc: xlpang@redhat.com, x86@kernel.org, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, Ingo Molnar , Dave Young , Prarit Bhargava , Junichi Nomura , Kiyoshi Ueda , Naoya Horiguchi Subject: Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic Message-ID: <20170123180153.GA5646@intel.com> References: <1485158511-22374-1-git-send-email-xlpang@redhat.com> <20170123125157.u2kefedwpvgcdyfo@pd.tnic> <588606B9.3070604@redhat.com> <20170123145056.fyraeehjfnwmmfb6@pd.tnic> <20170123174008.GA4945@intel.com> <20170123175130.l7c7mnmu74ln5v6h@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170123175130.l7c7mnmu74ln5v6h@pd.tnic> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 23, 2017 at 06:51:30PM +0100, Borislav Petkov wrote: > Hey Tony, > > a "welcome back" is in order? :-) Yes - first day back today. Lots of catching up to do. > And apparently crash knows about poisoned pages and handles them: > > static int __init crash_save_vmcoreinfo_init(void) > { > ... > #ifdef CONFIG_MEMORY_FAILURE > VMCOREINFO_NUMBER(PG_hwpoison); > #endif > > so if that works, the kexeced kernel should know about that list. Oh good ... it is smarter than I thought. > Doesn't matter, right? The new copy is as clueless as the old one about > those MCEs. If things are well enough initialized that we don't reset, and get to do_machine_check(), then this code from Ashok: /* If this CPU is offline, just bail out. */ if (cpu_is_offline(smp_processor_id())) { u64 mcgstatus; mcgstatus = mce_rdmsrl(MSR_IA32_MCG_STATUS); if (mcgstatus & MCG_STATUS_RIPV) { mce_wrmsrl(MSR_IA32_MCG_STATUS, 0); return; } } will ignore the machine check on the other cpus ... assuming that "cpu_is_offline(smp_processor_id())" does the right thing in the kexec case where this is an "old" cpu that isn't online in the new kernel. -Tony