Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2652561pxa; Mon, 17 Aug 2020 15:34:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRmJEk3faEe7QcFEotDwgSQJp/jSdLrIqjW+1d9JqwrVTgJdrDSkhSvhgoPaLDOuH8/Lw3 X-Received: by 2002:a05:6402:3196:: with SMTP id di22mr16665517edb.193.1597703683736; Mon, 17 Aug 2020 15:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597703683; cv=none; d=google.com; s=arc-20160816; b=OyJey/EnLbtQuyjGvsv85mjgYCbCYEcTF3Tgub0mfoK0IoZrqhe428TXIm0Mv9y22x tC1hGmH3rzR1yWd4NM0JzNNUr0Pyyifi2zjvWb5K2ZZCroHoa0RvVU5/LbiXZ++VEp6G 6+/prkmGvmCpdaVgzYvnKOQUgf6mYVmd25ndH3Iy+H4xPyDlxq3FJEyvXBxvdqT6LKSV v7yXBsbvXPet0ZqltuUrooBYxLf1GQPqZ8VjRRWoENs/deOz4nwGWjJO6jLN++wDU1N1 hjQHWzlVpjvsraUGKxFpcRYG1jrZWelXUcN9uppbezBZ9i5H5V633nLR1VR1BKAkaPLC vg/g== 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=tsAHH19r1HnNzLUesJQRX/q60sBWDwwhKrTUMi/D1EY=; b=zByXBP6ZRIWEuPXenY40h58gpU8uOh7EAmZ7V2Z6b5P6BNKmN9nFNLgsQeBLgMmFLO JvuqhUPmv7CPAI67TUNrZ5mfmkQI+z+TBLR4puvzZUcyfe0NSvhZRtcUCtme9z0gOw3Y elDbepaChKBBjG7x2HdyItT9DRw5wrBnsKEoxwodTpccd0x6N3FxsfIVdvNlbE7zTL8v CS7MKa4txQtV32ukcJ3/Ua11b35C4Tv4x8jmbRWwrEdyZ/KR2WFNs4ZVcsWVfdfzQ0+Q P0yOfoBa4VSv41mE1/NxOQProFqkWk7D5mU6PaJ8vdTR3i9GFf/n+Y+nTg8Vyjlt5vjo jJOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QWjaQVeC; 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 y3si14521433ede.295.2020.08.17.15.34.20; Mon, 17 Aug 2020 15:34:43 -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=QWjaQVeC; 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 S2389495AbgHQRN1 (ORCPT + 99 others); Mon, 17 Aug 2020 13:13:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:42256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388669AbgHQQMJ (ORCPT ); Mon, 17 Aug 2020 12:12:09 -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 47BE720760; Mon, 17 Aug 2020 16:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680729; bh=yH+DAPdtU3IVv54d4VVXWRQgzC7pzyB7IRbaGehowlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QWjaQVeCNEMeRuH2m0hUozb+MCmUVocsAXNRKHDP9cH9zJ4cUpNsIccAp4R/caG3E p7dnpJztfEYKQSb2PhcMxyMiJT9jngb2YPRYgL4remMNow5x45/Sm+3wLPN5PwhU5i KRYkY4PyW8ttJtlcCQwP6Bpq0smU7WUdwVocg3NY= 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 4.19 004/168] x86/mce/inject: Fix a wrong assignment of i_mce.status Date: Mon, 17 Aug 2020 17:15:35 +0200 Message-Id: <20200817143733.928530433@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143733.692105228@linuxfoundation.org> References: <20200817143733.692105228@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/mcheck/mce-inject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce-inject.c b/arch/x86/kernel/cpu/mcheck/mce-inject.c index 1ceccc4a5472c..9cc524be3c949 100644 --- a/arch/x86/kernel/cpu/mcheck/mce-inject.c +++ b/arch/x86/kernel/cpu/mcheck/mce-inject.c @@ -518,7 +518,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