Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111617309
D21517.id61651.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
736 B
Referenced Files
None
Subscribers
None
D21517.id61651.diff
View Options
Index: sys/vm/vm_map.c
===================================================================
--- sys/vm/vm_map.c
+++ sys/vm/vm_map.c
@@ -2771,6 +2771,17 @@
if (current->eflags & MAP_ENTRY_IS_SUB_MAP)
continue;
+ /*
+ * MADV_FREE would otherwise rewind time to the creation of the
+ * shadow object. Because we hold the VM map read-locked,
+ * neither the entry's object nor the presence of a backing
+ * object can change.
+ */
+ if (behav == MADV_FREE &&
+ current->object.vm_object != NULL &&
+ current->object.vm_object->backing_object != NULL)
+ continue;
+
pstart = OFF_TO_IDX(current->offset);
pend = pstart + atop(current->end - current->start);
useStart = current->start;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 1:54 AM (9 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17023272
Default Alt Text
D21517.id61651.diff (736 B)
Attached To
Mode
D21517: MADV_FREE: Quick fix to time rewind
Attached
Detach File
Event Timeline
Log In to Comment