Source-Changes-D archive

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

Re: CVS commit: src/sys/kern



Le 07/12/2018 à 12:33, Manuel Bouyer a écrit :
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

Yes, it's easier than in my initial implementation, and I've committed
the option.


Home | Main Index | Thread Index | Old Index