platform_system_core/debuggerd/libdebuggerd/test
Peter Collingbourne 7827991d7f Fix scudo MTE tests.
r.android.com/2108505 was intended to fix a crash in Scudo in
the case where the stack depot, region info or ring buffer were
unreadable. However, it also ended up introducing a number of bugs into
the code. It failed to call __scudo_get_error_info if the page at the
fault address was unreadable. This can happen in legitimate crash cases
if a primary allocation was close to the boundary of a mapped region,
or if the allocation was a secondary allocation with guard pages. It
also used long as the type for tags, whereas Scudo expects it to be
char. In combination this ended up causing most of the MTE tests to
fail. Therefore, mostly revert that change.

Fix the original crash by null checking the pointers returned by
AllocAndReadFully before proceeding with the rest of the function.

Bug: 233720136
Change-Id: I04d70d2abffaa35fe315d15d9224f9b412a9825d
2022-06-30 18:54:19 -07:00
..
dump_memory_test.cpp Support MTE and GWP-ASan features in proto tombstones. 2021-03-16 10:59:39 -07:00
elf_fake.cpp crash_dump: fork a copy of the target's address space. 2017-12-15 14:11:12 -08:00
elf_fake.h
host_signal_fixup.h
log_fake.cpp libdebuggerd: cleanup. 2017-08-29 15:18:46 -07:00
log_fake.h
open_files_list_test.cpp switch to using android-base/file.h instead of android-base/test_utils.h 2018-11-14 09:35:34 -08:00
UnwinderMock.h Update for libunwindstack shared_ptr MapInfos. 2021-10-28 15:05:39 -07:00
utility_test.cpp debuggerd: add the PAC keys to the tombstones. 2022-01-13 15:03:19 -08:00