From fbf07d0f33a461a165ff3f56c76396fdcb22b516 Mon Sep 17 00:00:00 2001 From: Marcin Koscielnicki Date: Sun, 26 Jun 2016 21:49:58 +0000 Subject: [PATCH] [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 --- llvm/utils/lit/lit/TestingConfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py index 7940ebd0885a..1e39a000c90d 100644 --- a/llvm/utils/lit/lit/TestingConfig.py +++ b/llvm/utils/lit/lit/TestingConfig.py @@ -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