[all-commits] [llvm/llvm-project] c985b2: [MSan] Simulate OOM in mmap_interceptor()

Ilya Leoshkevich via All-commits all-commits at lists.llvm.org
Thu Mar 19 13:34:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c985b244ee12c781330d594e2aa2baaf4995f715
      https://github.com/llvm/llvm-project/commit/c985b244ee12c781330d594e2aa2baaf4995f715
  Author: Ilya Leoshkevich <iii at linux.ibm.com>
  Date:   2020-03-19 (Thu, 19 Mar 2020)

  Changed paths:
    M compiler-rt/lib/msan/msan_interceptors.cpp

  Log Message:
  -----------
  [MSan] Simulate OOM in mmap_interceptor()

Summary:
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.

Reviewers: eugenis

Reviewed By: eugenis

Subscribers: #sanitizers, Andreas-Krebbel, stefansf, jonpa, uweigand

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D76426




More information about the All-commits mailing list