Subject: kern/20028: panics in uvm_page_unbusy
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 01/24/2003 22:03:08
>Number:         20028
>Category:       kern
>Synopsis:       panics in uvm_page_unbusy
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 24 05:04:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 1.6M
>Organization:

>Environment:
	
	
System: NetBSD kaeru 1.6M NetBSD 1.6M (build.kaeru) #: Fri Jan 24 00:56:34 JST 2003 takashi@kaeru:/usr/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
>Description:
	uvm_page_unbusy can dereference PGO_DONTCARE.

>How-To-Repeat:
>Fix:

Index: uvm_page.c
===================================================================
RCS file: /cvs/NetBSD/src/sys/uvm/uvm_page.c,v
retrieving revision 1.81
diff -u -p -r1.81 uvm_page.c
--- uvm_page.c	2002/11/09 20:11:01	1.81
+++ uvm_page.c	2003/01/24 12:32:21
@@ -1332,7 +1332,7 @@ uvm_page_unbusy(pgs, npgs)
 
 	for (i = 0; i < npgs; i++) {
 		pg = pgs[i];
-		if (pg == NULL) {
+		if (pg == NULL || pg == PGO_DONTCARE) {
 			continue;
 		}
 		if (pg->flags & PG_WANTED) {
>Release-Note:
>Audit-Trail:
>Unformatted: