platform_bionic/libdl
Peter Collingbourne 45f0a3b642 Clear pointer tags as required for HWASAN for globals.
A future version of HWASAN will set pointer tags when taking the address of
a global. This means that we need to untag pointers in a couple of cases
where potential global pointers are passed to an interface that expects
untagged pointers:

- The WriteProtected class, whose only instances are globals, passes its
  own address to mprotect. However, our device kernels do not currently
  untag pointers passed to mprotect (the proposed upstream kernel patches
  do, however, untag these pointers), so once HWASAN starts tagging global
  pointers, this will start failing.
- The shadow_load function loads from a shadow that corresponds to the
  address space bounds of loaded binaries. Since these address space
  bounds are untagged, the pointer needs to be untagged to match.

Test: boots
Change-Id: I3f11ce6eb7261752e5ff6d039d04dd45516b236f
2019-07-16 13:38:38 -07:00
..
Android.bp Merge "Enable native_bridge_support" 2019-05-07 11:30:58 +00:00
libdl.cpp Fix CtsJniTestCases 2019-04-01 13:17:20 +02:00
libdl.map.txt Fix CtsJniTestCases 2019-04-01 13:17:20 +02:00
libdl_android.cpp Fix formatting 2019-04-01 13:16:33 +02:00
libdl_android.map.txt Move platform-private symbols out of libdl.so 2019-04-01 13:16:33 +02:00
libdl_cfi.cpp Clear pointer tags as required for HWASAN for globals. 2019-07-16 13:38:38 -07:00
libdl_static.cpp libdl.a: make dlerror() always report an error. 2019-04-22 08:43:57 -07:00
MODULE_LICENSE_APACHE2 Move libdl and linker to static NOTICE files. 2019-04-19 14:18:07 -07:00
NOTICE Move libdl and linker to static NOTICE files. 2019-04-19 14:18:07 -07:00