mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Correct a long-standing race condition in vm_object_page_remove() that
could result in a dirty page being unintentionally freed. Reviewed by: tegge MFC after: 7 days
This commit is contained in:
parent
efbef97de9
commit
85b8d6b45b
1 changed files with 1 additions and 1 deletions
|
|
@ -1797,7 +1797,7 @@ again:
|
|||
if (vm_page_sleep_if_busy(p, TRUE, "vmopar"))
|
||||
goto again;
|
||||
if (clean_only && p->valid) {
|
||||
vm_page_test_dirty(p);
|
||||
pmap_page_protect(p, VM_PROT_READ | VM_PROT_EXECUTE);
|
||||
if (p->valid & p->dirty)
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue