Page MenuHomeFreeBSD

D61331.1796376833.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61331.1796376833.diff

diff --git a/sys/powerpc/include/vmparam.h b/sys/powerpc/include/vmparam.h
--- a/sys/powerpc/include/vmparam.h
+++ b/sys/powerpc/include/vmparam.h
@@ -87,13 +87,20 @@
* kernel map should be able to start at 0xc008000000000000 -
* but at least the functional simulator doesn't like it
*
- * 0x0000000000000000 - 0x000fffffffffffff user map
+ * 0x0000000000000000 - 0x00007fffffffffff user map
* 0xc000000000000000 - 0xc007ffffffffffff direct map
* 0xc008000000000000 - 0xc00fffffffffffff kernel map
*
*/
#define VM_MIN_ADDRESS 0x0000000000000000
-#define VM_MAXUSER_ADDRESS 0x000fffffc0000000
+/*
+ * Radix can address 52 bits of user space, but stop at 47 bits (128 TiB)
+ * like amd64 does by default on LA57 machines and like Linux does on
+ * ppc64le. Lots of userland (SpiderMonkey, JavaScriptCore, QV4, LuaJIT, ...)
+ * stuffs pointers into 47 or 48 bits and crashes once ASLR puts the heap
+ * above that.
+ */
+#define VM_MAXUSER_ADDRESS 0x0000800000000000
#define VM_MAX_ADDRESS 0xc00fffffffffffff
#define VM_MIN_KERNEL_ADDRESS 0xc008000000000000
#define VM_MAX_KERNEL_ADDRESS 0xc00801ffffffffff

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 4, 9:33 AM (1 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41622555
Default Alt Text
D61331.1796376833.diff (1 KB)

Event Timeline