Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1090223imj; Thu, 14 Feb 2019 00:49:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IY0oISKC54PdY14PuGPK8GAzt0g3KbkWcp0CI/SPZKpr9c+YPzX17wIadsyw2dNVjyhX++a X-Received: by 2002:a17:902:29c9:: with SMTP id h67mr2967868plb.111.1550134163418; Thu, 14 Feb 2019 00:49:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550134163; cv=none; d=google.com; s=arc-20160816; b=UfwdWn/yOiOPqTWCKV+KndJGLJAdSeOdbQABlWKfa8LEyxxKV5l45gyroV8b8T8hMq yw9XQkvHm/nJ3sQqmfhPXzyI1rWiLF306rGt61Tz2EH4Xpzg6YMBJBLWAImmnNGCe0xA 43MqZVbq0XbqbHcqsI8KbL5RFNZ5KcI4jmjcv5XXsHoklUzqfRWg2Toy65X+hrmkpR27 n7Kiy4KINFHrzFmAb0TGmevgWvy65CQPKpi+CKKDuT4tXDON7GezqE/uXR67P4gW+cO1 fytbz944jcwlaMMTR7Om6sMLUz1L6Ye+dMABMtnkH8loWHcG18PbttPZLNi/2GG0mE/q 1PKA== 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=HzV0OXo7t6jQCxIhj3sf4whjJkw5YASnXhUW9ftuSkyxwpjsMg+h/eD5+x/MjmvqyZ CBEaSZ0PEe6lChmYeX/4sPcpXmxRMybCLX9TqY+loG3H0G2kqWf9q+uQCX1/sN6jIqJR hZSppFhSBdoH2tdYtdYSDPrrXiNqgc3LIJApXxqAHjnHLIJ+WE9Q91w99/TwkxZPfhBn 6YFzE5VSwnymhrTl6mBaxR1MW9BfJ3QwKG2+uKndMvEjp2XgQlqqCqUJRS4XSFQPMACE 7MVLEWJBlZTkbqNibL6Iv15vPabhuq/jmgCOaH70czPclD1ZgZFF1bTHy7sEUN8TV6iu 6hFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yiA5zt26; 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 f1si1725386pgo.519.2019.02.14.00.49.06; Thu, 14 Feb 2019 00:49:23 -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=yiA5zt26; 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 S2394832AbfBMVcw (ORCPT + 99 others); Wed, 13 Feb 2019 16:32:52 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:38332 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436826AbfBMVcu (ORCPT ); Wed, 13 Feb 2019 16:32:50 -0500 Received: by mail-qk1-f194.google.com with SMTP id p15so2339164qkl.5 for ; Wed, 13 Feb 2019 13:32:49 -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=yiA5zt26BcNlSC5TY8vcwZCC8Vzn6Bz6CToYTziIY/wmZs2h7ALzfFg6KxIMMdyQeW mXKRScI2MNZrqm1ZVyXeQpzK39pyFV9WPHYHsr4T6o8rot52in5/iEXLwKo0A5m8Gg8v 9eRtWIrFNIBEV+zhGdBRZJIQe27wW4ts8UK0sE10MeDSdI2YLmav3hO5kiPWcz2Eb+Ac h6NqzwKBox2S65KFnSaiwhGDDwib73UMsgOkw5gz4DwEoHdog20jFc4nMFUANhsv1Xow 7r6tmeC5nloBRPIBUP2/otfZYwqwEVT7hsJ/JGkaMlu/VA1gHYxsLwbFc3JEGj7yeKoS UGRg== 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=MfVyG5e97BPD7XFCbBJavdTCB6aDm+pzsPEYKpZ12rf4A4PFD9lqcgwxaAyGMW6Wsc P6HxPoWoCTnu9A9Y1wTD3O3ue2JF2/xqHxSu431VtZt15WawoOkhcs3/vASC9ujosc0w 8dgmZEjISNsb4EbIVEieLX4pI3nQE9obehbW5aZbX+8AUTuR+2fMqmc3ZqaXlABi5AWK ZhxOxkAxt71anfLcK/gQHzHWcRXgAvcZZfIyM9T1DFGgEsWYcJDEELSFHg7HYTjHiHH/ XbwvUBFde5hQYDentzjXC9FAE4O85+Xhm6ZP+q4JYEgzRV8lISMWavCXE2H7CFRMdYX1 9+zg== X-Gm-Message-State: AHQUAubFGf5h1iwdjTq8x89dHQQUpXY7fIlNWt555zPgQFhr4iKTDaDi 7xLzwBbFdjxRr1xEJFFlNyLh2A== X-Received: by 2002:ae9:e203:: with SMTP id c3mr220767qkc.270.1550093569019; Wed, 13 Feb 2019 13:32:49 -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 8sm382675qtr.7.2019.02.13.13.32.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 13:32:48 -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.19 17/17] ARM: fix the cockup in the previous patch Date: Wed, 13 Feb 2019 16:32:23 -0500 Message-Id: <20190213213223.916-18-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190213213223.916-1-dave.long@linaro.org> References: <20190213213223.916-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