- Fix some style bugs.
- Ensure that the end of the mapping passed to vm_page_wire() is page-aligned. vm_map_wire() expects this.
- Wire pages before reading data into them to ensure that the mapping is backed by resident pages.
- Apply the protections specified in the segment descriptor using vm_map_protect().
- Ensure that on amd64 we load KLDs above KERNBASE.
Is there any way to enable SPARSE_MAPPING except manually adding #define ?
|1101 ↗||(On Diff #62434)|
I suspect this is too rough. In principle, the segments need not be page-aligned, and you might remove W or X from a neighbor segment that shares the page with us.
I think the easiest would be to refuse loading such objects.