Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3429453imu; Sun, 11 Nov 2018 14:55:11 -0800 (PST) X-Google-Smtp-Source: AJdET5e3AFMD+7UJKjSy3FjVslk0+7mZwnaNg1/3CS/9LLLo8rU2J1Wi9XgygNOiLd2MR/oefEgz X-Received: by 2002:a63:c642:: with SMTP id x2-v6mr14948298pgg.16.1541976911654; Sun, 11 Nov 2018 14:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541976911; cv=none; d=google.com; s=arc-20160816; b=yiMVhBB7XB0geyiSHw9J+rAzsN8+UwLBamzLtjQ5l7EBtUr8TCw7E5FN8uiMyA+uWd zcJ1tDFIEgWIokdzeEtLgIKJO067d9Kk+zrGnUAgP4NdC7W4mRq2w411tDRRoYFNTwEx D5SenMS4gedStQHVTfJo6EPj0UiW373yt4vRa6Qf8LHSiv8khDWeUi9vogzaq7qUCFoF cLpWQO2hk5H3U9thbeglLQEZ5FVieCEglKxC9Yxxc+tuvc3jB3HKs0UWfZRcYYlhYq7q 9OpKtL34nDXer+Jk3Y9I/7umPfwPLUuIRZbwkGKo2EOXIR+fkcBbQZct6G8tGU7pwJDT sfBw== 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=BcNptx6VmWB5C5W2nHy4I2O3EjOICy9oR3EEE883eew=; b=YwC2cyh5b6i0caXg6jBs5dGf466xhbh9b85iFho0Gs0kS1XXkhjrjPV7WxP0xsrVkk aIZ+Js58AZYpTCJ12rlpH7nBZrcpqipyKZdlhq4Bwuj5hoC8DyjFDPmD/+ZVX+i0e8Xt HbqFVE8dUUTBr2Lc+01mi49t/wN9JdhdjILoT5irYQRLz/PPD8rM1W0VMKGWGQzsohoW JjPfsoqDvwAX/Diam6W+S9a/OZGMSqKlLK6MS80v4sKH7tXIN3eAT4BBeY5E+o7P67zE SaRxMwh+uHpvsVSFrcAANKlKmcHxW+mbwfaN4mCJJIHnJK27x+Viu8jjCZcCEuLhgoAK 8//w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="UDxCAIp/"; 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 37-v6si16259583ple.389.2018.11.11.14.54.56; Sun, 11 Nov 2018 14:55:11 -0800 (PST) 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="UDxCAIp/"; 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 S2391146AbeKLIn1 (ORCPT + 99 others); Mon, 12 Nov 2018 03:43:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:54642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404008AbeKLIXA (ORCPT ); Mon, 12 Nov 2018 03:23:00 -0500 Received: from localhost (unknown [206.108.79.134]) (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 1A317223CB; Sun, 11 Nov 2018 22:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975583; bh=0p+SRfd9z9PFj5JjWn5VYIDC3fJ5KZ4cKzV0hl0B064=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UDxCAIp/GDz3GV4+vuQ1pUx+e53UK629EaTjgXjf/ny1H4JK0VMOfwdNhQ9CiHuF4 vP/SW48kX7EdRg1C/ParxfWzVkq6o6jSP5GV5ntvSi8BBo8uCKzRnLahdQmBXDOprk GaS3Xh9Tn1RITOzZmUOdGlkLNP2WtQEyK3qVitAY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Qiuxu Zhuo , Tony Luck , Borislav Petkov , Aristeu Rozanski , Mauro Carvalho Chehab , linux-edac Subject: [PATCH 4.14 144/222] EDAC, skx_edac: Fix logical channel intermediate decoding Date: Sun, 11 Nov 2018 14:24:01 -0800 Message-Id: <20181111221700.353304030@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Qiuxu Zhuo commit 8f18973877204dc8ca4ce1004a5d28683b9a7086 upstream. The code "lchan = (lchan << 1) | ~lchan" for logical channel intermediate decoding is wrong. The wrong intermediate decoding result is {0xffffffff, 0xfffffffe}. Fix it by replacing '~' with '!'. The correct intermediate decoding result is {0x1, 0x2}. Signed-off-by: Qiuxu Zhuo Signed-off-by: Tony Luck Signed-off-by: Borislav Petkov CC: Aristeu Rozanski CC: Mauro Carvalho Chehab CC: linux-edac Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/20181009172025.18594-1-tony.luck@intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/edac/skx_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/edac/skx_edac.c +++ b/drivers/edac/skx_edac.c @@ -604,7 +604,7 @@ sad_found: break; case 2: lchan = (addr >> shift) % 2; - lchan = (lchan << 1) | ~lchan; + lchan = (lchan << 1) | !lchan; break; case 3: lchan = ((addr >> shift) % 2) << 1;