Bug 1286119 - Allow sys_mremap when jemalloc is disabled. r=gcp
authorJulian Hector <julian.r.hector@gmail.com>
Tue, 12 Jul 2016 18:24:54 +0200
changeset 346195 250943418f3a43c46de84797ad58a22f724caf58
parent 346194 b83fcff9edd2e930eaf518d0a337eb53b75ec9f1
child 346196 d6e4999d9dd2796e243e78880a6352186493a80f
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp
bugs1286119
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1286119 - Allow sys_mremap when jemalloc is disabled. r=gcp MozReview-Commit-ID: FRVorDIIUVR
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -569,18 +569,18 @@ public:
       // Some fcntls have significant side effects like sending
       // arbitrary signals, and there's probably nontrivial kernel
       // attack surface; this should be locked down more if possible.
       return Allow();
 
     case __NR_mprotect:
     case __NR_brk:
     case __NR_madvise:
-#if defined(ANDROID) && !defined(MOZ_MEMORY)
-      // Android's libc's realloc uses mremap.
+#if !defined(MOZ_MEMORY)
+      // libc's realloc uses mremap (Bug 1286119).
     case __NR_mremap:
 #endif
       return Allow();
 
     case __NR_sigaltstack:
       return Allow();
 
 #ifdef __NR_set_thread_area