Message ID | 1292f4e03c65f4cfa4665df9c0e6f7fb8bd526cc.1564646727.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5087274ile; Thu, 1 Aug 2019 01:21:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwldQWHr9dDQgrY+tcnr7bi5ZbFZ8jO4IBVp9bgFDjQ5Prsjp5y/I+AEjIIVK8baBLBVaEE X-Received: by 2002:a62:2784:: with SMTP id n126mr52774808pfn.61.1564647698671; Thu, 01 Aug 2019 01:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564647698; cv=none; d=google.com; s=arc-20160816; b=UMO+7kY7NQ270zGlh19h6vhtShIjNSLMvsRaE9syuzAWa84NeUqNLkOGAD0jpy+UoH 3jADipD8A9UbvqD3gsK9q+FCMqLhtbKKlkfa80+RxTbWRFG0VVJTMrvfq8DT0BGBQI8M YEwMxHQOZ5ff/EYuxsY1WRmShcm6W/ClmpoYNM7ohjtKldUo4qRWMBgizWIQ/dhIhSan l7JpQ7kJG7Ay9Z3drbtYT1ilrwCgT2y7xHaM6Vbm7HLKunQMs2OFL5h0Vmnbx+dHSQGz oaQG3ysrjvDGaKctWC93NQHV09Q2SYm5Lpp163Ug2T10NGy/jOZ02Y2j/9SZGT/OnXLn z3/A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VcM2nk9n3X98Yf/dvDVr4bULZaEs8I54Pvp1eUOtnUY=; b=DkB2vboCbAfCK0upRTqwsxgyOo+sdO2lv5AlegK6EwlTJJKYaLMfAE5ZfyZG2N7buh 4e7bzCzRCvr6FvCecSZhke9aXMlY1mQaj3LzIIdlKelfFVHe9s3QYN9dUQVUzj88s/b6 MympeomLk+3DjZ/UKQdMLIeXR00OIPuXKjZXe3DZlVYI66IfOt38QueRrAIqiaZ80Rul eTfi3ARdUIg1OCExIpa8Qwomx7izn9QO42n+GGDSktrLSvyfTcakK+AlcFRxXemMu/DW Nxx3gPc4jNNSeJuHWD6pWqBTcJ65j6tupRXozvtF+L8bpS/2nh7pPvvckZ75BA0epOqV g5Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wgago/zp"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si3395017pjv.50.2019.08.01.01.21.38; Thu, 01 Aug 2019 01:21:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-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="wgago/zp"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 S1730809AbfHAIVh (ORCPT <rfc822;naresh.kamboju@linaro.org> + 14 others); Thu, 1 Aug 2019 04:21:37 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37954 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbfHAIVf (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 1 Aug 2019 04:21:35 -0400 Received: by mail-pg1-f195.google.com with SMTP id f5so24916788pgu.5 for <stable@vger.kernel.org>; Thu, 01 Aug 2019 01:21:34 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=VcM2nk9n3X98Yf/dvDVr4bULZaEs8I54Pvp1eUOtnUY=; b=wgago/zpfmyqQLLQdap7Xa8Uept+x1Qd1u033aMgpN9UcZ2k7xYDBKbb5+pAmTYGgD xC0edVXG08xxx5WF8v25YYSNhl7HmBj9YBcqUxBZKs17aXRlpwxG6PgS2mETq4g6D47P b/+wh1/eVUzBRinby/9SHWDbNCMO7HEhhQvRfOihSoqAuNP2z00/tm9PPpJqXaBngIua gUXFe57xxGWupNlan4xHj5ulZWnqY6FKmEJ00v+KbEbiHhP+rvhpjyEX1zjTqlJE75EW Iiyc2AY4u/qxd3536giEWMQrGCiPYXOZ0VVJbuqFv1J1Ws1noO/dSsWJolYOORmclwWU rPuw== 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:mime-version:content-transfer-encoding; bh=VcM2nk9n3X98Yf/dvDVr4bULZaEs8I54Pvp1eUOtnUY=; b=VghF6NOH1GZdwfl77rm9tEgOBTieHUIB8ikTrcQ1mViMxEuafDntn+481g2AXOWhEf Ov4hdMAgdeTBxdyhw7Nq6gt8ajPVINhjUZcMIY/qoze4VfmARfmOhLM5PqSeZ3EY2Z3S bz7SZAgqArLvRvbyccp5UmMirUOhXTE3u4AZaEZ6AflG8HR98J1P24G2bFR8eb7XS+Q+ ZMNRjq0FZ9FsXPMXn8Hf0sy9cWtSbDgk0eqoOgFoFZp6VL0LtAIggsKleNIG84E7Sxrg MNCj7A/MCxsFQjimdLoDIo5q7ihKOgqGrZc6i6K4PXZEMM6NoZyp6YGOkNjw/F0nRttg xjUA== X-Gm-Message-State: APjAAAUp/nJnI6ohfMjbgku2p+o2noDsj8BWazLr9fZDbsMXXVOrqmcH TkEeQ5b3qBp8bKtZdcM8tsuG9qrUdHE= X-Received: by 2002:a17:90a:8a91:: with SMTP id x17mr7257741pjn.95.1564647694091; Thu, 01 Aug 2019 01:21:34 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id p19sm80677529pfn.99.2019.08.01.01.21.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Aug 2019 01:21:33 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: stable@vger.kernel.org Cc: Viresh Kumar <viresh.kumar@linaro.org>, Julien Thierry <Julien.Thierry@arm.com>, linux-arm-kernel@lists.infradead.org, Catalin Marinas <catalin.marinas@arm.com>, Marc Zyngier <marc.zyngier@arm.com>, Mark Rutland <mark.rutland@arm.com>, Will Deacon <will.deacon@arm.com>, Russell King <rmk+kernel@arm.linux.org.uk>, Vincent Guittot <vincent.guittot@linaro.org>, mark.brown@arm.com, guohanjun@huawei.com Subject: [PATCH ARM32 v4.4 V2 46/47] ARM: ensure that processor vtables is not lost after boot Date: Thu, 1 Aug 2019 13:46:30 +0530 Message-Id: <1292f4e03c65f4cfa4665df9c0e6f7fb8bd526cc.1564646727.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b In-Reply-To: <cover.1564646727.git.viresh.kumar@linaro.org> References: <cover.1564646727.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
V4.4 backport of arm32 Spectre patches
|
expand
|
diff --git a/arch/arm/mm/proc-macros.S b/arch/arm/mm/proc-macros.S index 212147c78f4b..d36a283b4099 100644 --- a/arch/arm/mm/proc-macros.S +++ b/arch/arm/mm/proc-macros.S @@ -259,6 +259,13 @@ .endm .macro define_processor_functions name:req, dabort:req, pabort:req, nommu=0, suspend=0, bugs=0 +/* + * 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) + .section ".rodata" +#endif .type \name\()_processor_functions, #object .align 2 ENTRY(\name\()_processor_functions) @@ -294,6 +301,9 @@ ENTRY(\name\()_processor_functions) .endif .size \name\()_processor_functions, . - \name\()_processor_functions +#if 1 // defined(CONFIG_BIG_LITTLE) && defined(CONFIG_HARDEN_BRANCH_PREDICTOR) + .previous +#endif .endm .macro define_cache_functions name:req