diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-06-13 01:44:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-06-13 01:44:30 +0000 |
commit | 161865e03a79cc32200915ce21e6bb6623cc81f7 (patch) | |
tree | 976a862a46e1bb93a1a295f7a60036c4cec23d40 /sys/kern/uipc_proto.c | |
parent | d2f1decc1738360c280de2ffc6a3ac9c73c7920c (diff) |
Split early startup code out of locore.S into locore0.S. Adjust link
run so that this locore0.o is always at the start of the executable.
But randomize the link order of all other .o files in the kernel, so
that their exec/rodata/data/bss segments land all over the place.
As a result, the internal layout of every newly build bsd kernel is
different from past kernels. Internal relative offsets are not known
to an outside attacker. The only known offsets are in the startup code
(which will be gone when it is smashed).
The bootstrap code unmapping or smashing isn't done yet, and there is
some potential for more bits from locore.S to move to locore0.S
Diffstat (limited to 'sys/kern/uipc_proto.c')
0 files changed, 0 insertions, 0 deletions