Commit c83975b
committed
[asan] Re-exec without ASLR if needed on 32-bit Linux
This generalizes llvm#131975 to
non-32-bit Linux (i.e., 64-bit Linux).
This works around an edge case in 64-bit Linux, where the memory layout
is incompatible if the stack size is unlimited AND ASLR entropy is 32
bits (see
google/sanitizers#856 (comment)).
More generally, this "re-exec if layout is incompatible" is a hammer
that can work around most shadow mapping issues, without the overhead of
using a dynamic shadow.1 parent 702c38e commit c83975b
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
0 commit comments