Commit graph

38131 commits

Author SHA1 Message Date
Treehugger Robot
e2b9eff0e2 [automerger skipped] Merge "Extend bionic-unit-tests timeout." into android13-tests-dev am: 9c1e170668 -s ours am: b9ba5662c7 -s ours
am skip reason: Merged-In Ibd983da1c8fd06cffed756cf3b24523f4671d49e with SHA-1 1f3c8d688c is already in history

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

Change-Id: I36968436a41913c45358284152029eba0e40f4e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 18:54:13 +00:00
Treehugger Robot
b9ba5662c7 [automerger skipped] Merge "Extend bionic-unit-tests timeout." into android13-tests-dev am: 9c1e170668 -s ours
am skip reason: Merged-In Ibd983da1c8fd06cffed756cf3b24523f4671d49e with SHA-1 1f3c8d688c is already in history

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

Change-Id: I510ffb0ddf181b01fe02d4941459b4191c34ff42
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 17:56:07 +00:00
Mitch Phillips
a03d444908 [automerger skipped] Extend bionic-unit-tests timeout. am: 7a8366fede -s ours
am skip reason: Merged-In Ibd983da1c8fd06cffed756cf3b24523f4671d49e with SHA-1 1f3c8d688c is already in history

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

Change-Id: I053bc61afe5a19604d7d436892f351c94c2b89ac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 17:56:05 +00:00
Treehugger Robot
9c1e170668 Merge "Extend bionic-unit-tests timeout." into android13-tests-dev 2023-02-01 17:36:01 +00:00
Mitch Phillips
7a8366fede 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'
Merged-In: Ibd983da1c8fd06cffed756cf3b24523f4671d49e
Change-Id: Ibd983da1c8fd06cffed756cf3b24523f4671d49e
(cherry picked from commit 1f3c8d688c)
2023-02-01 12:43:34 +00:00
Treehugger Robot
35f70dbd1f Merge "Add BIONIC_COMPLICATED_NULLNESS as _Null_unspecified" am: b8a7a2ffbc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2408893

Change-Id: I7048e75f3ee00d30926293a03e2e0848d041c382
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 02:11:33 +00:00
Treehugger Robot
b8a7a2ffbc Merge "Add BIONIC_COMPLICATED_NULLNESS as _Null_unspecified" 2023-02-01 01:41:10 +00:00
zijunzhao
93eb87007a Add BIONIC_COMPLICATED_NULLNESS as _Null_unspecified
In some cases, the nullability of the pointer argument is too
complicated. Developers have better check relevant manuals or
code before annotating.

Bugs: b/245972273
Test: None
Change-Id: I3589a5080b267d1766cc8ed99868129ac16e4012
2023-01-31 22:51:30 +00:00
Christopher Ferris
d69e4b0cde Merge "Purge memory." am: c36823f7e8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2410758

Change-Id: I636c2969177abab580a31b7296fcf3dc3eb96043
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 22:32:19 +00:00
Christopher Ferris
c2569a97a2 Merge "Verify that allocated memory is always zeroed." am: b70b4e1f62
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2116713

Change-Id: I619d315dcefed273e1ac0828ee5206d574e611e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 22:31:12 +00:00
Christopher Ferris
c36823f7e8 Merge "Purge memory." 2023-01-31 22:19:00 +00:00
Christopher Ferris
b70b4e1f62 Merge "Verify that allocated memory is always zeroed." 2023-01-31 21:45:18 +00:00
Treehugger Robot
fae5f24c1f Merge "Nullability check for fcntl module" am: ab3fc60149
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2407912

Change-Id: Ifce83efcff17d57f75045595dd945d64454db0e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 02:40:57 +00:00
Treehugger Robot
ab3fc60149 Merge "Nullability check for fcntl module" 2023-01-31 01:56:33 +00:00
Christopher Ferris
aa3e57469c Purge memory.
Some operations wind up allocating then freeing a significant
amount of memory. So after those operations, do a purge so that
the RSS of the process is not artificially inflated.

Bug: 262321164

