[PATCH] D19888: [lit] Add SANITIZER_IGNORE_CVE_2016_2143 to pass_vars.

Marcin Koƛcielnicki via llvm-commits llvm-commits at lists.llvm.org
Tue May 3 14:11:38 PDT 2016


koriakin created this revision.
koriakin added a reviewer: ddunbar.
koriakin added a subscriber: llvm-commits.
koriakin set the repository for this revision to rL LLVM.
Herald added subscribers: srhines, danalbert, tberghammer.

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.


Repository:
  rL LLVM

http://reviews.llvm.org/D19888

Files:
  utils/lit/lit/TestingConfig.py

Index: utils/lit/lit/TestingConfig.py
===================================================================
--- utils/lit/lit/TestingConfig.py
+++ utils/lit/lit/TestingConfig.py
@@ -24,7 +24,8 @@
 
         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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19888.56061.patch
Type: text/x-patch
Size: 691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160503/80fc57fb/attachment.bin>


More information about the llvm-commits mailing list