diff options
Diffstat (limited to 'chromium-unset-madv_free.patch')
-rw-r--r-- | chromium-unset-madv_free.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chromium-unset-madv_free.patch b/chromium-unset-madv_free.patch new file mode 100644 index 000000000000..33f5a30420be --- /dev/null +++ b/chromium-unset-madv_free.patch @@ -0,0 +1,14 @@ +--- a/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp ++++ b/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp +@@ -41,6 +41,11 @@ + #include <errno.h> + #include <sys/mman.h> + ++#if OS(LINUX) && defined(MADV_FREE) ++// Added in Linux 4.5, but it breaks the sandbox. ++#undef MADV_FREE ++#endif ++ + #ifndef MADV_FREE + #define MADV_FREE MADV_DONTNEED + #endif |