Fix error in r233949. Synchronizing icaches on uncacheable pages turns out
not to be a good idea, and of course the PV entry list for a page is never empty after the page has been mapped.
This commit is contained in:
parent
c85cb1a0a2
commit
805bee55eb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234149
@ -1137,9 +1137,11 @@ moea_enter_locked(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
|
||||
/*
|
||||
* Flush the real page from the instruction cache. This has be done
|
||||
* for all user mappings to prevent information leakage via the
|
||||
* instruction cache.
|
||||
* instruction cache. moea_pvo_enter() returns ENOENT for the first
|
||||
* mapping for a page.
|
||||
*/
|
||||
if (pmap != kernel_pmap && LIST_EMPTY(vm_page_to_pvoh(m)))
|
||||
if (pmap != kernel_pmap && error == ENOENT &&
|
||||
(pte_lo & (PTE_I | PTE_G)) == 0)
|
||||
moea_syncicache(VM_PAGE_TO_PHYS(m), PAGE_SIZE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user