On Tue, 01 Dec 2026 17:34:31 +0000, [email protected] wrote: > [Severity: High] > Can udmabuf_vm_huge_fault() and udmabuf_vm_fault() race on the same PMD > entry when the prerequisite "mm: fix races between huge and non-huge > faults in PFN mappings" series is not present in the tree?
[...] Only without that series, as the commit message says: the patch depends on it, and it fixes exactly these three cases in walk_to_pmd(), insert_pfn() and insert_pmd(). It is in mm-core (core-7.5.misc) and linux-next. > [Severity: Medium] > Does pmd_addr_end(vmf->address, vma->vm_end) fail to clamp end to a > single page table on architectures with folded PMDs? [...] > Calculating the upper bound explicitly from (vmf->address & PMD_MASK) + > PMD_SIZE (as folio_pte_range() does in mm/memory.c) would clamp the range > on folded-PMD kernels as well. Right, with a folded PMD pmd_addr_end() returns vma->vm_end and the pre-fault runs to the end of the VMA, as before this patch. Nothing maps a PMD there, so it is not a correctness issue, but the range is not limited as the commit message says. I'll compute the bound from (vmf->address & PMD_MASK) + PMD_SIZE in v4. Thanks, Qiliang
