[PATCH v8 4/6] x86, kaslr: select random position from e820 maps

2013-10-10 Thread Kees Cook
Counts available alignment positions across all e820 maps, and chooses one randomly for the new kernel base address, making sure not to collide with unsafe memory areas. Signed-off-by: Kees Cook --- v8: - explicitly avoid unsafe memory areas instead of raising minimum position. v2: - make sure

[PATCH v8 4/6] x86, kaslr: select random position from e820 maps

2013-10-10 Thread Kees Cook
Counts available alignment positions across all e820 maps, and chooses one randomly for the new kernel base address, making sure not to collide with unsafe memory areas. Signed-off-by: Kees Cook keesc...@chromium.org --- v8: - explicitly avoid unsafe memory areas instead of raising minimum