Page MenuHomeFreeBSD

vm_fault: handle KERN_PROTECTION_FAILURE
ClosedPublic

Authored by kib on Mar 27 2021, 11:13 AM.
Tags
None
Referenced Files
F107665891: D29442.id.diff
Fri, Jan 17, 9:56 AM
Unknown Object (File)
Sun, Jan 5, 12:09 PM
Unknown Object (File)
Dec 5 2024, 7:47 PM
Unknown Object (File)
Nov 24 2024, 3:28 PM
Unknown Object (File)
Nov 22 2024, 5:56 PM
Unknown Object (File)
Nov 22 2024, 8:38 AM
Unknown Object (File)
Nov 16 2024, 9:09 PM
Unknown Object (File)
Nov 14 2024, 5:22 PM
Subscribers
None

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 27 2021, 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.