Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 5 Apr 2013 09:24:05 +0200
From: Ingo Molnar <>
To: Kees Cook <>
	"H. Peter Anvin" <>,
	Thomas Gleixner <>,
	Ingo Molnar <>,,
	Jarkko Sakkinen <>,
	Matthew Garrett <>,
	Matt Fleming <>,
	Eric Northup <>,
	Dan Rosenberg <>,
	Julien Tinnes <>, Will Drewry <>,
	Linus Torvalds <>
Subject: Re: [PATCH 1/3] x86: routines to choose random kernel base offset

* Kees Cook <> wrote:

> This provides routines for selecting a randomized kernel base offset, 
> bounded by e820 details. It tries to use RDRAND and falls back to RDTSC. 
> If "noaslr" is on the kernel command line, no offset will be used.

Would it make sense to also add three other sources of entropy:




The exact second the bootup occured might not be known to the attacker, so 
this could add a bit or two of entropy even in the worst case where the 
attacker has access to precise 'uptime' and system log information and 
there's no NTP active that fudges the offsets.

If the attacker is most restricted, in the sandboxed case, then this could 
add a fair amount of entropy.


Another source of per system entropy would be to simply mix all e820 
entries into the random offset - we already parse them to place the kernel 

The e820 info changes per system type, amount of RAM and devices 

Especially in a restricted remote environment the attacker might not know 
the hardware details and the e820 map.


A build time random bit. This is essentially per system as well if the 
attacker does not know the precise kernel version, or if the kernel was 
custom built.


In the worst case an attacker can guess all of these bits - but 
statistically it still improves entropy for the general Linux box that 
gets attacked.



Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.