Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151331568
D20711.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
732 B
Referenced Files
None
Subscribers
None
D20711.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D20711: Stop early clipping in vm_map_protect
Attached
Detach File
Event Timeline
Log In to Comment