[llvm] r273825 - [lit] Add SANITIZER_IGNORE_CVE_2016_2143 to pass_vars.
Marcin Koscielnicki via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 26 14:49:59 PDT 2016
Author: koriakin
Date: Sun Jun 26 16:49:58 2016
New Revision: 273825
URL: http://llvm.org/viewvc/llvm-project?rev=273825&view=rev
Log:
[lit] Add SANITIZER_IGNORE_CVE_2016_2143 to pass_vars.
This variable is used by ASan (and other sanitizers in the future)
on s390x-linux to override a check for CVE-2016-2143 in the running
kernel (see revision 267747 on compiler-rt). Since the check simply
checks if the kernel version is in a whitelist of known-good versions,
it may miss distribution kernels, or manually-patched kernels - hence
the need for this variable. To enable running the ASan testsuite on
such kernels, this variable should be passed from the environment
down to the testcases.
Differential Revision: http://reviews.llvm.org/D19888
Modified:
llvm/trunk/utils/lit/lit/TestingConfig.py
Modified: llvm/trunk/utils/lit/lit/TestingConfig.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestingConfig.py?rev=273825&r1=273824&r2=273825&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestingConfig.py (original)
+++ llvm/trunk/utils/lit/lit/TestingConfig.py Sun Jun 26 16:49:58 2016
@@ -24,7 +24,8 @@ class TestingConfig:
pass_vars = ['LIBRARY_PATH', 'LD_LIBRARY_PATH', 'SYSTEMROOT', 'TERM',
'LD_PRELOAD', 'ASAN_OPTIONS', 'UBSAN_OPTIONS',
- 'LSAN_OPTIONS', 'ADB', 'ANDROID_SERIAL']
+ 'LSAN_OPTIONS', 'ADB', 'ANDROID_SERIAL',
+ 'SANITIZER_IGNORE_CVE_2016_2143']
for var in pass_vars:
val = os.environ.get(var, '')
# Check for empty string as some variables such as LD_PRELOAD cannot be empty
More information about the llvm-commits
mailing list