18cf8168ef34750ffae6451bded31ff06d2d2763 |
|
29-Oct-2015 |
Christopher Ferris <cferris@google.com> |
Add a size when checking local reads/writes. When doing a local unwind and checking whether a read or a write is valid, the length of the read/write is not checked. This can lead to crashes if attempting to read from within a map, but it would cross into out of the map. The fix is to check the size of the read/write. Bug: 25371801 Change-Id: I52556cec06268ce3be5a6fb718147ba62c0a489f
/external/libunwind/src/arm/Ginit.c
|
849a547fb4de698b95c14806ddb3fcad8aa26331 |
|
06-Jun-2015 |
Christopher Ferris <cferris@google.com> |
Attempt to read load_base from memory when needed. When creating the map list, always try and read the load base using the memory functions for local unwinds. For remote unwinds, if we can't map in the elf image, then try and use the memory functions instead. Bug: 21381155 Change-Id: I28d0dbed585bbcd366a01d9313b463745059d737
/external/libunwind/src/arm/Ginit.c
|
ae38b20031a02d3f6f56a8315c1f097ae5293c56 |
|
04-May-2015 |
Christopher Ferris <cferris@google.com> |
Implement method to read elf data from memory. I rewrote the entirety of elfxx.h/elfxx.c to support this. For the rewrite, I modified the way that the symbol tables are searched. The searched every single entry in the symbol table, and all symbol tables. The new method finds the first entry that actually has a name and stops. I also added some quick checks to make sure that a malformed elf would not cause a crash when reading the symbol names from the symbol tables. I had to implement the functionality of dwarf_find_unwind_table to handle reading from memory, instead of from a file. I didn't implement debug frame support since that likelihood of that appearing in memory seems low. I also modified the dwarf_find_unwind_table to remove an abort and just fail if that particular path is encountered. In addition, I added a quick check to make sure that a malformed dynamic section doesn't cause a crash. Bug: 19517541 Change-Id: I6075d87035dca41fa5e5dfcbe287a680a7671836
/external/libunwind/src/arm/Ginit.c
|
f4a8df5f4f338f1a12c25213227e98b34b42447f |
|
08-Mar-2014 |
Christopher Ferris <cferris@google.com> |
Fix maps caching for local processes. It is possible for the map to change while running libunwind. For example, if lots of threads are doing local unwinds at the same time. Allow the cached map to regenerate when it detects this case. Included in this change is a refactor of all of the os code so that it can also be used to do caching. This is a prelude to being able to attempt to push the code upstream. Also, this moves the code back closer to the original upstream code. Hopefully, this will allow me to upstream all of these changes. Change-Id: Ia219fa61e16e36416133bc95b1dd2161bd5b8ff7
/external/libunwind/src/arm/Ginit.c
|
16b95a68caaa7e021209e2cd6a877ae1e558f740 |
|
23-Jan-2014 |
Christopher Ferris <cferris@google.com> |
Add speed-ups to libunwind. Add caching of /proc/self/maps data structures. Add caching of elf image maps attached to the maps data structure. Add a set of new map api functions to handle creation/destruction of the maps by external code. Remove the creation of the maps data structure in the local address space init. Change-Id: I0adae397d433fc3902f83a6f377f6889161937e5
/external/libunwind/src/arm/Ginit.c
|
cdf9ee587b78148c5d48dae1b5ea72ec8df64c96 |
|
23-Nov-2013 |
Christopher Ferris <cferris@google.com> |
Only check the map for local unwinds. Change-Id: I7b7eed29a1b7ddad8e0d852598260809d3eb98d1
/external/libunwind/src/arm/Ginit.c
|
7d46a21e0a2cb561e4cad57b101a7137e01023dc |
|
14-Nov-2013 |
Christopher Ferris <cferris@google.com> |
For current process, check memory accesses. When attempting to unwind the current process, the library simple reads and writes to memory for memory accesses. Unfortunately, if an unwind winds up with invalid data, then the process can segfault. Add a guard to all memory accesses that verifies that reads/writes are valid before attempting them. For now, this guard is a nop on all systems except linux systems. Also, modify the adjust_ip function to use the access_mem function so that all reads go through the right function. Bug: 11652982 Change-Id: I9d1feacae585374f6bf1d899f8a006ec9ecb47c4
/external/libunwind/src/arm/Ginit.c
|
0eba2169fb19ef0707a2c96201e33769001b5f11 |
|
25-Oct-2011 |
Ken Werner <ken.werner@linaro.org> |
[ARM] Add support for systems that don't support ucontext.h Define unw_tdep_context rather than using ucontext_t in order to support systems that lack ucontext.h. Note that POSIX.1-2008 removed getcontext, makecontext and swapcontext from its specification. Signed-off-by: Ken Werner <ken.werner@linaro.org>
/external/libunwind/src/arm/Ginit.c
|
545023c2072975c6b85a09d5faf2cf05db10e064 |
|
14-Jul-2011 |
Ken Werner <ken.werner@linaro.org> |
Rework the lookup of the ARM specific unwind info Implement routines for finding the proc_info and searching the unwind table for the ARM backend. Signed-off-by: Ken Werner <ken.werner@linaro.org>
/external/libunwind/src/arm/Ginit.c
|
1e10c2931d970d0ae5426bba6ba9e1c2998c7451 |
|
21-Apr-2011 |
Ken Werner <ken.werner@linaro.org> |
Add initial support for local unw_resume on ARM Linux. Provides basic support for resuming execution at a certain stack frame. Signed-off-by: Ken Werner <ken.werner@linaro.org>
/external/libunwind/src/arm/Ginit.c
|
3842dac7333e42aa44531eda34ba55200b99ccf8 |
|
05-Feb-2008 |
Daniel Jacobowitz <drow@false.org> |
Add initial ARM and MIPS support. To support this, also enable the reading of .debug_frame sections (used in lieu of .eh_frame sections when they're not available).
/external/libunwind/src/arm/Ginit.c
|