Page MenuHomePhabricator

[MSan] Simulate OOM in mmap_interceptor()

Authored by iii on Mar 19 2020, 4:52 AM.



Some kernels can provide 16EiB worth of mappings to each process, which
causes mmap test to run for a very long time. In order to make it stop
after a few seconds, make mmap_interceptor() fail when the original
mmap() returns an address which is outside of the application range.

Diff Detail

Event Timeline

iii created this revision.Mar 19 2020, 4:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2020, 4:52 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Mar 19 2020, 11:21 AM
iii added a comment.Mar 19 2020, 12:51 PM

Thanks for reviewing! I don't think I have commit access - may I ask you to commit this one for me?

This revision was automatically updated to reflect the committed changes.