From dec6db6bc1834fac20d3841f4ea0085c8c568793 Mon Sep 17 00:00:00 2001 From: Ariane van der Steldt Date: Tue, 2 Jun 2009 19:49:09 +0000 Subject: Clear PQ_ENCRYPT flag on uvm_pagefree, because free pages are by definition not encrypted. --- sys/uvm/uvm_page.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/uvm/uvm_page.c') diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c index 1d88b3b5209..47e7c91582f 100644 --- a/sys/uvm/uvm_page.c +++ b/sys/uvm/uvm_page.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_page.c,v 1.82 2009/06/01 19:54:02 oga Exp $ */ +/* $OpenBSD: uvm_page.c,v 1.83 2009/06/02 19:49:08 ariane Exp $ */ /* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */ /* @@ -1110,8 +1110,8 @@ uvm_pagefree(struct vm_page *pg) /* * Clean page state bits. */ - atomic_clearbits_int(&pg->pg_flags, - PG_ZERO|PG_FAKE|PG_BUSY|PG_RELEASED|PG_CLEAN|PG_CLEANCHK); + atomic_clearbits_int(&pg->pg_flags, PG_ZERO|PG_FAKE|PG_BUSY| + PG_RELEASED|PG_CLEAN|PG_CLEANCHK|PQ_ENCRYPT); /* * Pmap flag cleaning. * XXX: Shouldn't pmap do this? -- cgit v1.2.3