HomeFreeBSD

Apply mapping protections to preloaded kernel modules on amd64.

Description

Apply mapping protections to preloaded kernel modules on amd64.

With an upcoming change the amd64 kernel will map preloaded files RW
instead of RWX, so the kernel linker must adjust protections
appropriately using pmap_change_prot().

Reviewed by: kib
MFC after: 1 month
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21860

Details

Provenance
markjAuthored on
Reviewer
kib
Differential Revision
D21860: Set permissions appropriately on preloaded DSOs.
Parents
rS353729: Apply mapping protections to .o kernel modules.
Branches
Unknown
Tags
Unknown