Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2635923pxa; Mon, 17 Aug 2020 15:04:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRCH7X4wRuuH0Os2EIO4yulX1tlpJL9s+A2LBod2CaP1L5kUzGNyQvRP4dA5dyIpc4NIE3 X-Received: by 2002:a05:6402:206d:: with SMTP id bd13mr17294839edb.57.1597701896677; Mon, 17 Aug 2020 15:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597701896; cv=none; d=google.com; s=arc-20160816; b=K8TvSnJ5ZYngSBzjDsHLC2uio3jDUF3swRIfJENcEyTMjb3R7BhFRUqQybbaPpH6Zj phltxehVXw9fuhTvuxs5Tq5VNRdtxRkczCqbUOcIk2+W7HySxm+eCZGhqXBCDzrT5Xgh wpnKCMxXtAaBaOgZtuEaN8ty/6gEJX8ci0PpB6KpeqioPpkUTiZ5ufshUxNPIE2wC0j9 3Va80BKq5JwTiGbAcy7T3iseu9+KAD3cckEQ0PZYgqdQop1I4hf5oxlOBUym4p+wVRlp AxhcI7Jz2D/YmUQmOQQfUIBkQn14NJRN6iSAt7fw9ukktOkeJariO+UrVeEU0fmQqWBi P2Ag== 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=syn6LTidJmSFeTTZ/fRCWUMHNe5s8rIP0SswDoGHfoM=; b=VmMzebfr8kKS4oINMdKHnQ3jaiwK3udfDid+Ph/kscHjWgoUXmIT7xi4rlzvsgwGRG l3Gll0Fq4LPA53pAs9opmFEoUJ4tk7XmBdGJzulxvzPiP3pQ5Yr8dUXggr4cVCAPCLbW 1B2yGIp6PjTXNtUMil7yy0L7m894xbk66orLYS6qZrTJEcIAnkNVgBniEe2zBXyEJeHu CT44DJ5GSyhhTR+u/4RWw7NtkVc0+L7R5nBg9TcKkTY9gbrvedgS5PSnzQmh6DmKdtzr u4GXrK/p4w5tZsxYeVLV4LQRul0izs+PtCO5wB/L7uy4FXpsHuu16NNLjGnC+i/u8ry/ ve3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W3JpVuW1; 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 h14si12180457eja.174.2020.08.17.15.04.33; Mon, 17 Aug 2020 15:04:56 -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=W3JpVuW1; 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 S2387977AbgHQPyT (ORCPT + 99 others); Mon, 17 Aug 2020 11:54:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:51150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730745AbgHQPla (ORCPT ); Mon, 17 Aug 2020 11:41:30 -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 EFDD620825; Mon, 17 Aug 2020 15:41:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597678889; bh=xfYaG1bsvUo5UvyrUtAI4ovzdgEKIRkl9oapADRDFIg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W3JpVuW1fethkkpZawUhH8chJmljX/K8tgOlpUvdfqHR2SQvsx4GfIX34YHAN9l5E Pm7P0+B+1Q0Ft0JrDq7ieAre1J88smOrnR/TpAHopCtk1aekMbwGimtlIJ/rNAf0vq NKm5BcsSTA9/uol9h7twfIpH9Nd8TGJXpDNSzsOU= 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.7 006/393] x86/mce/inject: Fix a wrong assignment of i_mce.status Date: Mon, 17 Aug 2020 17:10:56 +0200 Message-Id: <20200817143819.899419295@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143819.579311991@linuxfoundation.org> References: <20200817143819.579311991@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 3413b41b8d55f..dc28a615e340f 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