From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 85FB1C433F5 for ; Tue, 25 Jan 2022 09:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ozbJGDvSrAZTOXlHDt1y7gcmmWGZq3AKdVBidJVZFJA=; b=yG2EFyhi/VPxW9 6WRclISkKd3u8DEJLpZXVj6UPlqA+1a9f6DeauxwHiwRZQH6F/7wecdj5NGJt6FQZOrr6CHp9K0rj Nv/LNCCzFAe2S1YX31yYh6V/IGeiwjPgqAtGsSd+7tua1VSH+bWIN55CzXZm3rygH3DUtHEQak/5F ydqFtkH5tQsTIMazUXd/8bL6FAFZjx+qciIp5R9g7ZqoHAvJzuiQkkSpVXhVXCNhVdA1yA6BZN3dY 4GKOty8GiyTfQjvtaByslXb8b1sfdgARzF8MZZGKlEZiiFhf6k65aVO/JLMEwXQRnRn5KzEiPnCjQ 8H5zAeDJLztxwCP7hmhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCIGQ-007Ckt-Jk; Tue, 25 Jan 2022 09:37:22 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCHup-0073LL-Hp for linux-arm-kernel@lists.infradead.org; Tue, 25 Jan 2022 09:15:05 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D3D2261365; Tue, 25 Jan 2022 09:15:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C2CEC340E0; Tue, 25 Jan 2022 09:14:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643102102; bh=80GpadFNKVGiePMC5wFZfr7KNkkn+bT2EEfR4nbBbso=; h=From:To:Cc:Subject:Date:From; b=LGPkh9/08+yZa0xBiBCYKS1OqRmf5rRIPWStvgxqZYpzXcQncPscuP+wp00GbBCzm CTTvrpnSz+/rBz/sJs2i45xmNZ3pbzLxfUfpmsb4Zb2TbkQ+GJFZ3zYWPrjErU6vyw xc4u9dd3RjhXk1HH4fc6ujMdIFG7reF7wlmLa2VIkfiotzCBmnr5e7+MBf7sKH2pgn g4PwdW+dqYXL9gBX0cr0wNjcLG5X/6Cu2dfJ6WrLeiXk6coYZt/zX/rxKjsIDoWuHM FImXzeMed7RBF79SCDJkXhEt2d5KK7lnoGIBYiTtc9xFPP7Ojw3EMf2TqzxirCl5qK mohUweHI0O9fA== From: Ard Biesheuvel To: linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org Cc: linux-hardening@vger.kernel.org, Ard Biesheuvel , Arnd Bergmann , Kees Cook , Keith Packard , Linus Walleij , Nick Desaulniers , Marc Zyngier Subject: [PATCH v6 0/8] ARM vmap'ed and IRQ stacks roundup Date: Tue, 25 Jan 2022 10:14:45 +0100 Message-Id: <20220125091453.1475246-1-ardb@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2498; h=from:subject; bh=80GpadFNKVGiePMC5wFZfr7KNkkn+bT2EEfR4nbBbso=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBh7798kogx0Vqb3GMM9c0zSDJLVJ+D8muTYRPe7v4x qYSy3qOJAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCYe+/fAAKCRDDTyI5ktmPJKEhC/ 9Z9RMyWwePwof0dLE2g4M66KQhl/JfYZ1Rxh/YmfjkzDqkRCFuJikuc+IbG2VKU26+lNmXduOF2qK/ UE284SxTfHxceYuST1K+/SETnhEe+ftFiWnw/6oW9V/71DjW9b7iBXXdwE3ZxwN0TQfVBozkvyjKAf 3LLhB+H+SobsSnltxy/ux+JAj1MnseeFS0RcmcBKhghC0c48X9xmSaKnnXqiyp3fn/u59kojkwFv0F pqUu/y/1+t3jdyaIfRif1iQrvc1ncP+xB5dpn+Yf2J1MwGgM2ya/cYstFsKNjlSURTpju58l0xReQc K0IAt9EagbvCiUcFmVPWVJyCvYDDv11kHXp1jw19I0ZP7GrKKydbscBfRDqN0aIhyMvnzkSlxBPEZ5 1VOi0map0hhPfiqf/jCanEbFwbMtsexI9GiiMyUaBH/PoKNK3UBI7Ufh7tQFQCkfvh5eVxYWQB3zuJ oOfx5J5p5sVtc5fUURmqXTMEueZZ7MXF7XiVNuxuzmkTw= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220125_011503_719101_119F7F14 X-CRM114-Status: GOOD ( 15.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This v6 series is a followup to [0], and presents the proposed changes as a set of delta patches against the v4 that was already taken into rmk/devel-stable, and dropped from v5.17 when it turned out that were unresolved issues related to suspend/resume. These patches apply onto rmk/devel-stable directly, which means there is an unresolved conflict with the changes that landed in v5.17-rc1 via the ARM tree: these will need to be handled by the maintainer. Code can be found under the arm-vmap-stacks-v6 tag at git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git [0] https://lore.kernel.org/linux-arm-kernel/20220124174744.1054712-1-ardb@kernel.org/ Cc: Russell King Cc: Arnd Bergmann Cc: Kees Cook Cc: Keith Packard Cc: Linus Walleij Cc: Nick Desaulniers Cc: Marc Zyngier Ard Biesheuvel (8): ARM: mm: switch to swapper_pg_dir early for vmap'ed stack ARM: assembler: define a Kconfig symbol for group relocation support ARM: smp: elide HWCAP_TLS checks or __entry_task updates on SMP+v6 ARM: entry: avoid clobbering R9 in IRQ handler ARM: mm: make vmalloc_seq handling SMP safe ARM: iop: make iop_handle_irq() static ARM: drop pointless SMP check on secondary startup path ARM: make get_current() and __my_cpu_offset() __always_inline arch/arm/Kconfig | 13 +++++++++- arch/arm/include/asm/assembler.h | 8 +++---- arch/arm/include/asm/current.h | 10 ++++---- arch/arm/include/asm/mmu.h | 2 +- arch/arm/include/asm/mmu_context.h | 22 +++++++++++++++-- arch/arm/include/asm/page.h | 3 +-- arch/arm/include/asm/percpu.h | 6 ++--- arch/arm/include/asm/switch_to.h | 4 ++-- arch/arm/include/asm/tls.h | 22 ++++++++++++----- arch/arm/kernel/entry-armv.S | 9 ++++--- arch/arm/kernel/entry-header.S | 17 ++++++------- arch/arm/kernel/head.S | 7 ++++++ arch/arm/kernel/module.c | 7 +++++- arch/arm/kernel/sleep.S | 7 ++++++ arch/arm/kernel/smp.c | 5 ---- arch/arm/kernel/traps.c | 25 ++++++-------------- arch/arm/mach-iop32x/irq.c | 2 +- arch/arm/mm/context.c | 3 +-- arch/arm/mm/ioremap.c | 18 ++++++++------ 19 files changed, 115 insertions(+), 75 deletions(-) -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel