Fix RLIMIT_DATA on newer kernels.
Chrome was setting RLIMIT_DATA under the assumption that RLIMIT_DATA only covered the brk() heap. Starting with https://github.com/torvalds/linux/commit/84638335900f1995495838fe1bd4870c43ec1f67, RLIMIT_DATA also accounts for mmap()-ed memory. This means that on systems with newer kernels the current limit is too low, and Chrome OOMs on large webpages. Increase the limit to 8GB on 64-bit systems. This will make spraying a little easier, but we need a usable browser. BUG=752185 TEST=cat /proc/<pid>/limits: TEST=Max data size 8589934592 8589934592 bytes R=thomasanderson@chromium.org Change-Id: I8b34aad1823fa7f94fcb40703d72c96dc900e769 Reviewed-on: https://chromium-review.googlesource.com/641992Reviewed-by:Thomas Anderson <thomasanderson@chromium.org> Reviewed-by:
Chris Palmer <palmer@chromium.org> Commit-Queue: Jorge Lucangeli Obes <jorgelo@chromium.org> Cr-Commit-Position: refs/heads/master@{#505082}
Showing
Please register or sign in to comment