HomeFreeBSD

MFC r316732, r316756: Enable Privileged Access Never on arm64.

Description

MFC r316732, r316756: Enable Privileged Access Never on arm64.

r316732:
Use the unprivileged variant of the load and store instructions most
places possible in the kernel. This forces these functions to fail if
userspace is unable to access a given memory location, even if it is in
the user memory range.

This will simplify adding Privileged Access Never support later.

r316756:
In ARMv8.1 ARM has added a process state bit to disable access to userspace
from the kernel. Make use of this to restrict accessing userspace to just
the functions that explicitly handle crossing the user kernel boundary.

Details

Provenance
andrewAuthored on
Parents
rS319201: Introduce additional locks when releasing TX resources and buffers in ENA
Branches
Unknown
Tags
Unknown