Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154329529
D10349.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
604 B
Referenced Files
None
Subscribers
None
D10349.id.diff
View Options
Index: head/sys/vm/vm_map.c
===================================================================
--- head/sys/vm/vm_map.c
+++ head/sys/vm/vm_map.c
@@ -1965,6 +1965,14 @@
vm_map_lock(map);
+ /*
+ * Ensure that we are not concurrently wiring pages. vm_map_wire() may
+ * need to fault pages into the map and will drop the map lock while
+ * doing so, and the VM object may end up in an inconsistent state if we
+ * update the protection on the map entry in between faults.
+ */
+ vm_map_wait_busy(map);
+
VM_MAP_RANGE_CHECK(map, start, end);
if (vm_map_lookup_entry(map, start, &entry)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 9:28 PM (6 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32306599
Default Alt Text
D10349.id.diff (604 B)
Attached To
Mode
D10349: Busy the map in vm_map_protect()
Attached
Detach File
Event Timeline
Log In to Comment