HomeFreeBSD

Do not call pmap_enter() with invalid protection mode.

Description

Do not call pmap_enter() with invalid protection mode.

If the map entry elookup was performed due to the mapping changes, we
need to ensure that there is still some access permission bit
requested which is compatible with the current vm_map_entry mode. If
not, restart the handler from scratch instead of trying to save the
current progress.

Also adjust fault_type to not include cleared permission bits.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D14347

Details

Provenance
kibAuthored on
Reviewer
markj
Differential Revision
D14347: Ensure memory consistency on COW
Parents
rS329251: kgssapi: Remove trivial deadcode
Branches
Unknown
Tags
Unknown