mm/hugetlb: Implement ASLR and topdown for hugetlb mappings
PATCH 1/1 mm/hugetlb: Implement ASLR and topdown for hugetlb mappings
merge from arch/x86
--- arch/arm/include/asm/page.h | 1 + arch/arm/mm/hugetlbpage.c | 85 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+)
arch/arm/include/asm/page.h +1 -0
@@ -144,6 +144,7 @@ extern void copy_page(void *to, const void *from);#ifdef CONFIG_KUSER_HELPERS #define __HAVE_ARCH_GATE_AREA 1 +#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA #endif #ifdef CONFIG_ARM_LPAE
arch/arm/mm/hugetlbpage.c +85 -0
88 lines not on this page · raw message
Signature · 1 line
2.6.2
Hi, Russell,
Have you any time to check this patch?
I found this issue/missing in my works, the application cannot mmap big hugepage (about 360MB) due to no more contiguous vm from the default "TASK_UNMMAPPED_AREA" by legacy bottom-up. We need this patch to fix this issue.
Could you please help check this patch?
Thanks!
BR, Shile
-----Original Message-----
From: Shile Zhang [mailto:shile.zhang at nokia-sbell.com]
Sent: Friday, November 03, 2017 5:19 PM
To: Russell King <[email protected]>
Cc: linux-kernel at vger.kernel.org; Zhang, Shile (NSB - CN/Hangzhou) <[email protected]>
Subject: [PATCH] mm/hugetlb: Implement ASLR and topdown for hugetlb mappings
merge from arch/x86
--- arch/arm/include/asm/page.h | 1 + arch/arm/mm/hugetlbpage.c | 85 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+)
arch/arm/include/asm/page.h +1 -0
@@ -144,6 +144,7 @@ extern void copy_page(void *to, const void *from);#ifdef CONFIG_KUSER_HELPERS #define __HAVE_ARCH_GATE_AREA 1 +#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA #endif #ifdef CONFIG_ARM_LPAE
arch/arm/mm/hugetlbpage.c +85 -0
88 lines not on this page · raw message
Signature · 1 line
2.6.2
Hi, Russel
Sorry for spam!
I'm not sure if you got this patch I sent before. Could you please help to check if it still available?
Many thanks!
BR, Shile
-----Original Message-----
From: Zhang, Shile (NSB - CN/Hangzhou)
Sent: Monday, November 13, 2017 1:32 PM
To: Russell King <[email protected]>
Cc: linux-kernel at vger.kernel.org; linux-arm-kernel at lists.infradead.org
Subject: RE: [PATCH] mm/hugetlb: Implement ASLR and topdown for hugetlb mappings
Hi, Russell,
Have you any time to check this patch?
I found this issue/missing in my works, the application cannot mmap big hugepage (about 360MB) due to no more contiguous vm from the default "TASK_UNMMAPPED_AREA" by legacy bottom-up. We need this patch to fix this issue.
Could you please help check this patch?
Thanks!
BR, Shile
-----Original Message-----
From: Shile Zhang [mailto:shile.zhang at nokia-sbell.com]
Sent: Friday, November 03, 2017 5:19 PM
To: Russell King <[email protected]>
Cc: linux-kernel at vger.kernel.org; Zhang, Shile (NSB - CN/Hangzhou) <[email protected]>
Subject: [PATCH] mm/hugetlb: Implement ASLR and topdown for hugetlb mappings
merge from arch/x86
--- arch/arm/include/asm/page.h | 1 + arch/arm/mm/hugetlbpage.c | 85 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+)
arch/arm/include/asm/page.h +1 -0
@@ -144,6 +144,7 @@ extern void copy_page(void *to, const void *from);#ifdef CONFIG_KUSER_HELPERS #define __HAVE_ARCH_GATE_AREA 1 +#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA #endif #ifdef CONFIG_ARM_LPAE
arch/arm/mm/hugetlbpage.c +85 -0
88 lines not on this page · raw message
Signature · 1 line
2.6.2
PATCH RESEND 1/1 mm/hugetlb: topdown mmap supports for hugepage
In reply to Zhang, Shile (NSB - CN/Hangzhou)From: Shile Zhang <[email protected]>
Similar to other arches, this adds topdown mmap support for hugepage in user process address space allocation. It allows mmap big size hugepage. This patch copied from the implementation in arch/x86.
--- arch/arm/include/asm/page.h | 1 + arch/arm/mm/hugetlbpage.c | 85 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+)
arch/arm/include/asm/page.h +1 -0
@@ -141,6 +141,7 @@ extern void __cpu_copy_user_highpage(struct page *to, struct page *from,#ifdef CONFIG_KUSER_HELPERS #define __HAVE_ARCH_GATE_AREA 1 +#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA #endif #ifdef CONFIG_ARM_LPAE
arch/arm/mm/hugetlbpage.c +85 -0
88 lines not on this page · raw message
Signature · 1 line
1.8.3.1