Commit graph

35720 commits

Author SHA1 Message Date
Steven Moreland
dd23725dcf Merge "Revert "strerror: incl enum name"" am: f72eb4e575
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1847495

Change-Id: I62f8bf789920c696822bad360a1316c62b770d70
2021-10-07 00:39:31 +00:00
Steven Moreland
f72eb4e575 Merge "Revert "strerror: incl enum name"" 2021-10-07 00:25:39 +00:00
Steven Moreland
4ef83d6919 Revert "strerror: incl enum name"
Revert submission 1833622-usable-strerror

Reason for revert: b/202330586
Bug: 202330586
Reverted Changes:
I4d8f617a0:Track strerror(3) change.
I8ea86220c:strerror: incl enum name
I407bd9f4d:strerror: incl enum name

Change-Id: I81ed563221a77827084711eadd7fb739aeba52a1
2021-10-07 00:19:18 +00:00
Elliott Hughes
41e6ea55c9 Merge "strerror: incl enum name" am: 71ab61902b am: 8afd4f34f1 am: 1c81493eab
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1833622

Change-Id: Ic386c26abb032541fedcc311d75a7ad0cfd975b1
2021-10-06 20:30:13 +00:00
Elliott Hughes
1c81493eab Merge "strerror: incl enum name" am: 71ab61902b am: 8afd4f34f1
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1833622

Change-Id: Id28072b47dba04aeea1f4fe2838490f37cfe3cfe
2021-10-06 20:09:05 +00:00
Elliott Hughes
8afd4f34f1 Merge "strerror: incl enum name" am: 71ab61902b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1833622

Change-Id: I2aa12728395e9045db294b64f4edd2032af186a5
2021-10-06 19:53:46 +00:00
Elliott Hughes
71ab61902b Merge "strerror: incl enum name" 2021-10-06 19:35:51 +00:00
Steven Moreland
c3060de20f strerror: incl enum name
strerror is nice, but usually I don't care about the text, I care about
the uppercase enum

Bug: N/A
Test: ./tests/run-on-host.sh glibc (existing failures -> b/201305529)
Test: atest bionic-unit-tests-static
Test: atest malloc_debug_unit_tests

Change-Id: I407bd9f4dfa918fff66a0da7df8d7239f789c7b8
2021-10-05 11:12:30 -07:00
Elliott Hughes
5debadd648 Merge "Move ExecTestHelper to using a regex." am: b4d9304628 am: 617c4b5876 am: 60631ec17e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1843499

Change-Id: I6b42fc4b9e4be4bc3423886030f7b8f4e988c13e
2021-10-02 00:07:30 +00:00
Elliott Hughes
60631ec17e Merge "Move ExecTestHelper to using a regex." am: b4d9304628 am: 617c4b5876
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1843499

Change-Id: I34bf974569295f03e4ed5ee37fa515b0d5a69e84
2021-10-01 23:54:25 +00:00
Elliott Hughes
617c4b5876 Merge "Move ExecTestHelper to using a regex." am: b4d9304628
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1843499

Change-Id: I1c1f6cb3fe3930de9593cf531d49ca99681b59b6
2021-10-01 23:43:31 +00:00
Elliott Hughes
b4d9304628 Merge "Move ExecTestHelper to using a regex." 2021-10-01 23:31:05 +00:00
Christopher Parsons
e69fa65db9 Merge "Remove bazel_module stanzas from bionic/linker" am: 39c2776fff am: 4201548a9a am: c304168d97
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1842696

Change-Id: Ibd8665a4eacc0172a05c00e4df1beddb031bd4ea
2021-10-01 23:00:04 +00:00
Christopher Parsons
c304168d97 Merge "Remove bazel_module stanzas from bionic/linker" am: 39c2776fff am: 4201548a9a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1842696

Change-Id: Id5eff620b2c70779e190e26e728adcc12e2c9a0c
2021-10-01 22:42:47 +00:00
Christopher Parsons
4201548a9a Merge "Remove bazel_module stanzas from bionic/linker" am: 39c2776fff
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1842696

Change-Id: Ibe3045926690f69442f853069c445e8afd811b71
2021-10-01 22:21:38 +00:00
Christopher Parsons
39c2776fff Merge "Remove bazel_module stanzas from bionic/linker" 2021-10-01 22:11:52 +00:00
Colin Cross
9445da6014 Merge "Add more tests to TEST_MAPPING" am: 8d9297f905 am: de04eeba47 am: 6467e218b4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1842081

Change-Id: I208a7d7ef037f0bac2b62fa45db7900c5af65c61
2021-10-01 21:45:58 +00:00
Colin Cross
6467e218b4 Merge "Add more tests to TEST_MAPPING" am: 8d9297f905 am: de04eeba47
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1842081

