tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: amd64: kernel aslr support



On Wed, Oct 04, 2017 at 09:00:50PM +0200, Maxime Villard wrote:
> This implementation is based on a specialized kernel, called the prekern, which
> relocates the real NetBSD kernel. The bootloader loads both the prekern and the
> kernel in memory, and jumps into the prekern with a set of arguments; the
> prekern relocates the kernel and then jumps into it, passing it the arguments
> from the bootloader plus several other values.

Can you explain why this needs a specialized prekern?
Can't you just use the normal kernel binary and a make all of prekern
a special function inside the main kernel, maybe in a separate section
that is then not reloacted?

Martin


Home | Main Index | Thread Index | Old Index