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 6AB32C433FE for ; Mon, 24 Jan 2022 18:23:02 +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:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+0ZV9cq1AxmZ9IYmmNWyCiYjRBvXOT5CKHhJeeehe50=; b=J9qJvsWUsZBd5F u2oReJoYZ0uM17jEMlkDQGetxKqXrfvV9nb1y2mgj7rSWdzOWLfJt9fTJnI2KbYV7ES1XwDzS4oQ+ szq6qt6pYpKNsKM2fsecoQQn62n6oeTceN7uMfGwOp+846U7D8BBDm2OgX1TXKphJiTOaLKgD6T/Q iXv+9Z4Ec7t/QBk7gDwpfLrbLbj3YxtVaC+H3ihO0aNg/MyM8jP2V8N7qS3o8g4uUXfZ7vmf94khd WDjHZ1+sN6zY4EFxeNcM9DEv2h9/9vt2J5+D0ceizX4zEith8j2rNMU6nW8MF9mV4lyQvquiEerxq S9JOwaZcJkpC+2hYPQZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC3y9-004TLx-CB; Mon, 24 Jan 2022 18:21:33 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC3bV-004Jo6-Ss for linux-arm-kernel@lists.infradead.org; Mon, 24 Jan 2022 17:58:11 +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 ams.source.kernel.org (Postfix) with ESMTPS id 59AF0B811BF for ; Mon, 24 Jan 2022 17:58:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A703C340EA for ; Mon, 24 Jan 2022 17:58:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643047086; bh=aTHOQdCXQUnB/wNqjw3iDec2/r7CAqEr74J/pMucOlg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=E6NQDyA/r5A5iytHS4aGp380BC04xTVs8K3wwCE2e750+Unzo3uVK0I+eMXOuRmI/ v66Ew1QCJJcVp6oB1JWqpU2AvSPzIdT92Ibo3fKxQ6GT7Qc3sT6JcgWUq97JCQ74SC imZGXCXza9MbnzRrG0gxKIcw6YGiyeZAnRngnFdQsQAPGP9Dh06yIbMB53+P4zi+fG cOK01AZpYosXkKSzRV/UnQwyGR6wGSMU6STRgkjdhO7riw8Zpep89njVNo74p5jeEZ yrUopDB/hInJ6z2wsrFNtfHUfFZF1xI6HukVIZ4ARSE1yyumCy3serjb9fPmJqri26 IsOyqL2XwwyeQ== Received: by mail-wr1-f42.google.com with SMTP id u15so15105709wrt.3 for ; Mon, 24 Jan 2022 09:58:06 -0800 (PST) X-Gm-Message-State: AOAM531FmGAr9POTFRJjY3hrtg998kk1rR+TR05J0e5NrL7HelF6nPvC s4ckAkndVSnmAXgOeCe3LJTGjKHkUWgYeT1DWhY= X-Google-Smtp-Source: ABdhPJz2nq8tcg3HcmidBFh6YwjBU/lHKcpKZB6g/GHOXP7zcPL95P9UB+vxVacLoBLMXH6DBy9XQEZBySWbHR9M074= X-Received: by 2002:adf:fa91:: with SMTP id h17mr14774846wrr.189.1643047084859; Mon, 24 Jan 2022 09:58:04 -0800 (PST) MIME-Version: 1.0 References: <20220124174744.1054712-1-ardb@kernel.org> In-Reply-To: From: Ard Biesheuvel Date: Mon, 24 Jan 2022 18:57:52 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 00/32] ARM vmap'ed and IRQ stacks roundup To: "Russell King (Oracle)" Cc: Linux ARM , linux-hardening@vger.kernel.org, Nicolas Pitre , Arnd Bergmann , Kees Cook , Keith Packard , Linus Walleij , Nick Desaulniers , Tony Lindgren , Marc Zyngier , Vladimir Murzin , Jesse Taube X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220124_095810_258922_731133DD X-CRM114-Status: GOOD ( 31.80 ) 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 On Mon, 24 Jan 2022 at 18:57, Russell King (Oracle) wrote: > > On Mon, Jan 24, 2022 at 06:47:12PM +0100, Ard Biesheuvel wrote: > > This v5 series is a combined followup to > > > > - IRQ stacks support for v7 SMP systems [0], > > - vmap'ed stacks support for v7 SMP systems[1], > > - extending support for both IRQ stacks and vmap'ed stacks for all > > remaining configurations, including v6/v7 SMP multiplatform kernels > > and uniprocessor configurations including v7-M [2] > > > > [0] https://lore.kernel.org/linux-arm-kernel/20211115084732.3704393-1-ardb@kernel.org/ > > [1] https://lore.kernel.org/linux-arm-kernel/20211122092816.2865873-1-ardb@kernel.org/ > > [2] https://lore.kernel.org/linux-arm-kernel/20211206164659.1495084-1-ardb@kernel.org/ > > > > This work was queued up in the ARM tree for a while, but due to problems > > with the vmap'ed stacks code, which was difficult to revert in > > isolation, the whole stack was dropped again. > > > > In order to prevent similar problems from occurring this time around, > > the series was reorganized so that the vmap'ed stacks changes appear at > > the very end, which also results in a more natural progression of the > > changes. > > > > Changes since v4: > > - incorporate fixups to avoid build failures on Clang related to > > literals in subsections, > > - switch from the ID map to swapper_pg_dir as early as possible when > > onlining a CPU on !LPAE, to ensure that the stack is mapped, > > - use SMP_ON_UP patching to elide HWCAP_TLS tests on SMP+v6, > > - clean up __switch_to() for Thumb2 a bit more, > > - add patch to make the vmalloc_seq counter SMP safe, > > - use enter_lazy_tlb() hook on !LPAE to ensure that the active_mm used > > by a kernel thread has a mapping for its vmap'ed stack, > > Hi Ard, > > I still have the original code in devel-stable, and being a guaranteed > stable branch, it's not something I'll be dropping... Please can I have > fixes on top of what is already there please? > Sure. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel