Commit graph

37175 commits

Author SHA1 Message Date
Mitch Phillips
1f3c8d688c Extend bionic-unit-tests timeout.
GWP-ASan stress tests can take a while, especially under HWASan.

Bug: 238585984
Test: sleep(100) in one of the tests, and then 'atest bionic-unit-tests'
Change-Id: Ibd983da1c8fd06cffed756cf3b24523f4671d49e
2022-07-11 09:35:12 -07:00
Mark Dacek
fb27dfbc12 Merge "Rename deps in libc to account for name/src collision work." am: 7ff6a44dce
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2138258

Change-Id: Ie98488be930b21f08e9f924630c214879d5f47ac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 18:51:06 +00:00
Mark Dacek
7ff6a44dce Merge "Rename deps in libc to account for name/src collision work." 2022-07-08 18:32:06 +00:00
MarkDacek
d88d7ea329 Rename deps in libc to account for name/src collision work.
Test: m
Bug: 198619163
Change-Id: Ic41f7c1611d69c0c0936b8f5869a3450f1542b5c
2022-07-06 17:26:20 +00:00
Colin Cross
cc2316e9d1 Merge "Switch to the more common idiom for scripts in genrules." am: cb8b43e1dd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2142673

Change-Id: Ib238ceb219715d1445e11e6f153fc67d81edba26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 03:20:49 +00:00
Colin Cross
cb8b43e1dd Merge "Switch to the more common idiom for scripts in genrules." 2022-07-01 02:57:12 +00:00
Elliott Hughes
291f98a66d Switch to the more common idiom for scripts in genrules.
Bug: http://b/198619163
Test: treehugger
Change-Id: I8a6e9e179aef45e1b0622a2e15f80f92041f9736
2022-06-30 23:35:11 +00:00
Almaz Mingaleev
f3568d4919 Merge "Revert "Revert "Do not look for tzdata file in /data.""" am: ecca88329b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2139892

Change-Id: Ie492b3e2809da4aa19d4f8df34d97ba743fbbbc8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 16:34:40 +00:00
Almaz Mingaleev
ecca88329b Merge "Revert "Revert "Do not look for tzdata file in /data.""" 2022-06-30 16:17:05 +00:00
Almaz Mingaleev
da75bb637d Revert "Revert "Do not look for tzdata file in /data.""
This reverts commit 4e013233b8.

Issue was in unexpected returned fd and errno value combination.
See comments in bionic.cpp and time_test.cpp.

Bug: 236967833
Fix: 236967833

Test: atest CtsBionicTestCases
Test: atest toybox-tests

Change-Id: I51b3e1527ff16b2a6ea4d6fedf8102019f7fd896
2022-06-30 09:39:53 +01:00
Spandan Das
69cfe53c4d Merge "Declare libc's contributions to API surface(s) in Multi-tree" am: 727ab31fd8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2138498

Change-Id: I4ea7382153fea3d4ed7694be38e315d5465c2caf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 00:12:47 +00:00
Spandan Das
727ab31fd8 Merge "Declare libc's contributions to API surface(s) in Multi-tree" 2022-06-29 23:51:05 +00:00
Mitch Phillips
a1dcffb00b Merge "Add persistent GWP-ASan sysprops." am: 4c5e40b98a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2135293

Change-Id: I04c8c62230400f68e80c3459f47c7eb0c221e578
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-29 21:17:11 +00:00
Mitch Phillips
4c5e40b98a Merge "Add persistent GWP-ASan sysprops." 2022-06-29 20:56:56 +00:00
Spandan Das
3523e8e393 Declare libc's contributions to API surface(s) in Multi-tree
As part of go/multitree-design, build dependencies between API domains
must be via stable API surfaces. The contributions to the API surfaces
will be declared in BUILD files so that we can skip the
migration from Soong->Bazel entirely for this (go/multi-tree-api-export)

libc is one such component of the system API domain that contributes to
the public API surface. This CL declares libc's contributions (its
headers/.map.txt/other_metadata). These BUILD files were generated
manually by looking at existing Android.bp files.

Test: STANDALONE_BAZEL=1 tools/bazel cquery
//bionic/libc:libc_contributions --output=starlark
--starlark:expr="providers(target).get(\"//build/bazel/rules/apis:cc_api_contribution.bzl%CcApiContributionInfo\")"
2>/dev/null | less

Change-Id: If2a429b782651872fd6d8bf8c291439fdf838d85
2022-06-29 20:40:11 +00:00
Mitch Phillips
9634c36565 Add persistent GWP-ASan sysprops.
Adds persistent sysprops for test infra usage, and adds the tests for
the sysprops.

The test does some fancy flocking in order to restore any existing
GWP-ASan sysprop usage in the test cleanup.

