NetBSD Problem Report #60376

From www@netbsd.org  Sat Jun 27 22:19:56 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "R13" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7AB771A923B
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 27 Jun 2026 22:19:56 +0000 (UTC)
Message-Id: <20260627221955.51FFC1A923C@mollari.NetBSD.org>
Date: Sat, 27 Jun 2026 22:19:55 +0000 (UTC)
From: kevin.bowling@kev009.com
Reply-To: kevin.bowling@kev009.com
To: gnats-bugs@NetBSD.org
Subject: uvm_km: missing pmap_update on free
X-Send-Pr-Version: www-1.0
X-From4GNATS: "kevin.bowling@kev009.com via gnats" <gnats-admin@NetBSD.org>

>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
>Last-Modified:  Sun Jun 28 09:35:03 +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  mkrepro@mkrepro.NetBSD.org:/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

>Audit-Trail:
From: "Kevin Bowling" <kbowling@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60376 CVS commit: src/sys/uvm
Date: Sun, 28 Jun 2026 03:31:31 +0000

 Module Name:	src
 Committed By:	kbowling
 Date:		Sun Jun 28 03:31:31 UTC 2026

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

 Log Message:
 uvm_km_pgremove: pmap_update before freeing pages

 Update the commentary in uvm_km_free to reflect this reality while here

 Reviewd by skrll@

 PR kern/60376


 To generate a diff of this commit:
 cvs rdiff -u -r1.167 -r1.168 src/sys/uvm/uvm_km.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60376 CVS commit: [netbsd-11] src/sys/uvm
Date: Sun, 28 Jun 2026 09:29:56 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Jun 28 09:29:56 UTC 2026

 Modified Files:
 	src/sys/uvm [netbsd-11]: uvm_km.c

 Log Message:
 Pull up following revision(s) (requested by kbowling in ticket #346):

 	sys/uvm/uvm_km.c: revision 1.168

 uvm_km_pgremove: pmap_update before freeing pages

 Update the commentary in uvm_km_free to reflect this reality while here
 Reviewd by skrll@

 PR kern/60376


 To generate a diff of this commit:
 cvs rdiff -u -r1.166.2.1 -r1.166.2.2 src/sys/uvm/uvm_km.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60376 CVS commit: [netbsd-10] src/sys/uvm
Date: Sun, 28 Jun 2026 09:31:10 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Jun 28 09:31:10 UTC 2026

 Modified Files:
 	src/sys/uvm [netbsd-10]: uvm_km.c

 Log Message:
 Pull up following revision(s) (requested by kbowling in ticket #1293):

 	sys/uvm/uvm_km.c: revision 1.168

 uvm_km_pgremove: pmap_update before freeing pages

 Update the commentary in uvm_km_free to reflect this reality while here
 Reviewd by skrll@

 PR kern/60376


 To generate a diff of this commit:
 cvs rdiff -u -r1.162.4.2 -r1.162.4.3 src/sys/uvm/uvm_km.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60376 CVS commit: [netbsd-9] src/sys/uvm
Date: Sun, 28 Jun 2026 09:32:45 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Jun 28 09:32:44 UTC 2026

 Modified Files:
 	src/sys/uvm [netbsd-9]: uvm_km.c

 Log Message:
 Pull up following revision(s) (requested by kbowling in ticket #2023):

 	sys/uvm/uvm_km.c: revision 1.168

 uvm_km_pgremove: pmap_update before freeing pages

 Update the commentary in uvm_km_free to reflect this reality while here
 Reviewd by skrll@

 PR kern/60376


 To generate a diff of this commit:
 cvs rdiff -u -r1.146.4.1 -r1.146.4.2 src/sys/uvm/uvm_km.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.