mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
When a page is mapped for write access on a read fault, the PTE should be
configured to trap on a write access unless *all* of the page's dirty bits are set.
This commit is contained in:
parent
5662349ed5
commit
b4b264f3e9
1 changed files with 2 additions and 1 deletions
|
|
@ -3116,7 +3116,8 @@ init_pte_prot(vm_offset_t va, vm_page_t m, vm_prot_t prot)
|
|||
*/
|
||||
rw = PTE_RWPAGE;
|
||||
vm_page_dirty(m);
|
||||
} else if ((m->md.pv_flags & PV_TABLE_MOD) || m->dirty)
|
||||
} else if ((m->md.pv_flags & PV_TABLE_MOD) ||
|
||||
m->dirty == VM_PAGE_BITS_ALL)
|
||||
rw = PTE_RWPAGE;
|
||||
else
|
||||
rw = PTE_CWPAGE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue