CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2019/04/01 21:35:08

Modified files:
        sys/arch/amd64/amd64: copy.S locore.S 
        sys/arch/amd64/include: asm.h 

Log message:
Add variable length trap padding between the retguard epilogue and the
following return.

This change adds a constraint that the name passed to the RETGUARD_* macros
must correspond to the name in the corresponding ENTRY which starts the
function (or a function which appears beforehand in the same file). Since
we use the distance from the ENTRY definition to calculate how much padding
to insert, the ENTRY symbol must be in scope at assembly time. This is
almost always the case already, since it is the natural way to name the
retguard symbols so they remain unique.

ok deraadt@

Reply via email to