platform_bionic/libc
Florian Mayer e65e1939a1 Reland^2 "[MTE] remap stacks with PROT_MTE when requested by dlopened library"
Also enable stack MTE if main binary links in a library that needs it.

Otherwise the following is possible:

1. a binary doesn't require stack MTE, but links in libraries that use
   stg on the stack
2. that binary later dlopens a library that requires stack MTE, and our
   logic in dlopen remaps the stacks with MTE
3. the libraries from step 1 now have tagged pointers with missing tags
   in memory, so things go wrong

This reverts commit f53e91cc81.

Reason for revert: Fixed problem detected in b/324568991

Test: atest memtag_stack_dlopen_test with MTE enabled
Test: check crash is gone on fullmte build
Change-Id: I4a93f6814a19683c3ea5fe1e6d455df5459d31e1
2024-02-15 17:47:19 -08:00
..
arch-arm Fix assembler warnings. 2024-01-23 22:06:19 +00:00
arch-arm64 Fix assembler warnings. 2024-01-23 22:06:19 +00:00
arch-common/bionic bionic: Add crt_pad_segment 2024-01-12 10:22:08 -08:00
arch-riscv64 Fix assembler warnings. 2024-01-23 22:06:19 +00:00
arch-x86 Clarify which architectures do/don't need sa_restorer. 2024-01-24 14:25:00 -08:00
arch-x86_64 Fix assembler warnings. 2024-01-23 22:06:19 +00:00
async_safe bpfmt all the .bp files to silence ayeaye. 2024-01-19 19:05:36 +00:00
b64/include/bionic Export bionic's resolv base64 functions to musl 2022-02-03 16:25:26 -08:00
bionic Reland^2 "[MTE] remap stacks with PROT_MTE when requested by dlopened library" 2024-02-15 17:47:19 -08:00
dns Closing the stream when the function returns 2023-12-05 03:29:10 +00:00
execinfo/include Export bionic's execinfo functions to musl 2022-02-03 16:25:21 -08:00
fts/include Use the BSD license for our bogus fts.h. 2021-09-14 12:26:08 -07:00
include Add API to allow apps to attach extra information to tombstones. 2024-02-13 13:41:12 -08:00
kernel Update to v6.7 kernel headers. 2024-01-18 12:45:00 -08:00
malloc_debug Migrate Test Targets to New Android Ownership Model 2024-02-02 13:57:12 +00:00
malloc_hooks Migrate Test Targets to New Android Ownership Model 2024-02-02 13:57:12 +00:00
platform Add API to allow apps to attach extra information to tombstones. 2024-02-13 13:41:12 -08:00
private Reland^2 "[MTE] remap stacks with PROT_MTE when requested by dlopened library" 2024-02-15 17:47:19 -08:00
seccomp riscv64 syscall stub and seccomp filter generation. 2022-10-13 23:41:53 +00:00
stdio libc/Android.bp: more cleanup. 2024-02-09 10:04:26 -08:00
system_properties Migrate Test Targets to New Android Ownership Model 2024-02-02 13:57:12 +00:00
tools Revert^2 "generate_notice.py: don't check for strings we don't use any more." 2023-12-07 15:45:50 +00:00
tzcode Fix tzalloc(nullptr) and add a test. 2023-06-22 09:51:01 -07:00
upstream-freebsd string/memory functions: avoid qemu bugs/performance issues. 2023-11-15 15:49:57 -08:00
upstream-netbsd Merge "Sync upstream NetBSD." into main 2023-07-20 14:21:01 +00:00
upstream-openbsd riscv64: fix ODR violations. 2023-10-27 16:42:52 -07:00
versioner-dependencies Tell the version script generation script about risc-v. 2022-10-04 22:48:38 +00:00
Android.bp Simplify our trivial initgroups(), and add a test. 2024-02-14 17:19:14 -08:00
libc.map.txt Add API to allow apps to attach extra information to tombstones. 2024-02-13 13:41:12 -08:00
libstdc++.map.txt Add riscv64 to the map files. 2022-10-04 23:52:57 +00:00
MODULE_LICENSE_BSD
NOTICE Update libc/NOTICE. 2024-01-17 17:02:30 -08:00
SECCOMP_ALLOWLIST_APP.TXT Fix a typo. 2022-11-08 02:52:29 +00:00
SECCOMP_ALLOWLIST_COMMON.TXT Punch a hole for clone3(2) use. 2023-09-05 22:58:43 +00:00
SECCOMP_ALLOWLIST_SYSTEM.TXT Use more inclusive language for seccomp filter 2020-06-15 10:12:17 -07:00
SECCOMP_BLOCKLIST_APP.TXT Fix setfsgid()/setfsuid() for LP32. 2023-02-03 23:10:04 +00:00
SECCOMP_BLOCKLIST_COMMON.TXT Revert "Disallow vmsplice(2) for all zygote-spawned processes." 2020-06-23 17:53:35 +00:00
SECCOMP_PRIORITY.TXT Use more inclusive language for seccomp filter 2020-06-15 10:12:17 -07:00
SYSCALLS.TXT Merge "Add epoll_pwait2()." into main 2023-09-05 21:48:08 +00:00
version_script.txt