CVSROOT:        /cvs
Module name:    src
Changes by:     mlar...@cvs.openbsd.org 2014/12/21 09:27:08

Modified files:
        sys/arch/amd64/amd64: locore.S machdep.c 
        sys/arch/amd64/conf: ld.script 
        sys/ddb        : db_sym.c 

Log message:
Prevent writing to the kernel area via the direct map. We do this by padding
the end of the kernel area to 2MB, so that the direct map pages can then
have the W permission removed (X permission was already removed in a previous
diff). This creates a VA hole at the end of bss, so adjust for that since
that's where symbols get loaded by the bootloader (for now, map that region
RO until the boot loader can be updated to place the symbols at "end" instead
of "end of bss").

with help from and ok deraadt@

Reply via email to