Re: [PATCH v6 2/3] x86/mm: Implement ASLR for kernel memory sections (x86_64)

2016-06-21 Thread Thomas Garnier
On Fri, Jun 17, 2016 at 3:26 AM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -1993,6 +1993,23 @@ config PHYSICAL_ALIGN >> >> Don't change this unless you know what you are doing. >> >>

Re: [PATCH v6 2/3] x86/mm: Implement ASLR for kernel memory sections (x86_64)

2016-06-21 Thread Thomas Garnier
On Fri, Jun 17, 2016 at 3:26 AM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -1993,6 +1993,23 @@ config PHYSICAL_ALIGN >> >> Don't change this unless you know what you are doing. >> >> +config RANDOMIZE_MEMORY >> + bool

Re: [PATCH v6 2/3] x86/mm: Implement ASLR for kernel memory sections (x86_64)

2016-06-17 Thread Kees Cook
Thanks for the review! I'll let Thomas address the feedback, though I've got some thoughts below on naming. On Fri, Jun 17, 2016 at 3:26 AM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -1993,6

Re: [PATCH v6 2/3] x86/mm: Implement ASLR for kernel memory sections (x86_64)

2016-06-17 Thread Kees Cook
Thanks for the review! I'll let Thomas address the feedback, though I've got some thoughts below on naming. On Fri, Jun 17, 2016 at 3:26 AM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -1993,6 +1993,23 @@ config PHYSICAL_ALIGN >> >>

Re: [PATCH v6 2/3] x86/mm: Implement ASLR for kernel memory sections (x86_64)

2016-06-17 Thread Ingo Molnar
* Kees Cook wrote: > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1993,6 +1993,23 @@ config PHYSICAL_ALIGN > > Don't change this unless you know what you are doing. > > +config RANDOMIZE_MEMORY > + bool "Randomize the kernel memory sections" > +

Re: [PATCH v6 2/3] x86/mm: Implement ASLR for kernel memory sections (x86_64)

2016-06-17 Thread Ingo Molnar
* Kees Cook wrote: > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1993,6 +1993,23 @@ config PHYSICAL_ALIGN > > Don't change this unless you know what you are doing. > > +config RANDOMIZE_MEMORY > + bool "Randomize the kernel memory sections" > + depends on X86_64 >

[PATCH v6 2/3] x86/mm: Implement ASLR for kernel memory sections (x86_64)

2016-05-25 Thread Kees Cook
From: Thomas Garnier Randomizes the virtual address space of kernel memory sections (physical memory mapping, vmalloc & vmemmap) for x86_64. This security feature mitigates exploits relying on predictable kernel addresses. These addresses can be used to disclose the kernel

[PATCH v6 2/3] x86/mm: Implement ASLR for kernel memory sections (x86_64)

2016-05-25 Thread Kees Cook
From: Thomas Garnier Randomizes the virtual address space of kernel memory sections (physical memory mapping, vmalloc & vmemmap) for x86_64. This security feature mitigates exploits relying on predictable kernel addresses. These addresses can be used to disclose the kernel modules base addresses