Page MenuHomeFreeBSD

D20711.diff
No OneTemporary

D20711.diff

Index: head/sys/vm/vm_map.c
===================================================================
--- head/sys/vm/vm_map.c
+++ head/sys/vm/vm_map.c
@@ -2472,11 +2472,8 @@
VM_MAP_RANGE_CHECK(map, start, end);
- if (vm_map_lookup_entry(map, start, &entry)) {
- vm_map_clip_start(map, entry, start);
- } else {
+ if (!vm_map_lookup_entry(map, start, &entry))
entry = entry->next;
- }
/*
* Make a first pass to check for protection violations.
@@ -2515,6 +2512,7 @@
* now will do cow due to allowed write (e.g. debugger sets
* breakpoint on text segment)
*/
+ vm_map_clip_start(map, entry, start);
for (current = entry; current->start < end; current = current->next) {
vm_map_clip_end(map, current, end);

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 8, 4:03 PM (22 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31076203
Default Alt Text
D20711.diff (732 B)

Event Timeline