aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/SA-22:11/vm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'website/static/security/patches/SA-22:11/vm.patch')
-rw-r--r--website/static/security/patches/SA-22:11/vm.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/website/static/security/patches/SA-22:11/vm.patch b/website/static/security/patches/SA-22:11/vm.patch
new file mode 100644
index 0000000000..81ceba7893
--- /dev/null
+++ b/website/static/security/patches/SA-22:11/vm.patch
@@ -0,0 +1,16 @@
+--- sys/vm/vm_fault.c.orig
++++ sys/vm/vm_fault.c
+@@ -2107,6 +2107,13 @@
+ VM_OBJECT_WLOCK(dst_object);
+ goto again;
+ }
++
++ /*
++ * See the comment in vm_fault_cow().
++ */
++ if (src_object == dst_object &&
++ (object->flags & OBJ_ONEMAPPING) == 0)
++ pmap_remove_all(src_m);
+ pmap_copy_page(src_m, dst_m);
+
+ /*