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 E1BA8C88E75 for ; Wed, 16 Sep 2026 02:01:39 +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:References:In-Reply-To: Message-Id:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DVjHw6LdiZDNT54a8EKbI7aMeKri0hBby9+ezNd6szI=; b=nTxwOsBnMxKtxh K07Z0EewiHQSn3yj0i59IQgmbjtGJaQIK21hX3yZNLOz0uhxNiTI3Kl3IivaGl4cZZZm/vjaXLGh+ lXoP/hJn5cKcxFBu8I7tbTkGOCtnqHH+kVI0qa9mRChH/N4mwmvzsFDcV2qc0C81FyKV8tFSuJS7h eEx9J5gv8XA3s9QmUfSjKRPjpc6SNebE/ZeXGvmRT8fpuYyYHkcMlBLVHP0StJfytZ9dyJz96xJ8T 79srf9xfInP9GWboFWN84XLLKdP2LJWwi4/BNEzqFoqmHHKZ4PeKNVc5/8CbYw/xYXFteMukFVH1K mr3z4vVGxoGXSG1Y+kgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x6exv-00000008B3g-0UGJ; Wed, 16 Sep 2026 02:01:39 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x6exs-00000008B33-2kIR; Wed, 16 Sep 2026 02:01:36 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id CDE3560214; Wed, 16 Sep 2026 02:01:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E999D1F00893; Wed, 16 Sep 2026 02:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1789524094; bh=Kq4nX0CZWZvbBl1ewxdrR8njTtxJd2HKKhLZ4yZoin4=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=HA4IrxR+bH6KFYi5TWsVFFRj5NN/KsmXWn+L2rcKXslNm+h4O1+C0Mz1TX/mnbSd5 wNlo1vs7L/RwOu/p4JC+a32HO1/edlho+RmyG7M/c8w2xQw4dUW63KjVSNntMUP6xo zHIhd6HWzSLYzzfxhv0JalmDYIqgVcBuZA1Pa2/U= Date: Tue, 15 Sep 2026 19:01:31 -0700 From: Andrew Morton To: "Lorenzo Stoakes (ARM)" Cc: David Hildenbrand , Zi Yan , Baolin Wang , "Liam R. Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Usama Arif , Kiryl Shutsemau , Guo Ren , Brian Cain , Geert Uytterhoeven , Dinh Nguyen , Simon Schuster , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Russell King , Vineet Gupta , Michal Simek , Chris Zankel , Max Filippov , Will Deacon , "Aneesh Kumar K.V" , Nick Piggin , Peter Zijlstra , "David S. Miller" , Andreas Larsson , Richard Henderson , Matt Turner , Magnus Lindholm , Catalin Marinas , Mark Rutland , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Madhavan Srinivasan , Michael Ellerman , "Christophe Leroy (CS GROUP)" , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Richard Weinberger , Anton Ivanov , Johannes Berg , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Arnd Bergmann , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jason Gunthorpe , John Hubbard , Peter Xu , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-openrisc@vger.kernel.org, linux-sh@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-snps-arc@lists.infradead.org, linux-arch@vger.kernel.org, sparclinux@vger.kernel.org, linux-alpha@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-um@lists.infradead.org, Hugh Dickins , Qi Zheng Subject: Re: [PATCH v3 00/12] mm: make userland page table freeing RCU-safe Message-Id: <20260915190131.adee185f2ce04a8ec821489c@linux-foundation.org> In-Reply-To: <20260911-rcu-pagetable-freeing-v3-0-7b8c86103821@kernel.org> References: <20260911-rcu-pagetable-freeing-v3-0-7b8c86103821@kernel.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org On Fri, 11 Sep 2026 20:36:47 +0100 "Lorenzo Stoakes (ARM)" wrote: > The majority of architectures in the kernel defer page table freeing until > an RCU grace period has elapsed, this series converts all remaining > architectures to do so too and eliminates CONFIG_MMU_GATHER_RCU_TABLE_FREE > altogether. Thanks, I've updated mm.git's mm-unstable branch to this version. > v3: > * Added Kiryl's tag to series (thanks! :) > * Corrected commit message, comment indentation in 11/12 as per Kiryl. > * Corrected 12/12 documentation as per Kiryl. Here's how v3 altered mm.git: Documentation/mm/process_addrs.rst | 4 ++-- include/asm-generic/tlb.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/Documentation/mm/process_addrs.rst~b +++ a/Documentation/mm/process_addrs.rst @@ -541,8 +541,8 @@ We establish basic locking rules when in after an RCU grace period has elapsed. However, any entry found must be revalidated after the page table lock is taken (such as the :c:func:`!pmd_same` recheck performed by :c:func:`!pte_offset_map_lock`) - before it is acted upon. Changing an entry always requires the page table - lock. + before it is acted upon. Changing an entry requires the page table + lock and one of the locks that excludes teardown (mmap or VMA lock). * Reads from and writes to page table entries must be *appropriately* atomic. See the section on atomicity below for details. * Populating previously empty entries requires that the mmap or VMA locks are --- a/include/asm-generic/tlb.h~b +++ a/include/asm-generic/tlb.h @@ -151,8 +151,8 @@ * Page directories (__p*_free_tlb()) are always freed via tlb_remove_table(), * after an RCU grace period (see mm/mmu_gather.c). * - * This serialises against software page-table walkers, including architectures - * which do not use IPIs for remote TLB invalidates. + * This serialises against software page-table walkers, including architectures + * which do not use IPIs for remote TLB invalidates. * * An architecture is expected to provide __tlb_remove_table() (see * HAVE_ARCH_TLB_REMOVE_TABLE) or use the generic __tlb_remove_table(), which _ _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc