Page MenuHomeFreeBSD

vm_fault: handle KERN_PROTECTION_FAILURE
ClosedPublic

Authored by kib on Sat, Mar 27, 11:13 AM.

Details

Summary

pmap_enter(PMAP_ENTER_LARGEPAGE) may return KERN_PROTECTION_FAILURE due to PKRU inconsistency. Handle it in the call place from vm_fault_populate(), and in places which decode errors from vm_fault_populate()/vm_fault_allocate().

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Sat, Mar 27, 2:00 PM
markj added inline comments.
sys/vm/vm_fault.c
563

If psind == 0, we do not assert rv == KERN_SUCCESS, but it looks like we should.

sys/vm/vm_fault.c
563

Never mind, @jah fixed it in D29439.

This revision was automatically updated to reflect the committed changes.