Line 0
Link Here
|
|
|
1 |
Subject: [PATCH] PaX mark tests which need it |
2 |
|
3 |
The tests |
4 |
|
5 |
* test/builtins/Unit/enable_execute_stack_test |
6 |
* test/builtins/Unit/clear_cache_test and |
7 |
|
8 |
fail on a PAX hardened kernel due to MPROTECT. Disabling MPROTECT (-m) lets the |
9 |
tests succeed. |
10 |
|
11 |
To mark the tests use paxmark.sh which is part of the elfix package. |
12 |
|
13 |
This failure is known as Gentoo bug #641438 [0]. |
14 |
|
15 |
[0] https://bugs.gentoo.org/641438 |
16 |
--- |
17 |
test/builtins/Unit/clear_cache_test.c | 2 +- |
18 |
test/builtins/Unit/enable_execute_stack_test.c | 2 +- |
19 |
2 files changed, 2 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/test/builtins/Unit/clear_cache_test.c b/test/builtins/Unit/clear_cache_test.c |
22 |
--- a/test/builtins/Unit/clear_cache_test.c |
23 |
+++ b/test/builtins/Unit/clear_cache_test.c |
24 |
@@ -1,6 +1,6 @@ |
25 |
// REQUIRES: native-run |
26 |
// UNSUPPORTED: arm, aarch64 |
27 |
-// RUN: %clang_builtins %s %librt -o %t && %run %t |
28 |
+// RUN: %clang_builtins %s %librt -o %t && paxmark.sh -m %t && %run %t |
29 |
//===-- clear_cache_test.c - Test clear_cache -----------------------------===// |
30 |
// |
31 |
// The LLVM Compiler Infrastructure |
32 |
diff --git a/test/builtins/Unit/enable_execute_stack_test.c b/test/builtins/Unit/enable_execute_stack_test.c |
33 |
--- a/test/builtins/Unit/enable_execute_stack_test.c |
34 |
+++ b/test/builtins/Unit/enable_execute_stack_test.c |
35 |
@@ -1,5 +1,5 @@ |
36 |
// REQUIRES: native-run |
37 |
-// RUN: %clang_builtins %s %librt -o %t && %run %t |
38 |
+// RUN: %clang_builtins %s %librt -o %t && paxmark.sh -m %t && %run %t |
39 |
//===-- enable_execute_stack_test.c - Test __enable_execute_stack ----------===// |
40 |
// |
41 |
// The LLVM Compiler Infrastructure |
42 |
|