Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2471018imj; Mon, 18 Feb 2019 06:35:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ3bKFINNYLbFVNQn/ehyirBCQ7q74974gJsTHpAv7HhwOz20WvQtGz0jDKXbagikYeHVpT X-Received: by 2002:a62:4b11:: with SMTP id y17mr24891403pfa.124.1550500549144; Mon, 18 Feb 2019 06:35:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550500549; cv=none; d=google.com; s=arc-20160816; b=lWtxkGXvGdomnbqTQhkzTYjwkLIiPSdGvEbcnKTDngrZVnteUWxC2uO2NgWCcAep1t TDxCRqvWqP0rzg2aBuYn5vTpxuyLqflUfYWyNUv2e85dBiLhf0T/JGqR0uCJcAr62Wz8 d8jHbrnlNx9ek06lekeN4Bt/hpAzoo3vGcoxzLcLRUUXmQjW9WcyhT8ero9Bw+zxO7kv ZavEklz4dkvEBh1Whthw0ucF78cl9+qNix651AH9p6G3t15ekie6asec2xMeLcympcaT CcgIPYE1hrp83zoexxlEw+gsz6BrMVg4nokDCoJS1QvGKr/f52U680KxuEQ9uJoaGkjj /7rw== 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=t+g54kXs+kCWHx97lj8AmVyVbQebwnA3to4t6IySCsQ=; b=cNu3Qw6kLesuvjdQR6lHEyW1l4yz53Z7RraNfF+i2o1traCwLqK8Risdv+/LTPg4pV a0hnHLW2YdI1aNev43M5J5kFAfEDswrqRv+VWa8s8XshmFAKpfCRVIv/j5ydGTh0dfyw iWaZXwa7vAipZ1+EvGq9jYFTCbKgOnE/maJJWKNgLryu2OERrRLmMs4WN0tMMGtygNZY vwCf9HjZC6g4ZbvTMN+NnHaik5gH9Y0YJQHuRg2wij9pLCDQ+xwHPPwHUxfTvYgwm2nm 5xpcXxGkIusymwJbySUJFvcLOALNxUunxhiqw0BBFJvgVwORzM02nfzBg/PvMd+uk3zu tW6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KC8gDAHD; 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 u63si13292285pfi.196.2019.02.18.06.35.32; Mon, 18 Feb 2019 06:35:49 -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=KC8gDAHD; 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 S2387816AbfBRN4e (ORCPT + 99 others); Mon, 18 Feb 2019 08:56:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:36688 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387802AbfBRN4a (ORCPT ); Mon, 18 Feb 2019 08:56:30 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 0598D2077B; Mon, 18 Feb 2019 13:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498189; bh=8ZCyAgxXYxtDXgKgmgUQk0E66R8+TTI+hXTjFPP7WNY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KC8gDAHDncm64eWXEm4Ly929FjnHUeFt/yFUT8MWPL00gtB67uC9aaZf48l4pYIpf /RS4BTW/rNpPds5bEBaUnTB0+NYadUocE4jKiW97+oInDeet+nf+5S4TZXcEYZG/NC nLYoABjQcGRQVBYFYcK9VLmmqjJy0SZ+L61T+EJY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , "David A. Long" , Julien Thierry , Sasha Levin Subject: [PATCH 4.14 21/62] ARM: fix the cockup in the previous patch Date: Mon, 18 Feb 2019 14:43:27 +0100 Message-Id: <20190218133507.741384971@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133505.801423074@linuxfoundation.org> References: <20190218133505.801423074@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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. ------------------ 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 Reviewed-by: Julien Thierry Tested-by: Julien Thierry Signed-off-by: Sasha Levin --- 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.19.1