summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorariane <ariane@openbsd.org>2009-06-02 19:49:08 +0000
committerariane <ariane@openbsd.org>2009-06-02 19:49:08 +0000
commite5d045dc1100a400fc9906939a84833635ded9eb (patch)
tree2eedb0ec05ab4aa8bb2068d0e2aa1a6cf3783c80
parentspace (diff)
downloadwireguard-openbsd-e5d045dc1100a400fc9906939a84833635ded9eb.tar.xz
wireguard-openbsd-e5d045dc1100a400fc9906939a84833635ded9eb.zip
Clear PQ_ENCRYPT flag on uvm_pagefree, because free pages are by definition
not encrypted.
-rw-r--r--sys/uvm/uvm_page.c6
1 files changed, 3 insertions, 3 deletions
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?