diff options
author | alc <alc@FreeBSD.org> | 2015-10-09 03:38:58 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2015-10-09 03:38:58 +0000 |
commit | de91cc41c3a3a4e2606c2cbacaafcf9c9edb21e3 (patch) | |
tree | 935d86d18613f5c34e5fe07fa836995ad2aafed2 | |
parent | b2ce78db72abfaead523052884a96ee7babba067 (diff) | |
download | FreeBSD-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.c | 2 |
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); } |