HomeFreeBSD

Set the userspace execute never bit on kernel mappings.

Description

Set the userspace execute never bit on kernel mappings.

Arm64 allows us to create execute only mappings. To make sure userspace is
unable to accidentally execute kernel code set the user execute never
bit in the kernel page tables.

MFC after: 1 week
Sponsored by: DARPA, AFRL

Details

Committed
andrewOct 30 2019, 5:32 PM
Parents
rS354192: Make hyperv keyboard work again.
Branches
Unknown
Tags
Unknown