Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2900569ybx; Fri, 8 Nov 2019 11:01:09 -0800 (PST) X-Google-Smtp-Source: APXvYqw0M6S4trtmjU8CCdpadE6yt+VnpJiAtDBoOf41CQzWj6/OuwjKsBV0wU7dvGcKmDPMzfo2 X-Received: by 2002:a17:906:b7c6:: with SMTP id fy6mr10343086ejb.90.1573239668819; Fri, 08 Nov 2019 11:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573239668; cv=none; d=google.com; s=arc-20160816; b=mMkGYODfh7koghxYB0qAGqzW2qJAIrDZwnlCfz/7J6mpmnBZ8ljh7WYPUUBZOeLi74 SqGXruSf7nGjXuwBnFqFVQFGE3px61V9nYhbvtT3S6BL9G72OKRV4cvwXXk/gHoKM3Op lUqR080zrlnm4dyiUuaFo3ZRgVrS4O6fCwtJDdu+42Df2Vy/6Fea9uBJ1AGm7IEQU7Un 873eRvWIXgg9Aq73v0cj2nXuf3bQOOGmuvlvjYGhENT/SO1hmR1qKRIlDAz0XzrwyPyL 8h3a8ER12Mo4CNl1GSqWdgpL4M6m1JgZ7nAXuqv05zfGYDASROeICgYgFDhYAuFXwDPa 8XNg== 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=6DmxbiCBuCwhZqY0+HjPnSpACeNdK0VX//Ae/FTve9Y=; b=iZfdtE3qb8bWyDVKIzp9c34NNuJBktM0Bmv5FbA/SaHUANJqdaEdo1NXDTFB871/yK zL4K657UuYkMRPurWYlMSzYJkfliczaSdOqfIA/TWrimOKG3JqmYdB10FdEvXf2VpM36 /aT6lIlW5TzTRwohRxgKohDt+HoXsCUqAvymDTgWtmnSnEDkSaqr8M7wwOfehSY68Nh3 emQadwSByDKBcB+x/5xgLOYs1XTtWxhNTNB1n+2LU8Eb0ah4vmpeH+WbeKgKkBYBuOYn LTTSkWf8nMHEZK4U3NzvRpjNFE9DCszsencOLr4V2+YlRcz+yCqdKH5X1O8LLYw/l60g lClA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="HJSRF6y/"; 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 e24si5064160ede.392.2019.11.08.11.00.45; Fri, 08 Nov 2019 11:01:08 -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="HJSRF6y/"; 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 S2387421AbfKHSzY (ORCPT + 99 others); Fri, 8 Nov 2019 13:55:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:52640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731643AbfKHSzT (ORCPT ); Fri, 8 Nov 2019 13:55:19 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 AAAC121D7B; Fri, 8 Nov 2019 18:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573239319; bh=JqBJ33MfxgJoV04Jkn6Y2nD3m+tGGlp3H9Rs53UmXYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HJSRF6y/rPA1qXOwdfPHjdRuS1YPOM4CUXvNxsNnaM+gXyHaOh8b25PwqcGP3BmnX 9SDgZfcI/Ver5SvPl7EVj4salZwOA7CzBl0ukA6c+eIqH22qDm4R6+EZETIfPrVqTh CcExgjWahOq50EHUsfAbv5O0n+M3domKfJaBf8OY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , "linus.walleij@linaro.org, rmk+kernel@armlinux.org.uk, Ard Biesheuvel" , Russell King , "David A. Long" , Julien Thierry , Sasha Levin , Ard Biesheuvel Subject: [PATCH 4.4 73/75] ARM: fix the cockup in the previous patch Date: Fri, 8 Nov 2019 19:50:30 +0100 Message-Id: <20191108174812.725818389@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191108174708.135680837@linuxfoundation.org> References: <20191108174708.135680837@linuxfoundation.org> User-Agent: quilt/0.66 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 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 Reviewed-by: Julien Thierry Signed-off-by: Sasha Levin Signed-off-by: Ard Biesheuvel Signed-off-by: Greg Kroah-Hartman --- arch/arm/mm/proc-macros.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/arm/mm/proc-macros.S +++ b/arch/arm/mm/proc-macros.S @@ -263,7 +263,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 @@ -301,7 +301,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