Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108586335
D35471.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
589 B
Referenced Files
None
Subscribers
None
D35471.diff
View Options
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -2099,8 +2099,15 @@
goto again;
}
pmap_copy_page(src_m, dst_m);
- VM_OBJECT_RUNLOCK(object);
+
+ /*
+ * The object lock does not guarantee that "src_m" will
+ * transition from invalid to valid, but it does ensure
+ * that "src_m" will not transition from valid to
+ * invalid.
+ */
dst_m->dirty = dst_m->valid = src_m->valid;
+ VM_OBJECT_RUNLOCK(object);
} else {
dst_m = src_m;
if (vm_page_busy_acquire(dst_m, VM_ALLOC_WAITFAIL) == 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 4:12 PM (6 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16200636
Default Alt Text
D35471.diff (589 B)
Attached To
Mode
D35471: vm_fault: Fix a racy copy of page valid bits
Attached
Detach File
Event Timeline
Log In to Comment