Test: Ran unit tests.
Test: Verified after this change, the RSS does not go up after running
Test: am dumpheap -n <PID>.
Change-Id: I08477f8ce12c06fd2a068f536a81f4a577d619e2
2023-01-31 01:37:11 +00:00
zijunzhao
4aa1ea04d7 Nullability check for fcntl module
Bugs: b/245972273
Test: None
Change-Id: I48d23c7bc80863cd3a67ab424780308fe6929292
2023-01-30 19:48:44 +00:00
Elliott Hughes
5d4100c7b6 Merge "Add (no-op) ifuncs for SVE optimized routines." am: b0360a94c3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2401568

Change-Id: I60b23b43635d94a5130933d0399a495ee7c27213
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-27 00:40:54 +00:00
Elliott Hughes
b0360a94c3 Merge "Add (no-op) ifuncs for SVE optimized routines." 2023-01-27 00:06:57 +00:00
Christopher Ferris
02b6bbc7b7 Verify that allocated memory is always zeroed.
If this is a low ram device, then do not run these tests. Otherwise,
verify that memory returned from the allocator is zero.

Bug: 171429763
Bug: 264539505
Bug: 265431478

Test: New unit tests pass on scudo.
Test: New unit tests fail on original jemalloc.
Test: New unit tests pass on jemalloc that always zeroes memory.
Test: New unit tests are skipped on low ram device.
Test: Ran unit tests atest CtsBionicTestCases in above scenarios.
Change-Id: Id62ab74f649c0f7c14a951235fe79972926ecec0
2023-01-26 15:19:09 -08:00
Treehugger Robot
e32dc9fb42 Merge "Nullability check for nl_types module" am: ec612d46c5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2403712

Change-Id: I94606cedec8710e43227ca231ad87e41cba2d415
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-26 16:35:06 +00:00
Treehugger Robot
ec612d46c5 Merge "Nullability check for nl_types module" 2023-01-26 16:06:14 +00:00
Vincent Donnefort
e29253ccb8 Merge "linker: Fallback to argv[0] to get the executable info" am: 8606375bbe
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2401294

Change-Id: I540b1c008f55aea96b1e43f11e5ee3c21d9f7eb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-26 11:14:53 +00:00
Vincent Donnefort
8606375bbe Merge "linker: Fallback to argv[0] to get the executable info" 2023-01-26 10:42:24 +00:00
zijunzhao
64b1fe21b7 Nullability check for nl_types module
Bugs: b/245972273
Test: None
Change-Id: Idc05efd6613c99292bd3c095679ac20bb6e8bf8f
2023-01-26 06:48:13 +00:00
Treehugger Robot
a7b1c12f7f Merge "Nullability check for utmp module" am: b1f9b1b224
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2393697

Change-Id: I1fba8346ddbd5b407161919a8078683cb6a019ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-26 00:52:41 +00:00
Elliott Hughes
3d8e98f8bd Add (no-op) ifuncs for SVE optimized routines.
This patch doesn't *enable* the SVE optimized routines, but it does let
us see if switching them to ifuncs will cause any app compat issues, so
that we can more easily use the optimized routines in future.

Test: treehugger
Change-Id: Ic5fe570bd21687da397b48127bf688f7ec68dd0c
2023-01-25 23:33:39 +00:00
Treehugger Robot
b1f9b1b224 Merge "Nullability check for utmp module" 2023-01-25 21:34:27 +00:00
Elliott Hughes
6f54c87921 Merge "Track upstream arm-optimized-routines changes." am: 8b47a35072
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2402615

Change-Id: I114deb064c80ad75732c59fb19d6a236fe02dc1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-25 20:51:23 +00:00
Elliott Hughes
8b47a35072 Merge "Track upstream arm-optimized-routines changes." 2023-01-25 20:21:25 +00:00
zijunzhao
d9755064a6 Nullability check for utmp module
Bugs: b/245972273
Test: None
Change-Id: Ie37781b87ad13119d1ebc4cd053e184d482d5b58
2023-01-25 19:22:27 +00:00
Elliott Hughes
5ec0bfae50 Track upstream arm-optimized-routines changes.
The MTE-compatible routines are now faster than the incompatible ones,
so they merged them upstream.

I've left the ifunc boilerplate on the assumption that I'll be back
later to enable the new SVE variants.

Test: treehugger
Change-Id: Ic894bfb350b9aa70e307bca1c4978624b3e5f4fd
2023-01-25 18:12:18 +00:00
Vincent Donnefort
2efa017409 linker: Fallback to argv[0] to get the executable info
Enable linking on a system without /proc mounted by falling back to
reading the executable paths from argv[0] when /proc/exe/self can't be
found.

