Source-Changes-D archive

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

Re: CVS commit: src/sys/kern



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 <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index