CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2023/01/17 01:03:51
Modified files:
sys/arch/amd64/amd64: trap.c
Log message:
On amd64 machines without the NX feature enabled, we can't distinguish
between page faults as a result of instruction fetches or normal data
access. Handle this in the same way as we do on landisk: if handling
the fault with access type PROT_READ fails, retry with PROT_EXEC.
Fortunately we know whether NX is enabled or nor so only do this when
it isn't. Nobody should be running an amd64 machine without NX!
ok deraadt@, miod@