Commit graph

43430 commits

Author SHA1 Message Date
Florian Mayer
59dc7956ff [MTE] fix longjmp handling
untag_memory didn't correctly handle the case where from = to, and would
always untag the first byte.

not changing the assembly for now to make this more obvious for
cherry-picking purposes.

Test: atest bionic-unit-tests-static
Bug: 348142687
(cherry picked from https://android-review.googlesource.com/q/commit:6b174efa140304f857547e3058baff445dd2f17f)
Merged-In: I47c635897e0b50bbe4367a869d9b53fa45be0dc0
Change-Id: I47c635897e0b50bbe4367a869d9b53fa45be0dc0
2024-06-26 02:59:32 +00:00
Android Build Coastguard Worker
0ccd76cbb6 Snap for 11973804 from 8f0b6b1eee to 24Q3-release
Change-Id: If14fde2b598cb91c6f728cbb16e93306eda52358
2024-06-15 01:00:42 +00:00
Florian Mayer
8f0b6b1eee Merge "Revert "Temporarily disable bionic-unit-tests-static"" into main am: 179b7d02e4 am: 3f4e02c7fc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3131732

Change-Id: Id2142c6d654944f677a71263cf206a37fc49d36d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 17:14:41 +00:00
Florian Mayer
3f4e02c7fc Merge "Revert "Temporarily disable bionic-unit-tests-static"" into main am: 179b7d02e4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3131732

Change-Id: I42c18e3e54f7f63743b7ddd7fa9b67ed68e1b20b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 17:06:31 +00:00
Florian Mayer
179b7d02e4 Merge "Revert "Temporarily disable bionic-unit-tests-static"" into main 2024-06-14 17:02:07 +00:00
Android Build Coastguard Worker
d28c3d58e0 Snap for 11967491 from a2ae8a7f6a to 24Q3-release
Change-Id: Ice5ad94c7ff060c1640777467a0b83a34f2582b7
2024-06-13 23:00:38 +00:00
Florian Mayer
7eb8269287 Revert "Temporarily disable bionic-unit-tests-static"
This reverts commit 63881da57f.

Reason for revert: toolchain fixed

Change-Id: Ib75a3dd661aa0e7e9a27c56cf57cb5c064e6a05f
2024-06-13 21:21:01 +00:00
Elliott Hughes
a2ae8a7f6a [automerger skipped] Merge "Move the ILP32 mremap() hackery into legacy_32_bit_support.cpp." into main am: de051b5d52 am: 5a520cd63c -s ours
am skip reason: Merged-In Ia375c29d18e31e646b795e643534f0be07d382b9 with SHA-1 82b033271d is already in history

Original change: https://android-review.googlesource.com/c/platform/bionic/+/3118835

Change-Id: Icadfe6e3f372055cf53c76d32ce9724d4620128a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-13 11:36:40 +00:00
Elliott Hughes
5a520cd63c Merge "Move the ILP32 mremap() hackery into legacy_32_bit_support.cpp." into main am: de051b5d52
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3118835

Change-Id: I12837dbb163ec5add894cbf6de93a8a248ee71d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-13 11:29:27 +00:00
Elliott Hughes
de051b5d52 Merge "Move the ILP32 mremap() hackery into legacy_32_bit_support.cpp." into main 2024-06-13 11:23:25 +00:00
Treehugger Robot
d4292548cb Merge "termios_test.cpp: move signedness cast." into main am: 573aa599ff am: 1b7f1c35c1
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3128257

Change-Id: I18335bbaaa8324cb1d734d7e78176616f4baf808
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 23:27:36 +00:00
Treehugger Robot
5e5cbe9c02 Merge "Temporarily disable bionic-unit-tests-static" into main am: 230499488a am: 86e86496cb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3128256

Change-Id: I3229cd67e3712acd42def5120327f622b13beb2a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 23:27:23 +00:00
Treehugger Robot
1b7f1c35c1 Merge "termios_test.cpp: move signedness cast." into main am: 573aa599ff
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3128257

Change-Id: I79d3c963cf1fe058d72ae0908821fd6cfcd9f54d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 23:05:44 +00:00
Treehugger Robot
86e86496cb Merge "Temporarily disable bionic-unit-tests-static" into main am: 230499488a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3128256

Change-Id: Ia983dbff1c3908c064a17df3a04dc373f2de5f66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 23:05:32 +00:00
Android Build Coastguard Worker
4b440c4c0d Snap for 11959661 from cb4bd152d6 to 24Q3-release
Change-Id: I00b3e5b49a22e15514457f50a9d8fdf0bb11a60d
2024-06-12 23:01:00 +00:00
Treehugger Robot
573aa599ff Merge "termios_test.cpp: move signedness cast." into main 2024-06-12 22:51:23 +00:00
Treehugger Robot
230499488a Merge "Temporarily disable bionic-unit-tests-static" into main 2024-06-12 22:42:42 +00:00
Elliott Hughes
7d9aa55df0 termios_test.cpp: move signedness cast.
Cast the constant (which should probably be unsigned in the kernel headers, but isn't), rather than the already [correctly] unsigned expression involving `c_cflag`.

This came up when there was a suggestion on the linux-api mailing list [https://lore.kernel.org/linux-api/be31d737-8263-4e59-8b30-7221ee0549fc@cs.ucla.edu/T/#mdd466d7eaefe8805de7b0cecf013c5cddb04c660] to maybe change the signedness of the constants; this was the only build breakage that would result in AOSP from doing so.

Change-Id: I64aeee0a8f5d2edd54a9a9352b1aa2b9e3aa245e
2024-06-12 21:43:55 +00:00
Florian Mayer
63881da57f Temporarily disable bionic-unit-tests-static
This is failing and will fail in presubmit, disabling while I
investigate.

Bug: 346609926
Change-Id: If439d1dcb74306bfd9e45655e58cfe427a7753aa
2024-06-12 21:36:42 +00:00
Elliott Hughes
bebe3d5b21 Move the ILP32 mremap() hackery into legacy_32_bit_support.cpp.
Similar to mmap(), this confuses me every time I look at it. Move it out
of the way, and make it clearer that this is just junk that can be
deleted when we remove 32-bit support.

Also improve coverage by adding a test for the varargs special case.

Test: treehugger
Merged-in: Ia375c29d18e31e646b795e643534f0be07d382b9
Change-Id: Ia375c29d18e31e646b795e643534f0be07d382b9
2024-06-12 21:10:51 +00:00
Elliott Hughes
ae915cbf6d Merge "Move the ILP32 mremap() hackery into legacy_32_bit_support.cpp." into main 2024-06-12 21:09:24 +00:00
Spandan Das
cb4bd152d6 Merge "Add libz to static libs of libfdtrack" into main am: b8f71f8d79 am: d52350a22a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2925154

Change-Id: Ifd702a7f281809f70f098afb48ae65b89039ed81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:19:07 +00:00
Spandan Das
d52350a22a Merge "Add libz to static libs of libfdtrack" into main am: b8f71f8d79
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2925154

Change-Id: I084ea49382a6dcfef947cb3d899d39bd2671b8e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:13:12 +00:00
Spandan Das
b8f71f8d79 Merge "Add libz to static libs of libfdtrack" into main 2024-06-11 23:08:57 +00:00
Android Build Coastguard Worker
0fd0ec009d Snap for 11954976 from f589eac769 to 24Q3-release
Change-Id: Ia37c6453c8b44042bdecc87250a2da1de41245f2
2024-06-11 23:01:01 +00:00
Elliott Hughes
82b033271d Move the ILP32 mremap() hackery into legacy_32_bit_support.cpp.
Similar to mmap(), this confuses me every time I look at it. Move it out
of the way, and make it clearer that this is just junk that can be
deleted when we remove 32-bit support.

Also improve coverage by adding a test for the varargs special case.

Ignore-AOSP-First: work around the lack of an ABI 35 dump in AOSP
Test: treehugger
Change-Id: Ia375c29d18e31e646b795e643534f0be07d382b9
2024-06-11 21:51:53 +00:00
Elliott Hughes
f589eac769 Merge "Add a missing riscv64 psabi constant." into main am: 5eb5f26e92 am: ce84cf0bd8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3125793

Change-Id: I414398b2d30297a3817281806b79680fba7ffcb3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 19:42:59 +00:00
Elliott Hughes
ce84cf0bd8 Merge "Add a missing riscv64 psabi constant." into main am: 5eb5f26e92
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3125793

Change-Id: Ib19bab7892cd1ccb5a222d26d2a7eebfb5415cc5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 19:23:17 +00:00
Elliott Hughes
5eb5f26e92 Merge "Add a missing riscv64 psabi constant." into main 2024-06-11 19:04:36 +00:00
Florian Mayer
3857b26f3c Merge "[HWASan] [16k] do not instrument getauxval" into main am: eff0fada9d am: 68790593e3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3124273

Change-Id: Ibf1d800effcbcac67f24529160ac48f01a75424a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 16:15:49 +00:00
Florian Mayer
68790593e3 Merge "[HWASan] [16k] do not instrument getauxval" into main am: eff0fada9d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3124273

Change-Id: I2641ac83e44c7ce0499bb4b6cf2d8d58b214b2a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 15:57:21 +00:00
Florian Mayer
eff0fada9d Merge "[HWASan] [16k] do not instrument getauxval" into main 2024-06-11 15:16:52 +00:00
Elliott Hughes
c221beccc1 Add a missing riscv64 psabi constant.
Also group all the RELR/arm64/riscv64 bits together rather than mixing them up slightly as we'd done so far.

Change-Id: Iff1ea2cfca9ff702b88aa2e7d09db46e2f34f965
2024-06-11 12:59:38 +00:00
Florian Mayer
d8328a931b [HWASan] [16k] do not instrument getauxval
To support page agnostic systems, we call getauxval before HWASan is
fully set up.

Bug: 315511637
Change-Id: I0b760943a23bd3a4d83bcc2182696a827dcbd446
2024-06-10 17:35:25 -07:00
Android Build Coastguard Worker
82a2dae89f Snap for 11949167 from 192f4e6828 to 24Q3-release
Change-Id: Iacd5914ad8e4f983e7e4e300c79028a24f829c83
2024-06-10 23:01:00 +00:00
Treehugger Robot
ab3a64c20a Merge "Fix anonymous class error" into main am: 44b0e7a725 am: af9c5273e5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3123411

Change-Id: Ie5754c593687f04493b655efc2296172886b0342
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 21:31:02 +00:00
Treehugger Robot
af9c5273e5 Merge "Fix anonymous class error" into main am: 44b0e7a725
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3123411

Change-Id: I072883b3aa38d9d2b0557dfa2effc415c97d48cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 21:01:09 +00:00
Treehugger Robot
44b0e7a725 Merge "Fix anonymous class error" into main 2024-06-10 20:41:48 +00:00
Zijun
eae85ad155 Fix anonymous class error
Fail to compile bionic/tests/complex_test.cpp when updating compiler due
to the conflict.

Bug: b/346349678
Test: change the clang version and then run mm to build
Change-Id: Ic22b7325b6e52006e620e13944f3f1d76030d782
2024-06-10 19:49:06 +00:00
Treehugger Robot
192f4e6828 Merge "[riscv][bionic] Prototype TLS Descriptor support" into main am: 7619ddbc4e am: 8be62724a0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2940588

Change-Id: I721b29f0f180e65bea4e0323cd39b81c4bd422cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 12:32:45 +00:00
Treehugger Robot
8be62724a0 Merge "[riscv][bionic] Prototype TLS Descriptor support" into main am: 7619ddbc4e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2940588

Change-Id: Iec6b5a1b5d5302adc2452643a3adcb685f0784ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 12:13:50 +00:00
Treehugger Robot
7619ddbc4e Merge "[riscv][bionic] Prototype TLS Descriptor support" into main 2024-06-10 11:45:26 +00:00
Android Build Coastguard Worker
f404ec80b4 Snap for 11944020 from 19e49a1c09 to 24Q3-release
Change-Id: Ia32aeb9cf7d9ae357ce2a6ce2465409e1114a511
2024-06-08 01:01:05 +00:00
Spandan Das
cc3a08e02e Add libz to static libs of libfdtrack
libz is no longer statically linked into libunwindstatck, so needs to be
added explicitly to this rdep

Bug: 281077552
Test: presubmits
Change-Id: Iadcee0c8b98ce4cfd3e238e7e4b3a3becc315e6c
2024-06-07 21:34:02 +00:00
Paul Kirth
4d4377881d [riscv][bionic] Prototype TLS Descriptor support
Add basic assembly stubs for TLS Descriptor support in the dynamic
linker, and enable several code paths related to TLSDESC for RISC-V.

Note: This patch requires an updated toolchain that supports TLSDESC
for RISC-V, and the `-mtls-dialect=` compiler option specifically.

Test: adb shell /data/nativetest64/bionic-unit-tests/bionic-unit-tests --gtest_filter=*tls*
Bug: 322984914
Change-Id: I74bd0fa216b44b4ca2c5a5a6aec37b3fc47b00d9
2024-06-07 14:30:22 -07:00
Elliott Hughes
19e49a1c09 Merge "Move the ILP32 mmap() hackery into legacy_32_bit_support.cpp." into main am: cbc07d4d31 am: 0031c5a935
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3118911

Change-Id: I9aef6205371070efa9ce76a7cce0796c6c47eceb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 11:12:04 +00:00
Elliott Hughes
0031c5a935 Merge "Move the ILP32 mmap() hackery into legacy_32_bit_support.cpp." into main am: cbc07d4d31
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3118911

Change-Id: I9a5922f1dd6fb6dd84352568799d8aec9d2e4837
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 10:55:52 +00:00
Elliott Hughes
cbc07d4d31 Merge "Move the ILP32 mmap() hackery into legacy_32_bit_support.cpp." into main 2024-06-07 10:36:10 +00:00
Android Build Coastguard Worker
9c3fad326d Snap for 11938003 from 2ec6d398ce to 24Q3-release
Change-Id: I1cfd1f6e47058b4c685cefdd859e0e2f7fbffa8e
2024-06-06 23:00:47 +00:00
Elliott Hughes
4358d53cd9 Move the ILP32 mmap() hackery into legacy_32_bit_support.cpp.
Every time I look at mmap.cpp, I fail to realize it's only built for ILP32.

Also improve some of the commentary in SYSCALLS.TXT and legacy_32_bit_support.cpp.

Change-Id: Ieedfe800b437e30c060c3e8663b6d96d517dbf6f
2024-06-06 21:08:17 +00:00