HomeFreeBSD

Use SMAP on amd64.

Description

Use SMAP on amd64.

Ifuncs selectors dispatch copyin(9) family to the suitable variant, to
set rflags.AC around userspace access. Rflags.AC bit is cleared in
all kernel entry points unconditionally even on machines not
supporting SMAP.

Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D13838

Details

Provenance
kibAuthored on
Reviewer
jhb
Differential Revision
D13838: Implement ifunc support for x86, use it to enable SMAP on amd64.
Parents
rS336875: audit(4): add tests for sysctl(3) and sysarch(2)
Branches
Unknown
Tags
Unknown