Add a comment documenting a race condition in vm_fault(): Specifically, a
modification is made to the vm_map while only a read lock is held.
This commit is contained in:
parent
91e007dc70
commit
ff8f4ebe22
@ -258,6 +258,9 @@ RetryFault:;
|
||||
* If we don't COW now, on a user wire, the user will never
|
||||
* be able to write to the mapping. If we don't make this
|
||||
* restriction, the bookkeeping would be nearly impossible.
|
||||
*
|
||||
* XXX The following assignment modifies the map without
|
||||
* holding a write lock on it.
|
||||
*/
|
||||
if ((fs.entry->protection & VM_PROT_WRITE) == 0)
|
||||
fs.entry->max_protection &= ~VM_PROT_WRITE;
|
||||
|
Loading…
Reference in New Issue
Block a user