History log of /netbsd/sys/arch/amd64/amd64/prekern.c (Results 1 – 6 of 6)
Revision Date Author Comments
# dac17ed7 21-Aug-2022 mlelstv <mlelstv@NetBSD.org>

Adapt to pmap/bootspace migrations.


# f2ce2829 12-Aug-2018 maxv <maxv@NetBSD.org>

More ASLR: randomize the location of the PTE area. The PTE slot is not
created in locore anymore, but a little later; by using the already
entered L4 page, rather than the recursive slot itself (whic

More ASLR: randomize the location of the PTE area. The PTE slot is not
created in locore anymore, but a little later; by using the already
entered L4 page, rather than the recursive slot itself (which doesn't
exist yet).

In the prekern we still map the slot - the prekern behaves as an external
locore -, because we need it as part of the randomization/relocation
work. The kernel then removes this slot, and regenerates a randomized
one.

Tested on GENERIC and GENERIC_KASLR, Xen doesn't have it and dom0 still
boots fine.

show more ...


# 5becad1b 12-Aug-2018 maxv <maxv@NetBSD.org>

Move the PTE area from slot 255 to slot 509. I've never understood why we
put it on 255; the "kernel" half of the VM space begins on slot 256, so
if anything, the PTE area should have been above it,

Move the PTE area from slot 255 to slot 509. I've never understood why we
put it on 255; the "kernel" half of the VM space begins on slot 256, so
if anything, the PTE area should have been above it, not below.

Virtually extend the user slots in slotspace, because we don't want
(randomized) kernel mappings to land on slot 255.

The prekern is updated accordingly.

Tested on GENERIC, GENERIC_KASLR and XEN3_DOM0.

show more ...


# b1771f5a 02-Aug-2018 maxv <maxv@NetBSD.org>

Add a "version" field in the prekern_args structure. The kernel checks it,
and if it's not happy it returns back to the prekern.


# d2e55ab6 02-Aug-2018 maxv <maxv@NetBSD.org>

Don't forget to call init_slotspace when we're booted via the prekern.


# dafff276 08-Oct-2017 maxv <maxv@NetBSD.org>

Add the prekern entry point in the kernel.