Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2517513pxa; Mon, 17 Aug 2020 11:36:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTJp7rYPafFr9wzjBHYx8TDGvRFPtwvUi6tIev6yUSb6Fm8kRnhD0j5MxvkKmg1hOsXJiL X-Received: by 2002:aa7:c6ce:: with SMTP id b14mr17148774eds.208.1597689396567; Mon, 17 Aug 2020 11:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597689396; cv=none; d=google.com; s=arc-20160816; b=g2Ln+ikAnJdq+3Vn2UIzJWrKyr/Xzx+CnrhsY/T9cC2PEsmGNmBZfo888Z98d+FTaT GGShB0ODtGQywMD01J6yfwCIFDTtN1EaDEbrxM4hXk0Kp0+cUd7KN3JeDxT+VKW7GNiM lVkc0ZwO8dur/MR7YTlG3z2exKOabqcq4RsT2Jsfb+X51eoF5KhKsUFGmg2IlkOk7ZWo kZK3WiO2k5CgA83Uh3535UE65pqzkOSyDkKhrAOSBDWOl6lrKoCRlfa2a4ehx8b9RPcO Lfj0EcY7YaXNRb47vM474K+HbGkc9oZjIWCBBAJWbmoG+LAoAmrGfmb+MwNAHItsaymu NUTA== 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=ew6Ka1J6dBgFlAhn2Z9AIeNKhxtVIj5cmU/GZz4bzko=; b=Sw4c4LpBYNG7ZxZnXMEmgmY3c6t+0PLqfKH7ZJnevSFdYko/2g5kOFFIkq+XgIvZBc Bs0cuFBtIYSgnACM6d3f02CJuqaWIYkilvzL+HnWplYv56BHSH7fbwofN/YjgPuXmnk+ XkhoNwt40gmqBO0F/UEv5e1Cl3bp0Kc+WbA6DokyJtA3qPRVb4NgucDb4iiLEALTu9nT kqxiwaH39WsW0Sr4xBTIWsmHP+ZhCQjCfbbiYrxGaACr2nmg6sC/M0IxleQJr536bk7c Msxw7IvvYze1zE+VHoLRKr0s465AC8NZg7pG193TNhYfQMPB/VRLk+UsUATrNsN+FKw8 J4hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y4gzOLbL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh13si11632640ejb.3.2020.08.17.11.36.13; Mon, 17 Aug 2020 11:36:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y4gzOLbL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391170AbgHQSc7 (ORCPT + 99 others); Mon, 17 Aug 2020 14:32:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:48102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387520AbgHQQAl (ORCPT ); Mon, 17 Aug 2020 12:00:41 -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 C615320748; Mon, 17 Aug 2020 16:00:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680040; bh=BHwwznOHRXqH0/INcL7kGleLn2SPdbjSB+EJBL7s76U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y4gzOLbL9/PHKgtaW6NrLSDWwSlnxW4renHVUHfC8umpShpAe1PJSwupdoXZGG0br XoPe6NrcGGiRt2KkxmY7Let+zWZWas61g+515PJbEqbZayx5wm8FaF83QmayTFTpGv 79Oif5BF17tvPk1XYQ3IterL6Oip5/SUcm6hPKx0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zhenzhong Duan , Borislav Petkov , Yazen Ghannam , Sasha Levin Subject: [PATCH 5.4 006/270] x86/mce/inject: Fix a wrong assignment of i_mce.status Date: Mon, 17 Aug 2020 17:13:27 +0200 Message-Id: <20200817143756.124889534@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@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: Zhenzhong Duan [ Upstream commit 5d7f7d1d5e01c22894dee7c9c9266500478dca99 ] The original code is a nop as i_mce.status is or'ed with part of itself, fix it. Fixes: a1300e505297 ("x86/ras/mce_amd_inj: Trigger deferred and thresholding errors interrupts") Signed-off-by: Zhenzhong Duan Signed-off-by: Borislav Petkov Acked-by: Yazen Ghannam Link: https://lkml.kernel.org/r/20200611023238.3830-1-zhenzhong.duan@gmail.com Signed-off-by: Sasha Levin --- arch/x86/kernel/cpu/mce/inject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mce/inject.c b/arch/x86/kernel/cpu/mce/inject.c index 1f30117b24ba7..eb2d41c1816d6 100644 --- a/arch/x86/kernel/cpu/mce/inject.c +++ b/arch/x86/kernel/cpu/mce/inject.c @@ -511,7 +511,7 @@ static void do_inject(void) */ if (inj_type == DFR_INT_INJ) { i_mce.status |= MCI_STATUS_DEFERRED; - i_mce.status |= (i_mce.status & ~MCI_STATUS_UC); + i_mce.status &= ~MCI_STATUS_UC; } /* -- 2.25.1