Thread (154 messages) 154 messages, 12 authors, 2023-03-20

Re: [PATCH v7 25/41] x86/mm: Introduce MAP_ABOVE4G

From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
Date: 2023-03-07 01:10:47
Also in: linux-api, linux-doc, linux-mm, lkml

On Mon, 2023-03-06 at 19:09 +0100, Borislav Petkov wrote:
quoted
diff --git a/arch/x86/kernel/sys_x86_64.c
b/arch/x86/kernel/sys_x86_64.c
index 8cc653ffdccd..06378b5682c1 100644
--- a/arch/x86/kernel/sys_x86_64.c
+++ b/arch/x86/kernel/sys_x86_64.c
@@ -193,7 +193,11 @@ arch_get_unmapped_area_topdown(struct file
*filp, const unsigned long addr0,
  
       info.flags = VM_UNMAPPED_AREA_TOPDOWN;
       info.length = len;
-     info.low_limit = PAGE_SIZE;
+     if (!in_32bit_syscall() && (flags & MAP_ABOVE4G))
+             info.low_limit = 0x100000000;
We have a human readable define for that: SZ_4G
Uhh, yes that's much better. And the typos. Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help