summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-13 01:44:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-13 01:44:30 +0000
commit161865e03a79cc32200915ce21e6bb6623cc81f7 (patch)
tree976a862a46e1bb93a1a295f7a60036c4cec23d40 /sys/ufs
parentd2f1decc1738360c280de2ffc6a3ac9c73c7920c (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/ufs')
0 files changed, 0 insertions, 0 deletions