Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1183330imj; Thu, 14 Feb 2019 02:34:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IY782JluoLoTXps4f9YFb6wdU/NnWYDdbcQ9CB5kN+4p/PxEMLCC5a/fzh/JvrN4c7WZqmV X-Received: by 2002:a17:902:7c83:: with SMTP id y3mr3392720pll.260.1550140482584; Thu, 14 Feb 2019 02:34:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550140482; cv=none; d=google.com; s=arc-20160816; b=Hw7Asoa00/4YWYE2cBZCEq3W71c97NfxDvDVHBR4jIwxdMGOqnDxxYzXXjHxuoRoPT yRliTEd0/gkEDIKnZtRz05oLyvZuywCSg7RInRrrOxgElMXx/pqKFJn50giIA27v3u+N 6vH6+wMr2gG6aZa4FocNOILjZpHE4l0c0c/dLwHXh9whuC/sLmN06yJK/MFuaqdpR5Da 2ABNjeiclIeqoJzfPG9MQM77vxsxgDAKMDp/CIh/lDYbtD1wYKJ0LtPggTZq1VLoa4/Z 5OKZ7/IN2zXC/KRc9ETSPzEaqxOijSohum5/T/02CA4mJz7xgHBnuC/djXDDe+sZ4yHN RyRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=IbhWU+vwiJ4ZGll0liBnsU+9mDwJbLZRs9UYNa4vW7U=; b=kingN9AGxYBgUCpddjt0//Ft01ei2l2hHyZF/ULrlDWv5vUWxwgfTntKx33uwJk948 fqSA+LKwHM4OwD+uvq2MC70Mgr6c9tWLxrTEQicTL0NpQdaHG5lk7gGuUF8dmOExsuAG QAhxZUIDKi5brdFI8dg6+mFFm+l4g7zk7VB/fWkhLVze0pzHlKdba6rnKN+Qd+otRocm QMAGsoVLR8drY33nkoyWx0hsIPdJ+br+XeAq4N33oCgHc7a3zdowjr01GmMgPNo6W+Xt JBD4JFyMWmzzb2B6DVZbscQ7uDP2fKU6MNnri3xEYGblI50k9jTrrNpFPSu+UVQLV1e8 P8Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TUmqxXJ3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10si2133199pls.280.2019.02.14.02.34.25; Thu, 14 Feb 2019 02:34:42 -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=@linaro.org header.s=google header.b=TUmqxXJ3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404973AbfBNCKu (ORCPT + 99 others); Wed, 13 Feb 2019 21:10:50 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:36050 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404949AbfBNCKt (ORCPT ); Wed, 13 Feb 2019 21:10:49 -0500 Received: by mail-qt1-f195.google.com with SMTP id p25so4907917qtb.3 for ; Wed, 13 Feb 2019 18:10:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IbhWU+vwiJ4ZGll0liBnsU+9mDwJbLZRs9UYNa4vW7U=; b=TUmqxXJ3ic22OfhEe89ZDRixUCnlvjj9uB5CneITxJzkkMRs4WQJb72VlX96SnADhP VTB2pHS0k0VrzNbJ7NecCcw5rLmo7jkFZRwzJimwbIRLJl2JzmXmG8mHtxbI3Hs3lKVj x0Kr2EK1MrrrxyR4tumbtse4V110OGsowoYFJSivydgnmPQLPQHAHuXcM9nDmtTmeJCE V9hOmEexPi2D2xMW5MBKQvah2oQRMMgRYFkjWpILEKE8wRbimcDYjzJSxWMZvLIoqcrL BYhm701/zHf+FaO2fUGdcFVKYR3zbgk2FPE98KatEzZ5cbJkeNOnp1N2z9IFznpLXwQq y5Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IbhWU+vwiJ4ZGll0liBnsU+9mDwJbLZRs9UYNa4vW7U=; b=e3OI3CNJoZCV5yXrMSq8M5InAaCDEmSRqhSOzY3AGZ7WzVA1XunDbA8w24AA+/biD9 jkfqELFv3kcf4be8MPC3KVWLb4afms9bjvs10RUPD6aXVzPXvu2Ui41BSpGcMkFvQeQV wdp2UsF9hHfk49shX74nx9VOjbfh9uJ61im5JUi/EHRrodYBG86tQqwRvJ3x7CpTaLX8 oeeho9BAR51bUuiL6pcKvqPm6Ys1uKQlMN4yulYRSASifAEw9OXHZJgyq5thuf3/1Ecb SbM6yVQ3Ve5N6PjlwUhK9nhEjfbCCfN3ww7jmsdBDr3lywhzmToqr5PrWUWcpXovKiem RFWQ== X-Gm-Message-State: AHQUAubvUP4EqV1n3wLi2Hm+ztA8ewXDRjUloAq+UEvHoH47rxWg3lA1 BACgluFoX7DuHpc/xohi+lJaAQ== X-Received: by 2002:ac8:27ba:: with SMTP id w55mr1061465qtw.228.1550110248059; Wed, 13 Feb 2019 18:10:48 -0800 (PST) Received: from localhost.localdomain (pool-72-71-243-63.cncdnh.fast00.myfairpoint.net. [72.71.243.63]) by smtp.googlemail.com with ESMTPSA id d63sm1091575qka.22.2019.02.13.18.10.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 18:10:47 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Greg KH , Mark Rutland Cc: Will Deacon , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH 4.14 V2 17/17] ARM: fix the cockup in the previous patch Date: Wed, 13 Feb 2019 21:10:22 -0500 Message-Id: <20190214021022.5313-18-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214021022.5313-1-dave.long@linaro.org> References: <20190214021022.5313-1-dave.long@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Russell King Commit d6951f582cc50ba0ad22ef46b599740966599b14 upstream. The intention in the previous patch was to only place the processor tables in the .rodata section if big.Little was being built and we wanted the branch target hardening, but instead (due to the way it was tested) it ended up always placing the tables into the .rodata section. Although harmless, let's correct this anyway. Fixes: 3a4d0c2172bc ("ARM: ensure that processor vtables is not lost after boot") Signed-off-by: Russell King Signed-off-by: David A. Long --- arch/arm/mm/proc-macros.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/proc-macros.S b/arch/arm/mm/proc-macros.S index 19516fbc2c55..5461d589a1e2 100644 --- a/arch/arm/mm/proc-macros.S +++ b/arch/arm/mm/proc-macros.S @@ -278,7 +278,7 @@ * If we are building for big.Little with branch predictor hardening, * we need the processor function tables to remain available after boot. */ -#if 1 // defined(CONFIG_BIG_LITTLE) && defined(CONFIG_HARDEN_BRANCH_PREDICTOR) +#if defined(CONFIG_BIG_LITTLE) && defined(CONFIG_HARDEN_BRANCH_PREDICTOR) .section ".rodata" #endif .type \name\()_processor_functions, #object @@ -316,7 +316,7 @@ ENTRY(\name\()_processor_functions) .endif .size \name\()_processor_functions, . - \name\()_processor_functions -#if 1 // defined(CONFIG_BIG_LITTLE) && defined(CONFIG_HARDEN_BRANCH_PREDICTOR) +#if defined(CONFIG_BIG_LITTLE) && defined(CONFIG_HARDEN_BRANCH_PREDICTOR) .previous #endif .endm -- 2.17.1