summaryrefslogtreecommitdiff
path: root/linker/linker_debuggerd_android.cpp
AgeCommit message (Collapse)Author
2021-02-12Teach debuggerd to pass the secondary ring buffer to __scudo_get_error_info().Peter Collingbourne
With this change we can report memory errors involving secondary allocations. Update the existing crasher tests to also test UAF/overflow/underflow on allocations with sizes sufficient to trigger the secondary allocator. Bug: 135772972 Change-Id: Ic8925c1f18621a8f272e26d5630e5d11d6d34d38
2020-05-05Introduce a new heap tagging level, M_HEAP_TAGGING_LEVEL_SYNC.Peter Collingbourne
The SYNC tagging level enables stack trace collection for allocations and deallocations, which allows allocation and deallocation stack traces to appear in tombstones when encountering a tag check fault in synchronous tag checking mode. Bug: 135772972 Change-Id: Ibda9f51b29d2c8e2c993fc74425dea7bfa23ab1e
2020-03-17Switch to debugger_process_info in bionic.Peter Collingbourne
Bug: 135772972 Change-Id: I2b4eae107fc7f62a5ad7ead3a8cfa26e444532d4
2020-02-19[GWP-ASan] Export GWP-ASan regions to libdebuggerd.Mitch Phillips
Exports GWP-ASan allocator information callbacks to libdebuggerd so that tombstoned can get information from the GWP-ASan allocator in the case of a crash. Bug: 135634846 Test: atest bionic-unit-tests Change-Id: Ie16426af55602fb2a76c4e69217773354c365843
2019-11-05Refactor linker/Android.bp for native-bridgeRyan Prichard
Define a "linker_bin_template" cc_defaults module that a native bridge implementation can inherit to define a guest linker. Break the debuggerd_init call off into separate linker_debuggerd_{android,stub}.cpp files to allow opting in/out of the debuggerd integration without needing to change how linker_main.cpp is compiled. (This is necessary for a later commit that moves linker_main.cpp into a new static library.) Test: bionic unit tests Bug: none Merged-In: I7c5d79281bce1e69817b266dd91d43ea40f78522 Change-Id: I7c5d79281bce1e69817b266dd91d43ea40f78522 (cherry picked from commit 5adf402ee9d65c803b71d93b9e3de77b36ccb027)