If a physical page is mapped by two or more virtual addresses, transmitted
by the zero-copy sockets method, and written to before the transmission completes, we need to destroy all of the existing mappings to the page, not just the one that we fault on. Otherwise, the mappings will no longer be to the same page and changes made through one of the mappings will not be visible through the others. Observed by: tegge
This commit is contained in:
parent
be1c1eecee
commit
7e9d944218
@ -1651,6 +1651,7 @@ vm_page_cowfault(vm_page_t m)
|
||||
pindex = m->pindex;
|
||||
|
||||
retry_alloc:
|
||||
pmap_remove_all(m);
|
||||
vm_page_remove(m);
|
||||
mnew = vm_page_alloc(object, pindex, VM_ALLOC_NORMAL);
|
||||
if (mnew == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user