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
Unknown Object (File)
Sun, Aug 2, 11:59 PM
Unknown Object (File)
Thu, Jul 30, 6:42 PM
Unknown Object (File)
Thu, Jul 30, 12:06 AM
Unknown Object (File)
Wed, Jul 29, 5:43 AM
Unknown Object (File)
Mon, Jul 27, 8:35 PM
Unknown Object (File)
Sat, Jul 25, 1:28 PM
Unknown Object (File)
Fri, Jul 24, 5:00 AM
Unknown Object (File)
Wed, Jul 22, 8:53 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