Page MenuHomeFreeBSD

amd64 pmap: Prefer consistent naming for loader tunable
ClosedPublic

Authored by zlei on Oct 20 2023, 8:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 1:18 PM
Unknown Object (File)
Mon, May 6, 3:52 AM
Unknown Object (File)
Mon, May 6, 3:52 AM
Unknown Object (File)
Mon, May 6, 3:49 AM
Unknown Object (File)
Sun, May 5, 9:27 AM
Unknown Object (File)
Sat, May 4, 7:55 PM
Unknown Object (File)
Mon, Apr 29, 10:10 PM
Unknown Object (File)
Mon, Apr 29, 9:56 PM
Subscribers

Details

Summary

The sysctl knob 'vm.pmap.allow_2m_x_ept' is loader tunable and have
public document entry in security(7) but is fetched from kernel
environment 'hw.allow_2m_x_ept'. That is inconsistent and obscure.

As there is public security advisory FreeBSD-SA-19:25.mcepsc [1],
people may refer to it and use 'hw.allow_2m_x_ept', let's keep it for
compatibility.

[1] https://www.freebsd.org/security/advisories/FreeBSD-SA-19:25.mcepsc.asc

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable