Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2355225imm; Thu, 7 Jun 2018 09:15:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKjEl4FlypcjiSnsVTF7K3s1s5TmKy5YIfn/E7cPvzXSAVF2Qq31VgHGdmtouIqwBE3SsPv X-Received: by 2002:a63:ba02:: with SMTP id k2-v6mr2113303pgf.179.1528388136276; Thu, 07 Jun 2018 09:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528388136; cv=none; d=google.com; s=arc-20160816; b=oO+xpqItSGoNVU8ZDuQU5jnVV1Ui+YT8GVm4UBQ5VXMa6vPxmYcxVDg04NIQieEy8a IiR8LWS65J3blilouPyicbTPlZJHhTgIhi9KuM0uI2OMMJcA1dogFb87mdnWPLBgTwmc gGfRvakdQUpStuB+rTfDSM8SOSVYsRObTleHdMWMytnxAjg23JEw/wEOQ0fWFv/2LPn5 B8Ybf5xen0HArCRU3GR5cYS6m50YY//+Kq1YOUo1wd3JqcDMCgckIuZakC4LMzfi4UzE by12mlN+Pe8z3r8Q1QaT+Q6gwrf3aIx71GcnXnaWd9capc+5T2bU6o2tSJVxXREbapJK RqEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=YdwZj11z5ZScy5W3XwX5Fpj2z/pOgiDuby4brft0gbU=; b=0nVRH2KwZDgcrJZSp99xepd8cLmpgylydO2aKDSA9WjOpb/7NcXrukZ9fa88cfuvqn uRgCbfBmPFMB7bLjF5xTx+RMjzhiF5YnGSHWJucAKn9gFVx6XoaNhVIwgFVgP155w/dq qcoggskLRZiGAdnWQavIXI0ESYpfcJ5rrhkISz4kfVIjXrUV4uAQS2UaSxGuZFP/PRzB rb/Hyxwqx5Hl6dBzb0Tf8fJWKqndp0SbWijiEXmGfHNQQROfnZcUiDGKw9EKn+UWoWSZ C/LOS7qbtrKOkXh3taqQCONik/ag/A+Mm45OGzEtnzyjIZcUhsL8FrKq8hDhrYG63q6P dWiA== ARC-Authentication-Results: i=1; mx.google.com; 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 43-v6si56382397pla.509.2018.06.07.09.15.21; Thu, 07 Jun 2018 09:15:36 -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; 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 S935626AbeFGQNc (ORCPT + 99 others); Thu, 7 Jun 2018 12:13:32 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:39141 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932933AbeFGOI7 (ORCPT ); Thu, 7 Jun 2018 10:08:59 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvay-0005Zk-7X; Thu, 07 Jun 2018 15:08:56 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvax-0002gF-0s; Thu, 07 Jun 2018 15:08:55 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Borislav Petkov" , "Richard Hendershot" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 003/410] x86, microcode: Fix accessing dis_ucode_ldr on 32-bit In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Borislav Petkov commit 85be07c32496dc264661308e4d9d4e9ccaff8072 upstream. We should be accessing it through a pointer, like on the BSP. Tested-by: Richard Hendershot Fixes: 65cef1311d5d ("x86, microcode: Add a disable chicken bit") Signed-off-by: Borislav Petkov Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/microcode/core_early.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/cpu/microcode/core_early.c +++ b/arch/x86/kernel/cpu/microcode/core_early.c @@ -124,7 +124,7 @@ void __init load_ucode_bsp(void) static bool check_loader_disabled_ap(void) { #ifdef CONFIG_X86_32 - return __pa_nodebug(dis_ucode_ldr); + return *((bool *)__pa_nodebug(&dis_ucode_ldr)); #else return dis_ucode_ldr; #endif