Subject: kern/18037: UVM_PAGE_TRKOWN causes panics
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 08/22/2002 19:29:52
>Number:         18037
>Category:       kern
>Synopsis:       UVM_PAGE_TRKOWN causes panics
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 22 03:42:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 1.6F
>Organization:
>Environment:
	
	
System: NetBSD capybara 1.6F NetBSD 1.6F (build.stg) #: Thu Aug 22 12:36:01 JST 2002 takashi@capybara:/usr/home/takashi/work/kernel/build.stg i386
Architecture: i386
Machine: i386
>Description:
	UVM_PAGE_TRKOWN causes assertion failures.
>How-To-Repeat:
	turn on UVM_PAGE_TRKOWN.
	and use page-loaning.
>Fix:

Index: uvm_fault.c
===================================================================
RCS file: /cvs/cvsroot/syssrc/sys/uvm/uvm_fault.c,v
retrieving revision 1.76
diff -u -p -r1.76 uvm_fault.c
--- uvm_fault.c	2002/03/25 01:56:48	1.76
+++ uvm_fault.c	2002/08/22 10:30:43
@@ -1104,11 +1108,11 @@ ReFault:
 				}
 
 				/* install new page in anon */
+				UVM_PAGE_OWN(pg, NULL);
 				anon->u.an_page = pg;
 				pg->uanon = anon;
 				pg->pqflags |= PQ_ANON;
 				pg->flags &= ~(PG_BUSY|PG_FAKE);
-				UVM_PAGE_OWN(pg, NULL);
 
 				/* done! */
 			}     /* ref == 1 */
>Release-Note:
>Audit-Trail:
>Unformatted: