Commit graph

43329 commits

Author SHA1 Message Date
Treehugger Robot
bdba54d9c5 Merge "Update <android/api-level.h>." into main 2024-05-16 20:35:55 +00:00
Treehugger Robot
bd3759fb78 Merge "Update <system_properties.h> documentation." into main am: 923b48c1c5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092839

Change-Id: I66db4d91cf5c5f2c87d62f56bb25cd7580a2e786
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 20:24:05 +00:00
Treehugger Robot
79b380d31b Merge "Document <link.h>." into main am: 69fa31a8d5 am: ba97f9854b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092560

Change-Id: Ib0c9ac5aa426b890394a1c91d87b5a66f00742eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 20:00:01 +00:00
Treehugger Robot
923b48c1c5 Merge "Update <system_properties.h> documentation." into main 2024-05-16 19:57:13 +00:00
Treehugger Robot
ba97f9854b Merge "Document <link.h>." into main am: 69fa31a8d5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092560

Change-Id: I25b545240674d1c4040236b2180952824a4eda87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 19:37:19 +00:00
Treehugger Robot
69fa31a8d5 Merge "Document <link.h>." into main 2024-05-16 19:20:36 +00:00
Elliott Hughes
c2622a5d4c Minor <android/dlext.h> documentation improvements.
Change-Id: I7ba1228c938e2fce858beb126e1e81620bba0459
2024-05-16 19:02:36 +00:00
Elliott Hughes
3772ae4f96 Update <system_properties.h> documentation.
Change-Id: I70de8dee963d00c480e0cb2faa9988d1d6c76d05
2024-05-16 18:45:03 +00:00
Elliott Hughes
d6c3a078bc Update <android/api-level.h>.
Change-Id: Id1522fdaf3041dcd3f296a716e8a2a1936c389e8
2024-05-16 18:31:47 +00:00
Elliott Hughes
72b10fc254 Document <link.h>.
I was only here to stop saying "Android R", which doesn't mean much to most app developers, but while I'm here...

Change-Id: I0ffd5d679747491d338064e36efc80b2b82e9e06
2024-05-16 18:10:23 +00:00
Treehugger Robot
be9974c9bc Merge "[MTE] cleanup: factor out BIONIC_MEMTAG_UPGRADE_SECS handling" into main am: 03a4448dcf am: 2355b06180
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3083952

Change-Id: I9f1d1b1eb24a740723881c972bc54110d6f62ca1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 20:13:45 +00:00
Treehugger Robot
2355b06180 Merge "[MTE] cleanup: factor out BIONIC_MEMTAG_UPGRADE_SECS handling" into main am: 03a4448dcf
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3083952

Change-Id: I44ae36a0c20a31a04002bae0a89dfe7996f1b7a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 19:54:17 +00:00
Treehugger Robot
03a4448dcf Merge "[MTE] cleanup: factor out BIONIC_MEMTAG_UPGRADE_SECS handling" into main 2024-05-15 19:40:01 +00:00
Christopher Ferris
9fbf7ebd3f Merge "Skip stack protector test on HWASan." into main am: f0247b6b68 am: 04f7765e16
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3083273

Change-Id: Ibce3e4a93daee2d738676744d6c477280db4d716
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 18:33:27 +00:00
Christopher Ferris
04f7765e16 Merge "Skip stack protector test on HWASan." into main am: f0247b6b68
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3083273

Change-Id: Ie9b6f6830fce1c922c882f1a2b87b801d7244287
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 18:11:46 +00:00
Christopher Ferris
f0247b6b68 Merge "Skip stack protector test on HWASan." into main 2024-05-15 17:53:50 +00:00
Florian Mayer
f3326581c0 [MTE] cleanup: factor out BIONIC_MEMTAG_UPGRADE_SECS handling
This makes __libc_init_mte easier to read.

Change-Id: I2826f62e53895093d1631d4e6c7e3ff844cf9def
2024-05-15 16:39:36 +00:00
Elliott Hughes
3469e7df9b Tidy and document the inline/__inline/__inline__ situation.
We can (and should) use `inline` in C++ but not in C headers that
need to support ANSI/C89/C90. `__inline__` works everywhere, but
traditionally we've used the BSD `__inline` in public headers.

Change-Id: I920e0a1f5fcd01cf8ddd89240ef66b25c50378d7
2024-05-15 16:06:07 +00:00
Yi Kong
f8196c556c Merge "Use vmov.f64 for SET_FREG" into main am: 3c0173d988 am: 185fccad47
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3086265

Change-Id: Ib1630ffc3482a856f6986b8ca4535257907a7bed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 14:47:31 +00:00
Yi Kong
185fccad47 Merge "Use vmov.f64 for SET_FREG" into main am: 3c0173d988
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3086265

Change-Id: I059d7c5b76676e72f8c3f0fd074156cf04abbc3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 14:31:47 +00:00
Yi Kong
3c0173d988 Merge "Use vmov.f64 for SET_FREG" into main 2024-05-15 13:56:47 +00:00
Yi Kong
11f696ad00 Use vmov.f64 for SET_FREG
When implemented using fcpyd, Clang sometimes generates redundant vmovs
after SET_FREGS on ARM32 and touches registers set, causing the test to
fail. Use vmov.f64 instead and that avoids the issue.

Test: atest CtsBionicTestCases:setjmp#setjmp_fp_registers -- --abi armeabi-v7a
Test: atest CtsBionicTestCases:setjmp#setjmp_fp_registers -- --abi arm64-v8a
Bug: 337903801
Change-Id: Ibd89b120f8a3cc80c34905069469fd244a902d1e
2024-05-15 15:29:29 +09:00
Treehugger Robot
599b3b0616 Merge "Revert "Use inline keyword without underscores consistently"" into main am: d47975728d am: 397f74e4e8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3086365

Change-Id: Ic7d583c906af35ffc313663888366fc51533ea3e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 00:54:14 +00:00
Treehugger Robot
397f74e4e8 Merge "Revert "Use inline keyword without underscores consistently"" into main am: d47975728d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3086365

Change-Id: Ia8a10653b3420d9b094a4cd3688bc0358a034fa0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 00:37:12 +00:00
Christopher Ferris
0e0d600523 Skip stack protector test on HWASan.
On HWASan, it's not really possible to test scribbling on the
stack protector, so skip the test in this case.

Bug: 339529777

Test: Verified stack protector test is skipped.
Change-Id: I541416f8a84f649f83868574907b1e445d990aa0
2024-05-14 17:31:27 -07:00
Treehugger Robot
d47975728d Merge "Revert "Use inline keyword without underscores consistently"" into main 2024-05-15 00:18:01 +00:00
Dan Albert
2237fcf1fa Revert "Use inline keyword without underscores consistently"
This reverts commit 58f06e1112.

Bare `inline` is not ANSI C compatible, and NDK users may be using
that.

Test: treehugger
Change-Id: I82c5424522142001cd59da63ef3fd440014451ad
2024-05-14 17:55:54 +00:00
Treehugger Robot
310f5fc09b Merge "Rename GWP-ASan android_mallopt() arguments" into main am: d06e2e7b29 am: 3faf31f694
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3071762

Change-Id: Ic77fd878fb32ec42fdca27d78138debc8bc922ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-09 17:37:32 +00:00
Treehugger Robot
3faf31f694 Merge "Rename GWP-ASan android_mallopt() arguments" into main am: d06e2e7b29
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3071762

Change-Id: I98b93965571951811997c5aaa3fcb0a6e2d13dae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-09 17:34:29 +00:00
Treehugger Robot
d06e2e7b29 Merge "Rename GWP-ASan android_mallopt() arguments" into main 2024-05-09 17:29:34 +00:00
Jiyong Park
8120951f6f Merge "Export capability.h as a filegroup" into main am: 3aa32e2c81 am: 8a3ead398d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3074303

Change-Id: I75094d278e94898aaabcabef881f647b1e4f6dca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 03:03:06 +00:00
Jiyong Park
8a3ead398d Merge "Export capability.h as a filegroup" into main am: 3aa32e2c81
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3074303

Change-Id: Iee2d148ed4a6f177f599213e22dc008f4e6b7067
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 02:43:28 +00:00
Jiyong Park
3aa32e2c81 Merge "Export capability.h as a filegroup" into main 2024-05-07 02:17:26 +00:00
Florian Mayer
170b8961d5 Merge "[MTE] update ring buffer when enabling stack trace collection" into main am: d29fcf6e37 am: e69402769c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3075830

Change-Id: If2d049e4beea87d946c8bc155f6afcc2585258c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 01:32:53 +00:00
Florian Mayer
e69402769c Merge "[MTE] update ring buffer when enabling stack trace collection" into main am: d29fcf6e37
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3075830

