Page MenuHomeFreeBSD

linuxkpi: Fix assertion in `lkpi_vmf_insert_pfn_prot_locked()`
Needs ReviewPublic

Authored by dumbbell on Sun, Jul 12, 4:33 PM.
Tags
None
Referenced Files
F162604526: D58194.id181842.diff
Tue, Jul 14, 11:28 PM
Unknown Object (File)
Mon, Jul 13, 11:26 PM
Unknown Object (File)
Mon, Jul 13, 8:33 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

Before this change, the assertion would not catch a page index matching the end address, even though the end address of a mapping is outside of that mapping.

While here, add another assertion to catch page indexes outside of the expected range earlier.

Also, pagefaulting an address outside of the mapping range should return VM_FAULT_SIGBUS instead of panicing.

Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped