From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796145780; b=dtGwbNLXRiYLaBdQQyK4dNSvFz59sqHhXG+nGsfCj0IoUPeOqHpw1vPJeBXWXIYePG0/ kaDFXk8Tzcza1jHiVKScaPwLQGiRXvT5FxjP0AxNWKS4YZCyY6sroSP43F9LHPIdunpGH bOzj1eNxDIGs7qe95VD+IpPDxta3nzQhQvJLRGCgbzp+lLjVbgkffmetc9GmPt8leRQBo 9AjMciCtiq83kWNm5SgScHEAFaqS8ZRPaZa/RQecNWQOLdJrKt50sbfT1sUoEH0PNBp3M Y0rVfNSQTHSeevAUpUvmDdk7AEQNIFsqI0qZ2woPkYD3EtP7YjZJyUZ5KrcCsEcjTfw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796145780; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=nfTIdXlmosdXjEVY+OiGg4fO49hGpPKlTG3itMK2ojI=; b=QaVc8euQMPC64RtLFWGaNkbbz1i7HHz+igBFgso29o/d/DRaRiyw0DAQLEXXKuYS6xnJ GE7vV1Bv/X+WbYN1tEsZAHc1TkCCbc65FB1NNqLNmz4S3YtF3hqE8ASb+UoJRxcBS0p3J gIuWKS+xUgMAQNmcAPvC8uK4eONjpZM9iUsXU26Q1rWYxd8rhxJMMl92hKfMYrCUh+Ogv 72FLKB4jApRogCv8hF7hsQec8IkmWOWgwy3MHBk/VSYEhZ+rw6AMSlfoEd9mXjQJf6Xem KdRwH07CCDUwsmlrYe85fzeWexiflEwOoIT0C4xmL64JFTVS49K+JzUilv7oRf3FqZQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IH9FSWTd; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 237B7606A31A for ; Tue, 1 Dec 2026 17:23:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IH9FSWTd Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34A251F00898; Tue, 1 Dec 2026 17:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796145779; bh=nfTIdXlmosdXjEVY+OiGg4fO49hGpPKlTG3itMK2ojI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=IH9FSWTdTdl2XsqB+X5DTb69E0OylzY8OkdBmTn6woHgG8++9YV1A8uX7o2iwylPc ogTbE4GNWkTF9z8gxm/N0vXzf26SnepmP73cBjFwthpnJPtQECYF82GDYYAQ7OaEKI cDFkAFz4de2zC9qRgyMol7cNmzHdGPuHxXOdbZ51LcYwdFhk6A3kuCi3WngVFNWwiC FctuUgOZ3J/F7f7MiR0BSCKN2Swd5r8GvzjkvwTj3zSEtSmYT5VaSsVzuFIbkLRAby 5la5MCcisrUXEVVLBrHKL2ttO1BCOEPyJnlOYs/e9OsPM9gNCmu1g1YBfqcNfqs5Cp 8maJiM4j5zYFA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 01/20] mm/pgtable: define (pgd|p4d|pud)_offset_lockless() for folded page tables Reply-To: sashiko-reviews@lists.linux.dev To: "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" , "David Hildenbrand" , "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" Cc: linux-mm@kvack.org, kvm@vger.kernel.org In-Reply-To: <20261130-dummy_ptxp3-v3-1-456081a8ed0e@arm.com> References: <20261130-dummy_ptxp3-v3-0-456081a8ed0e@arm.com> <20261130-dummy_ptxp3-v3-1-456081a8ed0e@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 17:22:56 +0000 X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] mm/pgtable: malformed Fixes trailer and invalid SHA in commit message - [Low] mm/pgtable: commit message names pgd_offset_lockless() instead of pmd -- commit 3558f8943a2ab5b3879ee12e7d219a0b5b608f31 Author: David Hildenbrand (Arm) > mm/pgtable: define (pgd|p4d|pud)_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. [Severity: Low] This patch defines p4d_offset_lockless(), pud_offset_lockless(), and pmd_offset_lockless() in the folded page-table headers (there is no pgd_offset_lockless()). Should the subject and description refer to (p4d|pud|pmd)_offset_lockless() and (p4d|pud|pmd)_offset() instead of (pgd|p4d|pud)? > With this patch, Drop the arm64 custom variant that did that. As it docum= ents: > > 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. > > Do not document this, as the double read will be removed in the next patc= h. > > Also, this patch fixes the pXd leaf recheck in fast GUP to read the live > entry rather than a stack copy, ensuring that concurrent mapping changes > are detected when the pXd level is folded. > > Fixes: Fixes: d3f7b1bb2049 ("mm/gup: fix gup_fast with dynamic page table= folding") > Cc: > Signed-off-by: David Hildenbrand (Arm) [Severity: Low] The Fixes: tag has a duplicated prefix and a typo in the 12-character commit hash (d3f7b1bb2049 does not exist in git history). It should be: Fixes: d3f7b1bb2040 ("mm/gup: fix gup_fast with dynamic page table foldin= g") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130-dummy_ptxp= 3-v3-0-456081a8ed0e@arm.com?part=3D1