On Thu, Dec 06, 2018 at 06:43:52PM +0100, Maxime Villard wrote: > Le 06/12/2018 à 11:06, Manuel Bouyer a écrit : > > as I understand KASLR (but I didn't look at the code), addresses are choosen > > at random. So I guess there's a random number generator in the process. > > Maybe it would be as simple as making the random number generator return > > a constant value ? > > Yes, change the two calls to cpu_earlyrng() in x86/pmap.c::slotspace_rand() > to return zero, and you're back with a static layout.
This looks like an easy option to add -- Manuel Bouyer <bou...@antioche.eu.org> NetBSD: 26 ans d'experience feront toujours la difference --