Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151105343
D20711.id58941.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
725 B
Referenced Files
None
Subscribers
None
D20711.id58941.diff
View Options
Index: vm_map.c
===================================================================
--- vm_map.c
+++ 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,8 @@
* now will do cow due to allowed write (e.g. debugger sets
* breakpoint on text segment)
*/
+ if (entry->start < start)
+ 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
Tue, Apr 7, 2:38 AM (15 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31007041
Default Alt Text
D20711.id58941.diff (725 B)
Attached To
Mode
D20711: Stop early clipping in vm_map_protect
Attached
Detach File
Event Timeline
Log In to Comment