diff options
author | Mark Johnston <markj@FreeBSD.org> | 2019-09-28 01:42:59 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2019-09-28 01:42:59 +0000 |
commit | 1aa696babcb1ece29950af9480bc645b636c9e6b (patch) | |
tree | 8779dd85eff3289e10f4cc7c43206f91378b7cf6 /sys/contrib | |
parent | d4586dd328e2fd0df86626e65fcfa2414967b357 (diff) | |
download | src-1aa696babcb1ece29950af9480bc645b636c9e6b.tar.gz src-1aa696babcb1ece29950af9480bc645b636c9e6b.zip |
Fix some problems with the SPARSE_MAPPING option in the kernel linker.
- Ensure that the end of the mapping passed to vm_page_wire() is
page-aligned. vm_page_wire() expects this.
- Wire pages before reading data into them.
- Apply protections specified in the segment descriptor using
vm_map_protect() once relocation processing is done.
- On amd64, ensure that we load KLDs above KERNBASE, since they
are compiled with the "kernel" memory model by default.
Reviewed by: kib
MFC after: 2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21756
Notes
Notes:
svn path=/head/; revision=352829
Diffstat (limited to 'sys/contrib')
0 files changed, 0 insertions, 0 deletions