llvm-project/compiler-rt/lib/hwasan
Dmitry Vyukov f52726aae9 sanitizers: consistently check result of MmapFixedNoReserve
MmapFixedNoReserve does not terminate process on failure.
Failure to check its result and die will always lead to harder
to debug crashes later in execution. This was observed in Go
processes due to some address space conflicts.

Consistently check result of MmapFixedNoReserve.
While we are here also add warn_unused_result attribute
to prevent such bugs in future and change return type to bool
as that's what all callers want.

Reviewed in https://reviews.llvm.org/D49367

llvm-svn: 337531
2018-07-20 08:33:41 +00:00
..
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
CMakeLists.txt [sanitizer] Use -Wl,-z,global on Android 2018-07-13 15:31:05 +00:00
hwasan.cc [HWASan] Initalize shadow earler. 2018-06-25 17:27:13 +00:00
hwasan.h [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan.syms.extra
hwasan_allocator.cc [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_allocator.h
hwasan_blacklist.txt
hwasan_dynamic_shadow.cc [HWASan] Add files missing in r330624 2018-04-23 19:05:12 +00:00
hwasan_dynamic_shadow.h [HWASan] Add files missing in r330624 2018-04-23 19:05:12 +00:00
hwasan_flags.h
hwasan_flags.inc [hwasan] An option to disable tag randomization. 2018-01-10 19:36:10 +00:00
hwasan_interceptors.cc [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_interface_internal.h [HWASan] Introduce non-zero based and dynamic shadow memory (compiler-rt). 2018-04-23 18:19:23 +00:00
hwasan_linux.cc sanitizers: consistently check result of MmapFixedNoReserve 2018-07-20 08:33:41 +00:00
hwasan_mapping.h [HWASan] Use dynamic shadow memory on Android only. 2018-04-24 00:17:02 +00:00
hwasan_new_delete.cc [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_poisoning.cc [HWASan] Introduce non-zero based and dynamic shadow memory (compiler-rt). 2018-04-23 18:19:23 +00:00
hwasan_poisoning.h
hwasan_report.cc [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_report.h [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_thread.cc [HWASan] Introduce non-zero based and dynamic shadow memory (compiler-rt). 2018-04-23 18:19:23 +00:00
hwasan_thread.h [hwasan] Add heap tag randomization. 2018-01-03 21:42:28 +00:00