Bug: 236738714
Test: atest bionic-unit-tests
Change-Id: I8956296d39c98ce8c7dd0a703b240530d8ad48db
2022-06-29 09:25:13 -07:00
Treehugger Robot
2df41a36ef Merge "Add Android U API level to NDK headers" am: fd0a1ea466
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2135862

Change-Id: I3186d11d98f06fdd9e2a5554337e1f0ad0fc1df1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-28 11:43:56 +00:00
Treehugger Robot
fd0a1ea466 Merge "Add Android U API level to NDK headers" 2022-06-28 10:28:41 +00:00
Xin Li
dc317b352e DO NOT MERGE - Empty merge of tm-dev-plus-aosp-without-vendor@8763363
Merged-In: Ia9832ff62b6d700673f41f0c1c013090a21fe5ec
Change-Id: I77b7604d22c65bc10f26ce2dd67e065085fd97ca
2022-06-27 23:25:43 +00:00
Michael Wright
8cd2ebf80e Add Android U API level to NDK headers
Test: Build
Change-Id: Ic1e0d8b7e5abf07045944d2f610764709b45c923
2022-06-25 00:56:08 +00:00
Elliott Hughes
35bfcae003 Merge "Add the toybox tests to bionic's presubmit." am: 9da1b3fa29
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2135001

Change-Id: I253080ba8a55849cc9bf2079f3a6f17b3d644701
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 16:18:31 +00:00
Elliott Hughes
9da1b3fa29 Merge "Add the toybox tests to bionic's presubmit." 2022-06-24 15:50:19 +00:00
Elliott Hughes
8fda8fc0fd Add the toybox tests to bionic's presubmit.
I can't believe we didn't have this already.

Bug: http://b/236967833
Test: treehugger
Change-Id: Ic0fa7fd8e74860744d13d0c168b49240a86a8df2
2022-06-23 22:31:57 +00:00
Treehugger Robot
ecd1e141de Merge "Revert "Do not look for tzdata file in /data."" am: b566c53033 am: 5ee3a52b55
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2134338

Change-Id: I8d81a0c0f86262af3629fcefe115f3966e760a6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 19:49:51 +00:00
Treehugger Robot
5ee3a52b55 Merge "Revert "Do not look for tzdata file in /data."" am: b566c53033
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2134338

Change-Id: I0b891c5bdb07039cbf79af56881957788bc9e759
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 19:22:16 +00:00
Treehugger Robot
b566c53033 Merge "Revert "Do not look for tzdata file in /data."" 2022-06-23 19:02:19 +00:00
Almaz Mingaleev
4e013233b8 Revert "Do not look for tzdata file in /data."
This reverts commit e9a20895ea.

Reason for revert: b/236967833. Breaks toybox tests

Change-Id: Ia9832ff62b6d700673f41f0c1c013090a21fe5ec
2022-06-23 16:41:24 +00:00
Treehugger Robot
7ba4e9f419 Merge "Do not look for tzdata file in /data." am: 7ed88b6276 am: 644ad58099
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2127412

Change-Id: I8609b0f29d6977035012d9f99bd08cdc34a389c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 13:02:11 +00:00
Treehugger Robot
644ad58099 Merge "Do not look for tzdata file in /data." am: 7ed88b6276
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2127412

Change-Id: I865b36adbcd937a1439ea50e80f7fcdbc08162a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 12:35:14 +00:00
Treehugger Robot
7ed88b6276 Merge "Do not look for tzdata file in /data." 2022-06-23 12:13:19 +00:00
Elliott Hughes
94c78425d5 Merge "Document another obsolete POSIX function." am: 170ae1f96d am: 8ecad38786
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2125815

Change-Id: I71ff6a0a59d820adb32240e9cd5cced2b9874270
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 15:43:23 +00:00
Elliott Hughes
8ecad38786 Merge "Document another obsolete POSIX function." am: 170ae1f96d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2125815

Change-Id: I14193b9a9e3249a51ad26771b0286cf7678a1bb4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 15:03:57 +00:00
Elliott Hughes
170ae1f96d Merge "Document another obsolete POSIX function." 2022-06-15 14:40:41 +00:00
Almaz Mingaleev
e9a20895ea Do not look for tzdata file in /data.
That was place where APK update mechanism placed tzdata file. Now
the mechanism is removed, so no need to look for tzdata there.

Bug: 148144561

Test: atest CtsBionicTestCases
Test: atest BionicTzdbConsistencyTest
Change-Id: I584400a75651cf24a25df74c7007fcd584838395
2022-06-15 10:02:44 +01:00
Elliott Hughes
a39ac04033 Document another obsolete POSIX function.
ualarm(3) was removed from POSIX in 2008, but somehow wasn't included in
the list of such functions (perhaps because it's not inherently useless
like a lot of the other stuff is; it just has a better replacement).