Bug: 254835242
Change-Id: I0735e873fa4e2f439688722c4a846fb70ff398a5
2023-01-25 16:34:43 +00:00
Elliott Hughes
9b20021113 Merge "Sync strptime.c with upstream." am: 98c641b096
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2329450

Change-Id: Ieddf201dc33c253b142e62e24a9ab221825036e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-23 22:32:20 +00:00
Elliott Hughes
98c641b096 Merge "Sync strptime.c with upstream." 2023-01-23 22:04:29 +00:00
Treehugger Robot
f8db25a0f0 Merge "librust_baremetal: Add strtol" am: 6ffb6e89f9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2322638

Change-Id: I38bda5763712a581bbb70cb91439c36c58d555ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-23 11:35:18 +00:00
Treehugger Robot
6ffb6e89f9 Merge "librust_baremetal: Add strtol" 2023-01-23 10:59:25 +00:00
Elliott Hughes
6edd9e1772 Merge "Defer to getpagesize() in sysconf()." am: 3fa4eea5ce
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2395933

Change-Id: I5275245d077bcf73e536dadbe98bdd21878c4323
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 16:54:12 +00:00
Elliott Hughes
3fa4eea5ce Merge "Defer to getpagesize() in sysconf()." 2023-01-20 16:16:40 +00:00
Treehugger Robot
2499b23040 Merge "Re-enable the POSIX header tests for musl." am: 0ad996d4eb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2394534

Change-Id: I12d5e39a5fe38d52353d87d2f39413743920a87d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 03:45:30 +00:00
Treehugger Robot
0ad996d4eb Merge "Re-enable the POSIX header tests for musl." 2023-01-20 02:57:33 +00:00
Treehugger Robot
90d0bf5b45 Merge "Add #ifdefs to make POSIX header tests pass for musl" am: c3952c9059
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2394538

Change-Id: If35b65328220a2874abfb415746640f6a64d71ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 22:05:27 +00:00
Elliott Hughes
d05de20794 Re-enable the POSIX header tests for musl.
Bug: http://b/265874089
Test: treehugger
Change-Id: I05892d4a57fcceab0322c910d6482929b82bc5ee
2023-01-19 21:39:37 +00:00
Treehugger Robot
c3952c9059 Merge "Add #ifdefs to make POSIX header tests pass for musl" 2023-01-19 21:31:25 +00:00
Elliott Hughes
357908ddf6 Defer to getpagesize() in sysconf().
It makes sense that callers to getauxval() should have to pay for a
search --- that's exactly what they're asking for. But it seems silly
and unfair for the same to be true of sysconf() --- that's just an
implementation detail. Call getpagesize() directly instead.

Test: treehugger
Change-Id: I327adc55ace73bc6da68c4b34bf829d377bcbd1a
2023-01-19 21:30:26 +00:00
Colin Cross
b6830ca1fc Add #ifdefs to make POSIX header tests pass for musl
Bug: 265874089
Test: m USE_HOST_MUSL=true libbionic_tests_headers_posix
Change-Id: I6ae3ed3b91d5389f838b4a4f66c86bb00a27561a
2023-01-19 11:28:28 -08:00
Treehugger Robot
77ad5a3efa Merge "Link to the best relative relocations docs I know of." am: 806d2e71d7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2394537

Change-Id: Ic4465587d2231abb8f05c3c77aea08c70d08e142
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 02:16:04 +00:00
Christopher Ferris
07904a6367 Merge "Only run mallopt_smoke test on bionic." am: 8b42ba6bf2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2394535

Change-Id: If644053a606e074897964a3fabb1108bed2e7e02
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 02:15:17 +00:00
Treehugger Robot
806d2e71d7 Merge "Link to the best relative relocations docs I know of." 2023-01-19 01:22:03 +00:00
Christopher Ferris
8b42ba6bf2 Merge "Only run mallopt_smoke test on bionic." 2023-01-19 01:21:55 +00:00
Elliott Hughes
bb1cb03ad1 Link to the best relative relocations docs I know of.
Bug: https://github.com/android/ndk/discussions/1831
Test: N/A
Change-Id: Ida6d16a51f133ce3251db6ef8a25f4e1a8f2496e
2023-01-18 23:26:58 +00:00