doc/share/security/patches/SA-02:22/mmap.patch
Bjoern A. Zeeb 3571e53040 Import FreeBSD Security Advisories and Errata Notices, as well as their
patches for easier mirroring, to eliminate a special copy, to make
www.freebsd.org/security a full copy of security.freebsd.org and be
eventually be the same.

For now files are just sitting there.   The symlinks are missing.

Discussed on:	www (repository location)
Discussed with:	simon (so)
2012-08-15 06:19:40 +00:00

17 lines
660 B
Diff

Index: sys/vm/vm_map.c
diff -u sys/vm/vm_map.c:1.187.2.12 sys/vm/vm_map.c:1.187.2.13
--- sys/vm/vm_map.c:1.187.2.12 Sat Nov 10 16:27:09 2001
+++ sys/vm/vm_map.c Fri Mar 8 11:22:20 2002
@@ -1741,8 +1741,11 @@
* to write out.
* We invalidate (remove) all pages from the address space
* anyway, for semantic correctness.
+ *
+ * note: certain anonymous maps, such as MAP_NOSYNC maps,
+ * may start out with a NULL object.
*/
- while (object->backing_object) {
+ while (object && object->backing_object) {
object = object->backing_object;
offset += object->backing_object_offset;
if (object->size < OFF_TO_IDX( offset + size))