Test: N/A
Change-Id: I0347d3e7f1357bc2acb870f74e9084872c28ca3e
2022-06-14 17:23:35 -07:00
Ryan Prichard
621ef07d0d Merge "Avoid using new/delete in locale.cpp" am: d18e608279 am: 7a0fc4167b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2120600

Change-Id: Ic3002d0ff569239704cce44940b22e8a30192c32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 22:59:11 +00:00
Ryan Prichard
7a0fc4167b Merge "Avoid using new/delete in locale.cpp" am: d18e608279
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2120600

Change-Id: I8a82972552849befdab22104f18616a5065b97ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 22:30:32 +00:00
Ryan Prichard
d18e608279 Merge "Avoid using new/delete in locale.cpp" 2022-06-14 20:57:55 +00:00
Ryan Prichard
bcb9715b63 Avoid using new/delete in locale.cpp
This file is included in libandroid_support.a, where using new/delete
breaks libc++ tests that assume that libc++ makes no extraneous
new/delete calls.

This CL changes newlocale/duplocale to return NULL on out-of-memory.
Previously, the behavior varied:
 - libc.so: aborted using async_safe_fatal
 - libandroid_support.a: throws std::bad_alloc

Bug: none
Test: std/input.output/filesystems/class.path/path.member/path.assign/move.pass.cpp
Test: libcxx/localization/locales/locale/locale.types/locale.facet/no_allocation.pass.cpp
Test: std/input.output/filesystems/class.path/path.member/path.construct/move.pass.cpp
Change-Id: I38c772f249f32322afb9402ebeeb4bb65a908b59
2022-06-13 17:39:32 -07:00
Christopher Ferris
0a3d639d93 Merge "Update to v5.18 kernel headers." am: a8cb33ff07 am: 2a769de6da
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2120313

Change-Id: I2b6ee1d06f69508e1726eae39cee10e18e94bfeb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 17:41:58 +00:00
Christopher Ferris
2a769de6da Merge "Update to v5.18 kernel headers." am: a8cb33ff07
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2120313

Change-Id: I1f302ab521965affe1314a0f84546063e31c7a63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 17:22:53 +00:00
Christopher Ferris
a8cb33ff07 Merge "Update to v5.18 kernel headers." 2022-06-09 16:51:59 +00:00
Almaz Mingaleev
032a545835 Merge "Set TZDEFAULT to NULL." am: 9465700983 am: dc4c1f7dd9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2101267

Change-Id: Id0b5981d74bde2605907fe8915d9f671652571c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 11:10:12 +00:00
Almaz Mingaleev
dc4c1f7dd9 Merge "Set TZDEFAULT to NULL." am: 9465700983
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2101267

Change-Id: I7a0ee6a032366d01f0f14d7adef40b6bd9a2ebbb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 10:44:06 +00:00
Almaz Mingaleev
9465700983 Merge "Set TZDEFAULT to NULL." 2022-06-09 09:59:01 +00:00
Christopher Ferris
10a76e674d Update to v5.18 kernel headers.
Kernel headers coming from:

Git: https://android.googlesource.com/kernel/common/
Branch: android-mainline
Tag: android-mainline-5.18

The file bionic/libc/kernel/uapi/linux/android/binder.h had a bug
in the original 5.18 kernel headers. This was fixed upstream, so
add a comment to the structure but leave the incorrect field the
same as the 5.17 kernel headers.

Bug: 234125620

Test: Builds.
Test: All bionic unit tests pass on a coral device.
Test: Able to log in to wembley system.
Change-Id: Ia72cafbe71fd894c599e15aa5334d7bbcbe74778
2022-06-08 13:31:52 -07:00
Almaz Mingaleev
e766879758 Merge "Bump tzcode from 2016g to 2022a*." am: 0219fe82c6 am: 7902bfcf9d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1985266

Change-Id: I39437b70bafc29dacb36ecdcdbc98c08882e6def
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 08:32:27 +00:00
Almaz Mingaleev
7902bfcf9d Merge "Bump tzcode from 2016g to 2022a*." am: 0219fe82c6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1985266

Change-Id: I46d908bd069f53544dfb89ed22a5eb37a294a166
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 08:14:49 +00:00
Almaz Mingaleev
0219fe82c6 Merge "Bump tzcode from 2016g to 2022a*." 2022-06-08 07:53:40 +00:00
Treehugger Robot
8bea98fb4e Merge "docs: add a clang_fortify_anatomy doc" am: df8ff491bb am: 6f1d2ad52a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2117839

Change-Id: I7c12dd80502ac91af2793a59590a052960266975
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-07 23:44:03 +00:00