Re: [PATCH v2 3/4] x86, boot: Implement ASLR for kernel memory sections (x86_64)

From: Dave Hansen
Date: Mon May 02 2016 - 18:00:59 EST


On 05/02/2016 02:41 PM, Thomas Garnier wrote:
> -#define __PAGE_OFFSET _AC(0xffff880000000000, UL)
> +#define __PAGE_OFFSET_BASE _AC(0xffff880000000000, UL)
> +#ifdef CONFIG_RANDOMIZE_MEMORY
> +#define __PAGE_OFFSET page_offset_base
> +#else
> +#define __PAGE_OFFSET __PAGE_OFFSET_BASE
> +#endif /* CONFIG_RANDOMIZE_MEMORY */

Do you have any data about the performance impact of this change? It's
not necessary to have it to merge something like this, I'm just curious
how bad it is.