summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2015-10-09 03:38:58 +0000
committeralc <alc@FreeBSD.org>2015-10-09 03:38:58 +0000
commitde91cc41c3a3a4e2606c2cbacaafcf9c9edb21e3 (patch)
tree935d86d18613f5c34e5fe07fa836995ad2aafed2
parentb2ce78db72abfaead523052884a96ee7babba067 (diff)
downloadFreeBSD-src-de91cc41c3a3a4e2606c2cbacaafcf9c9edb21e3.zip
FreeBSD-src-de91cc41c3a3a4e2606c2cbacaafcf9c9edb21e3.tar.gz
Exploit r288122 to avoid pointlessly enqueueing a page that is about to be
freed. Submitted by: kmacy Differential Revision: https://reviews.freebsd.org/D1674
-rw-r--r--sys/vm/vm_glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 92ee794..f00dce1 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -418,7 +418,7 @@ vm_thread_stack_dispose(vm_object_t ksobj, vm_offset_t ks, int pages)
if (m == NULL)
panic("vm_thread_dispose: kstack already missing?");
vm_page_lock(m);
- vm_page_unwire(m, PQ_INACTIVE);
+ vm_page_unwire(m, PQ_NONE);
vm_page_free(m);
vm_page_unlock(m);
}
OpenPOWER on IntegriCloud