From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB7E6606A31A for ; Tue, 1 Dec 2026 16:49:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=OWVCj0kJ; dkim=fail reason="signature verification failed" (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=q34jO64c 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:In-Reply-To:MIME-Version:References: 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-Unsubscribe-Post:List-Owner; bh=Tk5HW4smqnZZ4wE+wu67G2jtvcx0uQSyWDUAWYTCdpQ=; b=OWVCj0kJOXBHryOfJhPuDoodnu XvATrzPUSlGIG7fLY6vdaHf5IgSR87b4e30e5tohkReHbuZQw+sWkHHceQgf8pCwtuL/YNDL56Upv OeMoECaOPyRT0c8eeDSfSFfU0DZPnHVHAOTrPwNtxUEBk4rFqmnX4JkojTr7IPGDYyopa4jB1rp/S JiJqKA6LmHLTN/7rjbZpD22Vb5k1CNRyy+1gMos30mL044Mi1I43eRF2D1d3goDDF/k4vtVnKdB8k DCMvgqw8Moh43Rw1ZSOZm2pLI+eyRPg9XDk5e2wl1k4chlszdD97vkXyDsWDieYcnW2LIUUUvlGsw 9itapGHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYR2V-00000008mcK-47n5; Tue, 01 Dec 2026 16:49:11 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYR2T-00000008mb5-23Nm; Tue, 01 Dec 2026 16:49:10 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C9E3719F0; Tue, 1 Dec 2026 08:49:05 -0800 (PST) Received: from e129823.arm.com (e129823.arm.com [10.2.213.3]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1319B3F86F; Tue, 1 Dec 2026 08:49:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796143748; bh=Puzsh3vA1l/TDN1MUa7oGbBgUI+wtcPTwleRFmSyhE8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q34jO64cyCD1vHQnFzQaOi++EvjLlAHwwHdyJ5h1P/1lGjqq8tVcoEEyTJASx+S6e EAi8LezbQFW+pbLFXYz3Phhn/gTPxz8P8xPAHFH5w6Q5Czw7oe8Wd6UMpp/fNpEmFu 4po5p+N6cCv3MgOmnDJsEprVsV9s3Ou1Fqkgb9v0= Date: Tue, 1 Dec 2026 16:48:59 +0000 From: Yeoreum Yun To: "David Hildenbrand (Arm)" Cc: Yeoreum Yun , Russell King , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Catalin Marinas , Will Deacon , Arnd Bergmann , Andrew Morton , Kairui Song , Qi Zheng , Shakeel Butt , Barry Song , Axel Rasmussen , Yuanchu Xie , Wei Xu , Johannes Weiner , Michal Hocko , Lorenzo Stoakes , Tianrui Zhao , Bibo Mao , Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jonas Bonn , Stefan Kristiansson , Stafford Horne , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-openrisc@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3 01/20] mm/pgtable: define (pgd|p4d|pud)_offset_lockless() for folded page tables Message-ID: References: <20261130-dummy_ptxp3-v3-0-456081a8ed0e@arm.com> <20261130-dummy_ptxp3-v3-1-456081a8ed0e@arm.com> <1a14468d-5764-419f-9ff6-cf75e5bd74a6@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1a14468d-5764-419f-9ff6-cf75e5bd74a6@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_084909_605152_F0058A99 X-CRM114-Status: GOOD ( 17.61 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, Dec 01, 2026 at 12:21:46PM +0100, David Hildenbrand (Arm) wrote: > On 11/30/26 18:18, Yeoreum Yun wrote: > > From: "David Hildenbrand (Arm)" > > We should adjust the title to > > > mm/pgtable: define (p4d|pud|pmd)_offset_lockless() for folded page tables > > > > > The default helpers fallback to pud_offset(), passing a pointer to the > > stack value. > > > > Let's provide variants that do exactly what (pgd|p4d|pud)_offset() do, > > but ignore the passed pgd_t/p4d_t/pud_t, consequently not working on a > > pointer to the stack value like the default handlers would. > > > > With this patch, Drop the arm64 custom variant that did that. As it documents: > > s/Drop/drop/ > > > > > Note: reusing the original pointer means that it may be > > dereferenced the same (live) page-table entry multiple times. > > This is safe because it is still only loaded once in the > > context of each level and the CPU guarantees same-address > > read-after-read ordering. > > That's not the actual comment we had in there ;) > > > All things I can fix up. Thanks! -- Sincerely, Yeoreum Yun _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv