Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp96444imj; Thu, 14 Feb 2019 16:08:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IaqWeQQiW5OUDeuve1PtBlW4c8RzYnBFLohf/qPdqhEvsNQeh5UO6s41YI0eB932ZaJfTIx X-Received: by 2002:a17:902:6b8a:: with SMTP id p10mr7117835plk.109.1550189304209; Thu, 14 Feb 2019 16:08:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189304; cv=none; d=google.com; s=arc-20160816; b=DDTfOn7ZZ9SuzmU+i6gkrW93WPSa63ufz2TDxC+sYtLJ+WXvQcrrHsydLDSQk8Z0Xw SLadZLAC1g4DG9uYjQ+Y+P3nWXjfHvLwwLa2mIpwQZhIXaBYUNNipZddl8XtR1sgSEhx kXfm7+0bcobvF0ejPjNYugPugcA7yRwwpZlEVYUARxtV3sbEJs50JGj1TyDSmOpeEoSx 9To7sF1jkRl7UGJ/ZZ536SpdDyC92F6DQ7LWiaFUU5No26ZhQ06t/K73kvelR8C2hZMC Uh0yxblikCl6ttv1ZY8EwNQieFjmTxJ9thtUZWR9/9GAygj69eCzmmCzeZCeDeQodfOC lAZw== 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=WbXTq/rv4PTCxNmHyDWfQL5ZTTgJSJ1C6Vt+iGpdItk=; b=fiIciF5O0FVT1Mmo+/45fjgpemxPqKS9Ls8X/UZGXWVws0PFp7fnOArHVO5zOfB8+P 2tveORw0zPMGrLfdeVYg9/tcMRCw6mxi7BkqNsTP04NKF1wz+YnSZKW2IJ47tM4fDCK/ G1C6k0KQ4kJDhqOou/6a38+Xh/1g6Pez8yhX7worvB225T975jOQNXt/0woA9KCY0kkV 7oyxMoFc9AH5pYvo6pcxD6PM7T4jYzjwpKfipy06us+e8eiHcDCFUDbLES7FHX0HGtHk zx8Md6tNWdI1giuUJFadCaWJn+fkYOBb48EFmvBxNvx1uN0lAGNOGRRlURjH1ioCmaoR 8wrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=utApWRdu; 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 e21si3472376pgv.271.2019.02.14.16.08.08; Thu, 14 Feb 2019 16:08:24 -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=utApWRdu; 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 S2439390AbfBNOuF (ORCPT + 99 others); Thu, 14 Feb 2019 09:50:05 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:37916 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407306AbfBNOt4 (ORCPT ); Thu, 14 Feb 2019 09:49:56 -0500 Received: by mail-qt1-f194.google.com with SMTP id 2so7101912qtb.5 for ; Thu, 14 Feb 2019 06:49:55 -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=WbXTq/rv4PTCxNmHyDWfQL5ZTTgJSJ1C6Vt+iGpdItk=; b=utApWRduTafCEFGv8UAoII0fePrHnB33bW4J/MQptc0lsPlgbmsQ1qtVb9MMnHkiUL jrG56n4yCy1KuQKwHn4C7PKyJQXFEZS5hgjDLQURUyl00zgciW4Q5N1OzrNmK8McMQ2H uINaH6/BILlntPaPi7xE7VW8OK3XLqrFyJ/lgNq97H8EUNjVLBQRLzU5ObT0bNF1+rOy 6aX6UGmbyx9RygbF1jSSymTia1hAYqBrytu/G1gDS/NyR/XF/3TSdVWJ88UERuGSf3Jp +VOBXow+YpZ41THXI4CWgyBRMzm1xG1vbBWtviB8faOYMxJG2JXS85I4nlF/SnF4cy1R Kwng== 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=WbXTq/rv4PTCxNmHyDWfQL5ZTTgJSJ1C6Vt+iGpdItk=; b=RZTVmXDdHQphDVrFlB2j42E+E1GembMr6UZk9S9suVlsAMdZEdn+zQImaZg+nIBOYK 77sxrcUBFcHmCo9cV4sLUM2bgV0rKdU/y7DlcVrSMeEKn6+zZ6X6aL8SmnPydmM3bbhn L4NuhrBqjtRu/NrYGzLCOcVtJ0yeowPmgD31CkDQb5+os81/TXWGQo8B3QE2UXGfUrQY tdNroHKNnqnsbcte4K6tHhU18Tf9DX+PQ+NBoMsCu7znZoBMIMKOk+XvsZhiuH7Ck3En ulSJo2OZeIL44TyRi+QJUx0KHmD0P6PtKfjQl8owAAxfHPyDE1jM0fEYGnmGH+kdKs3W /WnQ== X-Gm-Message-State: AHQUAuYsgc/GSa6WXmBY2Uxn/58QyCm9KWLL7vMlta7CNA0Rdsu4dM/S mtxzDHcyTNjkNEsg0SOFe1zC4g== X-Received: by 2002:ac8:b0e:: with SMTP id e14mr3403862qti.336.1550155794878; Thu, 14 Feb 2019 06:49:54 -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 k66sm1498919qkc.25.2019.02.14.06.49.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:49:54 -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.9 16/16] ARM: fix the cockup in the previous patch Date: Thu, 14 Feb 2019 09:49:30 -0500 Message-Id: <20190214144930.27539-17-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214144930.27539-1-dave.long@linaro.org> References: <20190214144930.27539-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 7be1d7921342..f8bb65032b79 100644 --- a/arch/arm/mm/proc-macros.S +++ b/arch/arm/mm/proc-macros.S @@ -279,7 +279,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 @@ -317,7 +317,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