Change-Id: Ie1e6389e33a7eeec590173fc8a40f4424d1ded8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 01:09:05 +00:00
Florian Mayer
d29fcf6e37 Merge "[MTE] update ring buffer when enabling stack trace collection" into main 2024-05-07 00:41:10 +00:00
Florian Mayer
c6d1e23b3f [MTE] update ring buffer when enabling stack trace collection
A change in scudo changed to lazy allocation of the ring buffer,
so we need to update the globals once we enable stack trace collection

Bug: 339020123
Test: sanitizer test app
Change-Id: Ideda7b761e75052d09df27de1f6b04aeb9a03dc2
2024-05-06 14:46:32 -07:00
Christopher Ferris
3f4f1df9e3 Merge "Change malloc_not_svelte to malloc_low_memory." into main am: 5fa285da96 am: eb1821e6b6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3063228

Change-Id: Icec4ddbdfd51626263a5e381c41df0927b0c8742
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-06 20:15:42 +00:00
Christopher Ferris
eb1821e6b6 Merge "Change malloc_not_svelte to malloc_low_memory." into main am: 5fa285da96
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3063228

Change-Id: Ie86a5add000c45247a632e1d26a130ee82488d85
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-06 19:59:40 +00:00
Christopher Ferris
5fa285da96 Merge "Change malloc_not_svelte to malloc_low_memory." into main 2024-05-06 19:45:06 +00:00
Mitch Phillips
ebc2ac934f Rename GWP-ASan android_mallopt() arguments
The previous names were difficult to decipher. Now, let's change this
all to be more clear as it's actually one android_mallopt() call
depending on where it's called from, rather than the intended behaviour.

Also updated the comments so it's clear what happened across different
versions of Android.

Test: atest bionic-unit-tests CtsGwpAsanTestCases
Bug: N/a
Change-Id: I0582cab0b74aa09f4af54f9fbe5ba22697f82082
2024-05-03 13:20:45 +02:00
Jiyong Park
35a280d818 Export capability.h as a filegroup
... so that it can be used by fs_config_[dirs|files] genrules.
Previously, the fs_config_* were created by Android.mk and capability.h
was referenced directly from there. Since Soong doesn't allow that,
let's export the file explicitly.

Bug: 337993745
Test: m
Change-Id: I2777a4dbe6b977bc64c5f6defe748fa7993e578e
2024-05-03 16:53:39 +09:00
Ryan Prichard
0bac1cb8b9 Revert^2 "Switch the loader to a noexcept version of libc++"
This CL reverts commit 698ca39c9e.

Bug: 332594828
Test: treehugger
Change-Id: I4b107e4bdd3b3bef25f531fcaa58d2ae8b8270f9
2024-05-03 01:18:17 +00:00
Treehugger Robot
acc737457f Merge "Update the _FORTIFY_SOURCE documentation." into main am: b1f23829ee am: 074d6d5904
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3072723

Change-Id: Iae66aa938ce8f8f6bb0c57af49a40ee114686f61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-02 22:46:06 +00:00
Treehugger Robot
26805ed03c Merge "Add deprecation message for __sF." into main am: a97a4754a3 am: c897f66c3b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3073023

Change-Id: Iee6c3bd78a6cbc9d3884d20ef6229f0acbb3b1b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-02 22:45:56 +00:00
Treehugger Robot
0ec69dc084 Merge "Allow deprecation messages." into main am: 000745aa37 am: 4793fa0261
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3070007

Change-Id: I0653fc0b2f817372dfdd0956d3752e911feb427f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-02 22:44:56 +00:00
Treehugger Robot
074d6d5904 Merge "Update the _FORTIFY_SOURCE documentation." into main am: b1f23829ee
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3072723

Change-Id: I397fd9ead97e14ab07e312252a63218968e020c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-02 22:31:33 +00:00
Treehugger Robot
b1f23829ee Merge "Update the _FORTIFY_SOURCE documentation." into main 2024-05-02 22:27:12 +00:00
Treehugger Robot
c897f66c3b Merge "Add deprecation message for __sF." into main am: a97a4754a3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3073023

Change-Id: I624755c215e574f7fbe12946aeeaa11fe404a91d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-02 22:23:52 +00:00
Treehugger Robot
a97a4754a3 Merge "Add deprecation message for __sF." into main 2024-05-02 22:19:13 +00:00