The branch stable/14 has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=24b82123a83e375f2b4a045c4bff3fb869a7c9dc

commit 24b82123a83e375f2b4a045c4bff3fb869a7c9dc
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2025-03-26 09:34:53 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2025-04-15 02:25:24 +0000

    i386: Avoid registering overlapping vm_phys_seg entries
    
    The entry added in pmap_bootstrap() is guaranteed to be covered by that
    added in pmap_cold().  This apparently went unnoticed until commit
    8a14ddcc1d8e ("vm_phys: Check for overlap when adding a segment").
    
    PR:             285415
    Tested by:      dim
    MFC after:      2 weeks
    
    (cherry picked from commit e173855c9f6b3b87c975418d0acf1c22ac4f1626)
---
 sys/i386/i386/pmap.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 5e750b48ec5e..828e39b58cac 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -624,15 +624,6 @@ __CONCAT(PMTYPE, bootstrap)(vm_paddr_t firstaddr)
 
        res = atop(firstaddr - (vm_paddr_t)KERNLOAD);
 
-       /*
-        * Add a physical memory segment (vm_phys_seg) corresponding to the
-        * preallocated kernel page table pages so that vm_page structures
-        * representing these pages will be created.  The vm_page structures
-        * are required for promotion of the corresponding kernel virtual
-        * addresses to superpage mappings.
-        */
-       vm_phys_early_add_seg(KPTphys, KPTphys + ptoa(nkpt));
-
        /*
         * Initialize the first available kernel virtual address.
         * However, using "firstaddr" may waste a few pages of the

Reply via email to