kern/60376: uvm_km: missing pmap_update on free

"[email protected] via gnats" <[email protected]>
Newsgroups gmane.os.netbsd.bugs
Message-ID <[email protected]>
>Number:         60376
>Category:       kern
>Synopsis:       uvm_km: missing pmap_update on free
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 27 22:20:00 +0000 2026
>Originator:     Kevin Bowling
>Release:        trunk
>Organization:
NetBSD
>Environment:
NetBSD kev-ws-t480.cv0.bbox.io 11.99.6 NetBSD 11.99.6 (GENERIC) #0: Sun Jun 21 10:28:09 UTC 2026  [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
uvm_km_pgremove needs similar treatment for pmap_update on free.
>How-To-Repeat:
N/A
>Fix:
One was already committed and pulled back to 9, 10, 11:

Module Name:    src
Committed By:   kbowling
Date:           Sat Jun 27 09:39:57 UTC 2026

Modified Files:
        src/sys/uvm: uvm_km.c

Log Message:
uvm_km_pgremove_intrsafe: drain TLB shootdown before freeing pages

Call pmap_update(pmap_kernel()) between pmap_kremove and the page
free so the shootdown completes first.

Reviewed by skrll@


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/uvm/uvm_km.c
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.