Re: [PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-11-11 Thread Kirill A. Shutemov
On Tue, Oct 22, 2013 at 04:52:20PM +0300, Kirill A. Shutemov wrote: > Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. > The reason is genereic hugetlb_get_unmapped_area() which is used on > x86-64. It doesn't support randomization and use bottom-up unmapped area > lookup,

Re: [PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-11-11 Thread Kirill A. Shutemov
On Tue, Oct 22, 2013 at 04:52:20PM +0300, Kirill A. Shutemov wrote: Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. The reason is genereic hugetlb_get_unmapped_area() which is used on x86-64. It doesn't support randomization and use bottom-up unmapped area lookup, instead

Re: [PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-11-04 Thread Andrew Morton
On Mon, 4 Nov 2013 12:41:52 +0200 (EET) "Kirill A. Shutemov" wrote: > Kirill A. Shutemov wrote: > > Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. > > The reason is genereic hugetlb_get_unmapped_area() which is used on > > x86-64. It doesn't support randomization and use

RE: [PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-11-04 Thread Kirill A. Shutemov
Kirill A. Shutemov wrote: > Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. > The reason is genereic hugetlb_get_unmapped_area() which is used on > x86-64. It doesn't support randomization and use bottom-up unmapped area > lookup, instead of usual top-down on x86-64. > > x86

Re: [PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-11-04 Thread Andrew Morton
On Mon, 4 Nov 2013 12:41:52 +0200 (EET) Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: Kirill A. Shutemov wrote: Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. The reason is genereic hugetlb_get_unmapped_area() which is used on x86-64. It doesn't support

RE: [PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-11-04 Thread Kirill A. Shutemov
Kirill A. Shutemov wrote: Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. The reason is genereic hugetlb_get_unmapped_area() which is used on x86-64. It doesn't support randomization and use bottom-up unmapped area lookup, instead of usual top-down on x86-64. x86 has

Re: [PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-10-22 Thread Kirill A. Shutemov
Dave Hansen wrote: > On 10/22/2013 06:52 AM, Kirill A. Shutemov wrote: > > Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. > > The reason is genereic hugetlb_get_unmapped_area() which is used on > > x86-64. It doesn't support randomization and use bottom-up unmapped area > >

Re: [PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-10-22 Thread Dave Hansen
On 10/22/2013 06:52 AM, Kirill A. Shutemov wrote: > Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. > The reason is genereic hugetlb_get_unmapped_area() which is used on > x86-64. It doesn't support randomization and use bottom-up unmapped area > lookup, instead of usual

[PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-10-22 Thread Kirill A. Shutemov
Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. The reason is genereic hugetlb_get_unmapped_area() which is used on x86-64. It doesn't support randomization and use bottom-up unmapped area lookup, instead of usual top-down on x86-64. x86 has arch-specific

[PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-10-22 Thread Kirill A. Shutemov
Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. The reason is genereic hugetlb_get_unmapped_area() which is used on x86-64. It doesn't support randomization and use bottom-up unmapped area lookup, instead of usual top-down on x86-64. x86 has arch-specific

Re: [PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-10-22 Thread Dave Hansen
On 10/22/2013 06:52 AM, Kirill A. Shutemov wrote: Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. The reason is genereic hugetlb_get_unmapped_area() which is used on x86-64. It doesn't support randomization and use bottom-up unmapped area lookup, instead of usual top-down

Re: [PATCH] x86, mm: get ASLR work for hugetlb mappings

2013-10-22 Thread Kirill A. Shutemov
Dave Hansen wrote: On 10/22/2013 06:52 AM, Kirill A. Shutemov wrote: Matthew noticed that hugetlb doesn't participate in ASLR on x86-64. The reason is genereic hugetlb_get_unmapped_area() which is used on x86-64. It doesn't support randomization and use bottom-up unmapped area lookup,