CVSROOT: /cvs Module name: src Changes by: [email protected] 2017/08/25 13:28:48
Modified files:
sys/arch/amd64/amd64: trap.c copy.S cpu.c vector.S
sys/arch/amd64/include: codepatch.h
sys/arch/i386/i386: locore.s trap.c
Log message:
If SMAP is present, clear PSL_AC on kernel entry and interrupt so that
only the code in copy{in,out}* that need it run with it set. Panic if
it's set on entry to trap() or syscall(). Prompted by Maxime Villard's
NetBSD work.
ok kettenis@ mlarkin@ deraadt@
