projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5d5a7d
)
[msan] Use non-transparent-huge-page at SetShadow
author
Jianzhou Zhao
<jianzhouzh@google.com>
Fri, 26 Feb 2021 23:34:02 +0000
(23:34 +0000)
committer
Jianzhou Zhao
<jianzhouzh@google.com>
Sat, 27 Feb 2021 00:28:57 +0000
(
00:28
+0000)
This prevents from getting THP ranges more and more.
Did not see any issues in practice, just found this by code review.
Reviewed By: eugenis, vitalybuka
Differential Revision: https://reviews.llvm.org/D97593
compiler-rt/lib/msan/msan_poisoning.cpp
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/msan/msan_poisoning.cpp
b/compiler-rt/lib/msan/msan_poisoning.cpp
index
a92b056
..
1589239
100644
(file)
--- a/
compiler-rt/lib/msan/msan_poisoning.cpp
+++ b/
compiler-rt/lib/msan/msan_poisoning.cpp
@@
-213,7
+213,7
@@
void SetShadow(const void *ptr, uptr size, u8 value) {
if (page_end != shadow_end) {
REAL(memset)((void *)page_end, 0, shadow_end - page_end);
}
- if (!MmapFixedNoReserve(page_beg, page_end - page_beg))
+ if (!MmapFixed
Super
NoReserve(page_beg, page_end - page_beg))
Die();
}
}