Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144626030
D14347.1775856224.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
702 B
Referenced Files
None
Subscribers
None
D14347.1775856224.diff
View Options
Index: sys/vm/vm_fault.c
===================================================================
--- sys/vm/vm_fault.c
+++ sys/vm/vm_fault.c
@@ -1135,6 +1135,10 @@
*/
pmap_copy_page(fs.m, fs.first_m);
fs.first_m->valid = VM_PAGE_BITS_ALL;
+ if ((fault_flags & VM_FAULT_WIRE) == 0) {
+ prot &= ~VM_PROT_WRITE;
+ fault_type &= ~VM_PROT_WRITE;
+ }
if (wired && (fault_flags &
VM_FAULT_WIRE) == 0) {
vm_page_lock(fs.first_m);
@@ -1219,6 +1223,12 @@
* write-enabled after all.
*/
prot &= retry_prot;
+ fault_type &= retry_prot;
+ if (prot == 0) {
+ release_page(&fs);
+ unlock_and_deallocate(&fs);
+ goto RetryFault;
+ }
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 9:23 PM (4 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28319929
Default Alt Text
D14347.1775856224.diff (702 B)
Attached To
Mode
D14347: Ensure memory consistency on COW
Attached
Detach File
Event Timeline
Log In to Comment