[asan] When protect_shadow_gap=0, set up the shadow for the shadow gap. This is neede...
authorKostya Serebryany <kcc@google.com>
Tue, 4 Oct 2016 23:39:58 +0000 (23:39 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 4 Oct 2016 23:39:58 +0000 (23:39 +0000)
commit3aacfafaad4a958bdcc0043b4492f686a3e38d06
treebb4bc1fdd806280a06171a27ece79a8e580dc4c9
parent49fafb110953fdc6ae752c1a27ad9fcddbb7854b
[asan] When protect_shadow_gap=0, set up the shadow for the shadow gap. This is needed to support NVIDIA CUDA drivers. Unfortunately, I don't know how to test it properly with CUDA on a public build bot, so adding a test that emulates the CUDA behavior.

llvm-svn: 283270
compiler-rt/lib/asan/asan_mapping.h
compiler-rt/lib/asan/asan_rtl.cc
compiler-rt/test/asan/TestCases/Linux/cuda_test.cc [new file with mode: 0644]