Subject: Re: -current amd64 kernel diagnostic assertion in sys/uvm/uvm_page.c
To: None <njoly@pasteur.fr>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: current-users
Date: 10/12/2006 08:17:32
--NextPart-20061012080952-0604201
Content-Type: Text/Plain; charset=us-ascii

> I'm able to reproduce it at will ... Just try, from another machine,
> to get an JPEG image (37B) in an HTML page (2KB) using bozohttpd (from
> pkgsrc/www) launched from inetd.

can you try the attached patch?  thanks.

YAMAMOTO Takashi

--NextPart-20061012080952-0604201
Content-Type: Text/Plain; charset=us-ascii
Content-Disposition: attachment; filename="a.diff"

Index: miscfs/genfs/genfs_vnops.c
===================================================================
--- miscfs/genfs/genfs_vnops.c	(revision 1806)
+++ miscfs/genfs/genfs_vnops.c	(working copy)
@@ -1341,7 +1341,8 @@ genfs_putpages(void *v)
 				pg = tpg;
 			if (tpg->offset < startoff || tpg->offset >= endoff)
 				continue;
-			if (flags & PGO_DEACTIVATE && tpg->wire_count == 0) {
+			if (flags & PGO_DEACTIVATE && tpg->wire_count == 0
+			    && tpg->loan_count == 0) {
 				(void) pmap_clear_reference(tpg);
 				uvm_pagedeactivate(tpg);
 			} else if (flags & PGO_FREE) {

--NextPart-20061012080952-0604201--