Re: [PATCH v2 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime
From: Borislav Petkov
Date: Sat Dec 10 2016 - 05:32:18 EST
On Fri, Dec 09, 2016 at 10:41:58PM +0800, Baoquan He wrote:
> X86 64 kernel takes KERNEL_IMAGE_SIZE as the kernel text mapping size,
> and it's fixed as compiling time, changing from 512M to 1G as long as
> CONFIG_RANDOMIZE_BASE is enabled, though people specify kernel option
> "nokaslr" explicitly.
>
> This could be a wrong behaviour.
A bunch of changes just because "this could be a wrong behavior". I'm
not really persuaded.
--
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--