Change-Id: Ifade5c6673d99791f2110c62f1339f2c2c345063
2021-10-01 21:31:01 +00:00
Colin Cross
de04eeba47 Merge "Add more tests to TEST_MAPPING" am: 8d9297f905
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1842081

Change-Id: I9978f200ea493aed0cfd973991099c56860cadfc
2021-10-01 21:15:27 +00:00
Colin Cross
8d9297f905 Merge "Add more tests to TEST_MAPPING" 2021-10-01 21:00:23 +00:00
Elliott Hughes
419554e99c Move ExecTestHelper to using a regex.
Test: treehugger
Change-Id: I1aa6bc174e000cb57481c51109d98b8c2c5acb8e
2021-10-01 13:11:53 -07:00
Chris Parsons
ebe5e5f7d4 Remove bazel_module stanzas from bionic/linker
This also effectively re-enables linker_wrapper, which may have been
independently fixed some time ago.

Test: mixed_droid.sh
Change-Id: I9bc7e099fe3c5da1c4da12c79128baf6f807354a
2021-10-01 16:06:38 -04:00
Colin Cross
691b891d9c Merge "Convert bionic dlext test zips to Android.bp" am: 7b40b4dda0 am: 6f7870742e am: a9937042aa
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1838353

Change-Id: I0aba2dd3759c0eb2da27b5f72f7f62e3f956c2f5
2021-10-01 17:21:41 +00:00
Colin Cross
a9937042aa Merge "Convert bionic dlext test zips to Android.bp" am: 7b40b4dda0 am: 6f7870742e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1838353

Change-Id: I87b2124839f8b07bfa6a5d1c7d26c4e26947158d
2021-10-01 17:03:23 +00:00
Colin Cross
6f7870742e Merge "Convert bionic dlext test zips to Android.bp" am: 7b40b4dda0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1838353

Change-Id: I8f4f3cc333c9a9709ad323b58813d716ac7c818f
2021-10-01 16:46:26 +00:00
Colin Cross
7b40b4dda0 Merge "Convert bionic dlext test zips to Android.bp" 2021-10-01 16:27:54 +00:00
Colin Cross
0cc60afa33 Add more tests to TEST_MAPPING
Test: treehugger
Change-Id: I1d7dd32fd7f90a20d61de4701293527f83dc4ec4
2021-10-01 09:25:36 -07:00
Colin Cross
badcb38d3c Convert bionic dlext test zips to Android.bp
Use cc_genrules to create the dlext test zips needed by the bionic
tests.  The genrules aren't visible to Make, and so don't work with
the `required` property.  Move all of the dependencies to `data_bins`,
`data_libs` or `data` for helper binaries, shared libraries or
genrule zip files respectively.  The `data*` properties copy the
files into the same directory as a test, respecting the
`bionic-loader-test-libs` relative path specified by each, but
does not put each helper binary in its own subdirectory, so update
the paths in each of the tests.

Bug: 200872604
Test: atest CtsBionicTestCases
Test: atest bionic-unit-tests
Test: cts-tradefed run commandAndExit cts -m CtsBionicTestCases
Test: adb push $OUT/data/nativetest/bionic-unit-tests /data/nativetest/ && adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests
Change-Id: Ic4257cb4104ff558326df2363730acd20464b051
2021-09-30 14:04:27 -07:00
Treehugger Robot
0f202b1bfc Merge "Treat static binaries "the same" for the profiling signals." am: 5b4913a599 am: cb38a389dd am: 7a07c96338
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1840754

Change-Id: I6b3b8e44b9df7c70bcb2f1c5a5d6d460e47c356e
2021-09-30 17:23:52 +00:00
Treehugger Robot
7a07c96338 Merge "Treat static binaries "the same" for the profiling signals." am: 5b4913a599 am: cb38a389dd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1840754

Change-Id: I88fd2d8e22de3ac8226c04cf9ba88464c089d879
2021-09-30 17:11:50 +00:00
Treehugger Robot
cb38a389dd Merge "Treat static binaries "the same" for the profiling signals." am: 5b4913a599
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1840754

Change-Id: I6dece10d59d8560c8049f21d47195f0cdbfa5cbf
2021-09-30 16:57:36 +00:00
Treehugger Robot
5b4913a599 Merge "Treat static binaries "the same" for the profiling signals." 2021-09-30 16:45:49 +00:00
Lalit Maganti
f6a1b8e038 Merge "bionic: fix broken end atrace events" am: e8cc2c32ac am: 276e49cb89 am: 2b316e99a2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1810418

Change-Id: I38c2b1298742e5570d0de96a8cbfdc238eaae42c
2021-09-30 11:26:48 +00:00
Lalit Maganti
2b316e99a2 Merge "bionic: fix broken end atrace events" am: e8cc2c32ac am: 276e49cb89
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1810418

