forked from OSchip/llvm-project
[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 llvm-svn: 273825
This commit is contained in:
parent
555330719a
commit
fbf07d0f33
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue