Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152792508
D22683.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
714 B
Referenced Files
None
Subscribers
None
D22683.diff
View Options
Index: head/sys/vm/vm_map.c
===================================================================
--- head/sys/vm/vm_map.c
+++ head/sys/vm/vm_map.c
@@ -4687,7 +4687,7 @@
vm_map_entry_t entry;
vm_map_t map = *var_map;
vm_prot_t prot;
- vm_prot_t fault_type = fault_typea;
+ vm_prot_t fault_type;
vm_object_t eobject;
vm_size_t size;
struct ucred *cred;
@@ -4731,7 +4731,7 @@
vm_map_growstack(map, vaddr, entry) == KERN_SUCCESS)
goto RetryLookupLocked;
}
- fault_type &= VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE;
+ fault_type = fault_typea & VM_PROT_ALL;
if ((fault_type & prot) != fault_type || prot == VM_PROT_NONE) {
vm_map_unlock_read(map);
return (KERN_PROTECTION_FAILURE);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 18, 3:43 AM (2 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31695891
Default Alt Text
D22683.diff (714 B)
Attached To
Mode
D22683: Fix fault_type handling in vm_map_lookup().
Attached
Detach File
Event Timeline
Log In to Comment