Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2567224yba; Mon, 6 May 2019 08:06:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDHDb25blKiBcr+263zoDs3mIQuqmx02WID/EzFzy2vi0ihW4ZJ5d9DejIY6woaVOuyAkl X-Received: by 2002:a17:902:8bca:: with SMTP id r10mr32888449plo.67.1557155210524; Mon, 06 May 2019 08:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557155210; cv=none; d=google.com; s=arc-20160816; b=DCEdvrMZm2iUe+pBqSiUmpRlnGzWUkKvk+zdArrfwI/p71lRDKrrvR8QDMBkymSa0H xwsvOarcvT4HB2pMDT3jC5bXsX1rUGp6swZKF3+fv4NXw447GzP9kezpKFP7QdHUKi/j 0+QbkwpmgTwxa0fT8y0RkceKzxInqhixLjBgmCB/fjKPZv7SG2mdUFlUGc69prqN8dIX +g4Qd88Btk1e6Evu0veXUo3aAyzLWP6NdfPnFq9wTF73yyA47NqZra7Mgpe0WzaxbWR0 FK+9In0MN70S1sL4/jbfjXNOo/BooRHNCjInpAg2mGTOWY3SyK5eYVZd79zsNwhafQUt pNlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=t9d0fegab6zzHGJqwa7c9SAsnkfDZB9sJd4vIGlaxr0=; b=IhPIRkO+gbLjElzTOQs5ooVf1DVeu+s41PH+aIUXVhK8t/TPLbHaGJ4GU6QCAV/qjt oF3G5UBzad2cAPvKuqqMWxcK9MH30llgFbFmwBuu36ed7wwYOxSpyf8UfeW+miumrQpP xRy2MKsO9+dAI7Vj8iHv1+yjHkYw0uN98MykdVhthAOWrlHJ+0UEXW3I/X/neKUMjKL3 YiQ3cmJh8uznFL0fqiWHzeZSWpPvxTrv0KYpCcQam8OPXh0agVmMZzFUcbh4fnMXaufZ q0MNz7l/STaKwNjP0sbOyhuzTsjmP3hUzLyFFu3iqmedUMH+g6sZTQ85z/zu9ujlc6de 0N5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nrEG4t7M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l10si14019070pgq.334.2019.05.06.08.06.33; Mon, 06 May 2019 08:06:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nrEG4t7M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727629AbfEFOib (ORCPT + 99 others); Mon, 6 May 2019 10:38:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:59574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727089AbfEFOi3 (ORCPT ); Mon, 6 May 2019 10:38:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 95FB320449; Mon, 6 May 2019 14:38:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153509; bh=Se1UYjdv/oxKz9idkt8C+cBvkrjTu635luiJ9L5APx8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nrEG4t7MPVD7osJuAtjJfoL8gm9AovLfXn0mK6GFdEasFIAdnDanRibrivKy+5tAS iYOmMhaLQVRC8dS1DJJ4SLzmjb5hao5PW5iJbKHIbTi53mdRDwS0avH2vyu7nVP1cx 5wX9i7Ku2C6lEMbFVAfB7HFD2Mtrr02EDJrFEOeM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tony Luck , Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Pu Wen , Thomas Gleixner , x86-ml Subject: [PATCH 5.0 116/122] x86/mce: Improve error message when kernel cannot recover, p2 Date: Mon, 6 May 2019 16:32:54 +0200 Message-Id: <20190506143104.790501326@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143054.670334917@linuxfoundation.org> References: <20190506143054.670334917@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tony Luck commit 41f035a86b5b72a4f947c38e94239d20d595352a upstream. In c7d606f560e4 ("x86/mce: Improve error message when kernel cannot recover") a case was added for a machine check caused by a DATA access to poison memory from the kernel. A case should have been added also for an uncorrectable error during an instruction fetch in the kernel. Add that extra case so the error message now reads: mce: [Hardware Error]: Machine check: Instruction fetch error in kernel Fixes: c7d606f560e4 ("x86/mce: Improve error message when kernel cannot recover") Signed-off-by: Tony Luck Signed-off-by: Borislav Petkov Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Pu Wen Cc: Thomas Gleixner Cc: x86-ml Link: https://lkml.kernel.org/r/20190225205940.15226-1-tony.luck@intel.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/cpu/mce/severity.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/arch/x86/kernel/cpu/mce/severity.c +++ b/arch/x86/kernel/cpu/mce/severity.c @@ -165,6 +165,11 @@ static struct severity { SER, MASK(MCI_STATUS_OVER|MCI_UC_SAR|MCI_ADDR|MCACOD, MCI_UC_SAR|MCI_ADDR|MCACOD_DATA), KERNEL ), + MCESEV( + PANIC, "Instruction fetch error in kernel", + SER, MASK(MCI_STATUS_OVER|MCI_UC_SAR|MCI_ADDR|MCACOD, MCI_UC_SAR|MCI_ADDR|MCACOD_INSTR), + KERNEL + ), #endif MCESEV( PANIC, "Action required: unknown MCACOD",