Change-Id: I1b68c7f9b26a4dce2210bf892cebdf9b3d196d80
2021-09-30 11:13:22 +00:00
Lalit Maganti
276e49cb89 Merge "bionic: fix broken end atrace events" am: e8cc2c32ac
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1810418

Change-Id: I7ed065c8ab5f4a51e92221560f2fb887d08c3bb6
2021-09-30 10:59:40 +00:00
Lalit Maganti
e8cc2c32ac Merge "bionic: fix broken end atrace events" 2021-09-30 10:45:38 +00:00
Elliott Hughes
377193745d Treat static binaries "the same" for the profiling signals.
Strictly this still isn't quite the same, because they won't actually be
profiled, but at least they won't *crash* now if they're sent a
profiling signal.

Bug: http://b/201497662
Test: treehugger
Change-Id: I0728492eed77584cd850d28897056996387e6671
2021-09-29 17:10:02 -07:00
Lalit Maganti
2aa3f7cb26 bionic: fix broken end atrace events
When calling write on an FD for trace_marker, it is expected that the
pointer passed will be paged into memory. If this isn't the case, the
kernel will ignore the string passed and instead write "<faulted>" to
the ring buffer.

For end events, we were passing a constant string which resides in
the rodata section of the ELF file. If this section is paged out, we
end up not closing atrace stacks correctly leading to very broken traces.

For even more context, see the associated bug.

Fix this issue by reading the constant string to the stack first
which should mean the string is always paged in.

Bug: 197620214
Change-Id: I6a444ac6fe83a6a9fb696c5621e392eca7e9437a
2021-09-29 18:33:27 +01:00
Evgenii Stepanov
da1c8daabe Merge "Add CtsBionicTestCases to hwasan-postsubmit." am: c6b6f5e7ef am: 2ebb8f465f am: 622d4df0ad
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1836409

Change-Id: Ifb226e7d791ac9afab27a5d65d124aa3e3e91bf6
2021-09-24 23:05:21 +00:00
Evgenii Stepanov
d638363012 Merge "Random HWASan cleanups." am: b34d313d17 am: 2014e706a6 am: 61e28ccec2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1830382

Change-Id: I7c1b2d314de2298e36ee6e6966ae1e440b4f3cea
2021-09-24 23:05:16 +00:00
Evgenii Stepanov
622d4df0ad Merge "Add CtsBionicTestCases to hwasan-postsubmit." am: c6b6f5e7ef am: 2ebb8f465f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1836409

Change-Id: If9b1de78be8d2fad119ff8f4c77074dc174def2d
2021-09-24 22:50:11 +00:00
Evgenii Stepanov
61e28ccec2 Merge "Random HWASan cleanups." am: b34d313d17 am: 2014e706a6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1830382

Change-Id: I19706d5e77dc50d36edaa66a3afebd29786392cb
2021-09-24 22:49:41 +00:00
Evgenii Stepanov
2ebb8f465f Merge "Add CtsBionicTestCases to hwasan-postsubmit." am: c6b6f5e7ef
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1836409

Change-Id: I60abf556feb11f474620d33e4a57e48171a95801
2021-09-24 22:33:02 +00:00
Evgenii Stepanov
2014e706a6 Merge "Random HWASan cleanups." am: b34d313d17
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1830382

Change-Id: If9ace9c23ccaff70f9022ab090886f28ebc9a74c
2021-09-24 22:32:57 +00:00
Evgenii Stepanov
c6b6f5e7ef Merge "Add CtsBionicTestCases to hwasan-postsubmit." 2021-09-24 22:21:26 +00:00
Evgenii Stepanov
b34d313d17 Merge "Random HWASan cleanups." 2021-09-24 22:15:43 +00:00
Evgenii Stepanov
1d7077a1ce Add CtsBionicTestCases to hwasan-postsubmit.
Bug: 193568145
Test: none

Change-Id: I8aa9b9d299973600e7488aeae93b92f59776d5e5
2021-09-24 13:20:43 -07:00
Evgenii Stepanov
4edbcee2c6 Random HWASan cleanups.
Makes CtsBionicTestCases pass under HWASan.

Bug: 193568145
Test: CtsBionicTestCases
Change-Id: I38ee8a8508827c0ffee61ce33bb8c6a3f40388c9
2021-09-24 11:21:38 -07:00
Christopher Ferris
885025eec9 Merge "Update allocator alignment tests." am: 258642b7d7 am: 3e3ada4ff3 am: ae7745f309
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1832879

Change-Id: I685d691ec2f60d15b73cf14b8e2a460b2009eb2f
2021-09-22 01:31:47 +00:00
Christopher Ferris
ae7745f309 Merge "Update allocator alignment tests." am: 258642b7d7 am: 3e3ada4ff3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1832879

Change-Id: Ideb189faf22f38bbe0be7721caaed3360ef00561
2021-09-22 01:16:01 +00:00