Commit graph

34449 commits

Author SHA1 Message Date
Josh Gao
d03ad35fbd Merge "fdtrack: emit the most common stack in the abort message." am: 6ad715689d am: a78103a214
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1631062

Change-Id: I019a46bc66ebe0b0a5b1305d94c7db129abfe622
2021-03-16 02:48:45 +00:00
Josh Gao
a78103a214 Merge "fdtrack: emit the most common stack in the abort message." am: 6ad715689d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1631062

Change-Id: If17f14cbc0f278bcb1b421a2e5a394c5be1dce7e
2021-03-16 02:08:59 +00:00
Josh Gao
6ad715689d Merge "fdtrack: emit the most common stack in the abort message." 2021-03-16 01:35:43 +00:00
Mitch Phillips
2c99244d2a Merge "Mark MTE elf notes as sdk_version to allow SDK linkage." am: 87f4a2e50b am: 7f2c007dce
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1617640

Change-Id: I8efa8782d0dd0152f2ccdd88d3a901f640e5edae
2021-03-15 22:57:51 +00:00
Josh Gao
1cb3681335 fdtrack: emit the most common stack in the abort message.
Bug: http://b/181875562
Test: manual
Change-Id: I2826b148d55788e932fa04dcef33c78fad8be227
2021-03-15 15:55:06 -07:00
Mitch Phillips
7f2c007dce Merge "Mark MTE elf notes as sdk_version to allow SDK linkage." am: 87f4a2e50b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1617640

Change-Id: Ia68282fd93a9610b4469e0f14fb6968dc9d0eb41
2021-03-15 22:16:09 +00:00
Mitch Phillips
87f4a2e50b Merge "Mark MTE elf notes as sdk_version to allow SDK linkage." 2021-03-15 21:33:07 +00:00
Liz Kammer
fd67934d6e Merge "Merge crt cc_objects" am: 821e375664 am: d7676cc86c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1624701

Change-Id: I4733dddc2db6168d1eaf6a3207a39d162ad54e5f
2021-03-15 20:01:38 +00:00
Liz Kammer
d7676cc86c Merge "Merge crt cc_objects" am: 821e375664
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1624701

Change-Id: Ib52e89b33a574528ca258ccb5bcee82abdebfd8e
2021-03-15 19:24:43 +00:00
Liz Kammer
821e375664 Merge "Merge crt cc_objects" 2021-03-15 19:02:32 +00:00
Treehugger Robot
3caa73af1e Merge "Add userfaultfd syscall in SECCOMP allowlist" am: 051b454ff1 am: 117f738b35
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1629099

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b5543eecc277dd96837b033f538afa18a91e419
2021-03-11 20:28:59 +00:00
Treehugger Robot
744786a856 Merge "Improve fchmod() coverage." am: 4b6a29dbe9 am: a49b30f03c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1623242

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I95a5a96679501ce64e49fa6bd7696276836ad221
2021-03-11 20:28:55 +00:00
Treehugger Robot
117f738b35 Merge "Add userfaultfd syscall in SECCOMP allowlist" am: 051b454ff1
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1629099

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icc62660f3a668bd9dabd201ac0fd72e6cdc14fe6
2021-03-11 20:07:00 +00:00
Treehugger Robot
051b454ff1 Merge "Add userfaultfd syscall in SECCOMP allowlist" 2021-03-11 19:54:47 +00:00
Treehugger Robot
a49b30f03c Merge "Improve fchmod() coverage." am: 4b6a29dbe9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1623242

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I854427717897936020b97c42d40fbb76b0b50689
2021-03-11 19:49:37 +00:00
Lokesh Gidra
7839c173f1 Add userfaultfd syscall in SECCOMP allowlist
Enable userfaultfd syscall to be used by ART-GC.

Bug: 160737021
Test: manually tested by invoking userfaultfd syscall in ART
Change-Id: I9f98402a96bb8363a1e5fa49dbadbb37dc70d561
2021-03-11 19:30:08 +00:00
Treehugger Robot
4b6a29dbe9 Merge "Improve fchmod() coverage." 2021-03-11 19:19:17 +00:00
Peter Collingbourne
a2e82dce79 Merge "Teach debuggerd to pass the secondary ring buffer to __scudo_get_error_info()." am: 03e961e392 am: e576a13d04
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1587832

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I29af62cca1e76e4b1bf444d246cf66ef89570694
2021-03-11 02:41:32 +00:00
Treehugger Robot
63c9ebaa1d Merge "Add debuggerd_test to bionic test mapping." am: 6d8515ffd0 am: cdf1d1e12b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1626679

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia309af2db6a8c4bb5005828a708f2540761d5082
2021-03-11 02:41:06 +00:00
Peter Collingbourne
e576a13d04 Merge "Teach debuggerd to pass the secondary ring buffer to __scudo_get_error_info()." am: 03e961e392
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1587832

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2f4d2b0ce76f79899d390816c38e897e7f1f01bc
2021-03-11 01:58:21 +00:00
Treehugger Robot
cdf1d1e12b Merge "Add debuggerd_test to bionic test mapping." am: 6d8515ffd0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1626679

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7a950949d0c25e217776206acd9e5fa1db79c18a
2021-03-11 01:57:53 +00:00
Peter Collingbourne
03e961e392 Merge "Teach debuggerd to pass the secondary ring buffer to __scudo_get_error_info()." 2021-03-11 01:15:49 +00:00
Treehugger Robot
6d8515ffd0 Merge "Add debuggerd_test to bionic test mapping." 2021-03-11 00:18:04 +00:00
Mitch Phillips
a78ace95f4 Add debuggerd_test to bionic test mapping.
Lots of plumbing between bionic and debuggerd, make sure it works.

Bug: N/A
Change-Id: Ida4f3114f76ca88f3768fffa9fdc7deee74afda8
Test: N/A
2021-03-10 21:01:55 +00:00
Liz Kammer
e718dd720d Merge crt cc_objects
Currently there is a pattern of `crtbegin_${type}1` and `crtbegin_${type}` modules, where the former
has sources and the latter depends on the former. The two modules for a type share many properties,
rather than duplicating these, we merge modules, such that each type only has a `crtbegin_${type}`
module.

Test: Treehugger
Change-Id: I7803ea0e97d660f620c334b6bfdfac22cb6e36d7
2021-03-10 19:32:17 +00:00
Elliott Hughes
82b0c96afe Merge "Improve system() coverage." am: ac3fcc6b8c am: 95dcc9f76b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1623240

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic2a9c736ffba4aff902ea5fd2f2980042680e3f3
2021-03-09 17:01:08 +00:00
Elliott Hughes
95dcc9f76b Merge "Improve system() coverage." am: ac3fcc6b8c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1623240

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie9de69702831193c034462f1c936864c8f8a37c8
2021-03-09 16:40:21 +00:00
Elliott Hughes
ac3fcc6b8c Merge "Improve system() coverage." 2021-03-09 16:15:37 +00:00
Nicolas Geoffray
08feab09db Merge "Add min_sdk_version for ART module." am: ea8b224d7f am: 5447751d1d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1614487

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7cbaf19626eea40720a952d4ab425bdff48e28db
2021-03-09 10:26:56 +00:00
Nicolas Geoffray
5447751d1d Merge "Add min_sdk_version for ART module." am: ea8b224d7f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1614487

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2a6b8885f107803bf14fe72acd0612724d5dc905
2021-03-09 09:45:54 +00:00
Nicolas Geoffray
ea8b224d7f Merge "Add min_sdk_version for ART module." 2021-03-09 08:47:47 +00:00
Peter Collingbourne
76b5eb6ae7 Merge "Add some slack at the end of large allocations when target SDK level < S." am: 6ba27e04df am: 34dcce7014
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1621044

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icdc27749f6e6989d5fd5bdc4ec81fb056e46ecb5
2021-03-09 02:18:53 +00:00
Elliott Hughes
e99dedd75f Merge "Improve <sys/xattr.h> coverage." am: 9f46c9e291 am: 59c5c294f9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1623241

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0648c3fbe14c7b72dd1ae8f882615c24726837d3
2021-03-09 02:18:46 +00:00
Peter Collingbourne
34dcce7014 Merge "Add some slack at the end of large allocations when target SDK level < S." am: 6ba27e04df
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1621044

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4c153c044cfa38e432e3a1e7b6eaca6a7cb8e761
2021-03-09 01:42:11 +00:00
Elliott Hughes
59c5c294f9 Merge "Improve <sys/xattr.h> coverage." am: 9f46c9e291
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1623241

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic15fccc85ccdf2f5c06061ad6ca78f1c09115028
2021-03-09 01:37:30 +00:00
Peter Collingbourne
6ba27e04df Merge "Add some slack at the end of large allocations when target SDK level < S." 2021-03-09 01:15:54 +00:00
Elliott Hughes
9f46c9e291 Merge "Improve <sys/xattr.h> coverage." 2021-03-09 01:01:25 +00:00
Elliott Hughes
db6223f46e Improve fchmod() coverage.
Test: treehugger
Change-Id: I8ebccce7ab3c0a77cd84d0830f75e9d68c64bd52
2021-03-08 14:10:46 -08:00
Elliott Hughes
b82f5cfeb2 Improve <sys/xattr.h> coverage.
Also fix a comment copy & paste mistake and some formatting.

Test: treehugger
Change-Id: I0af3ab2eb4f180f86b0ab7d2af260f0f30692fdd
2021-03-08 14:09:43 -08:00
Elliott Hughes
bbbe27ff6e Improve system() coverage.
There's a weird POSIX special case that we implement but don't test.
Found from looking through the coverage data.

Test: treehugger
Change-Id: I74f5f57c4d8062034a3f6e986f9e57091bfc7f7c
2021-03-08 14:07:01 -08:00
Nicolas Geoffray
4647d4839f Add min_sdk_version for ART module.
Bug: 180399951
Test: m
Change-Id: I54eb06ae4a695ae184de4fb72fc0092910836652
2021-03-08 17:29:41 +00:00
Peter Collingbourne
2659d7b6c2 Add some slack at the end of large allocations when target SDK level < S.
This works around buggy applications that read a few bytes past the
end of their allocation, which would otherwise cause a segfault with
the concurrent Scudo change that aligns large allocations to the right.

Because the implementation of
android_set_application_target_sdk_version() lives in the linker,
we need to introduce a hook so that libc is notified when the target
SDK version changes.

Bug: 181344545
Change-Id: Id4be6645b94fad3f64ae48afd16c0154f1de448f
2021-03-05 14:29:17 -08:00
Treehugger Robot
8f0d3b8aae Merge "Remove unused (and empty) file." am: 1ef8d418be am: a080e2f7d4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1615473

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7cd662354508d5dae910fbec0d8ba73fbeda310e
2021-03-04 04:21:21 +00:00
Treehugger Robot
a080e2f7d4 Merge "Remove unused (and empty) file." am: 1ef8d418be
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1615473

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6c5e2d9b6f9cd41b8c11b6f22e349a698c17ff7f
2021-03-04 02:11:48 +00:00
Treehugger Robot
1ef8d418be Merge "Remove unused (and empty) file." 2021-03-04 01:07:24 +00:00
Mitch Phillips
22c90755ed Mark MTE elf notes as sdk_version to allow SDK linkage.
Binaries defined in Makefiles that use the SDK need a variant to link
to. Generate a SDK variant of the ELF note as well. This is necessary to
allow makefile-generated binaries and CTS tests to use heap MTE.

Bug: 156029370
Bug: 181133973

Test: atest CtsBionicTestCases on QEMU+MTE, observe previously-failing
      tests will now succeed.
Change-Id: I0a8243b0920769a196e7596904259e30c4a93105
2021-03-03 15:39:57 -08:00
Elliott Hughes
f443817ab6 Remove unused (and empty) file.
Spotted while looking at our shiny new coverage numbers. Though how the
change that removed the code from this file without removing the file
made it through code review... Clearly I wasn't paying attention that
day!

Test: treehugger
Change-Id: Id61bb48bae60660d2e5ba9b26f00a68e51157c6d
2021-03-03 14:31:35 -08:00
Treehugger Robot
a4832eb590 Merge "Ignore LD_LIBRARY_PATH when determining file type in ldd." am: 2d24fe21ba am: d407d2f329
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1613125

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I85c9d6b73ec251bd7756ed4449548087df4c5e66
2021-03-02 19:48:14 +00:00
Treehugger Robot
d407d2f329 Merge "Ignore LD_LIBRARY_PATH when determining file type in ldd." am: 2d24fe21ba
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1613125

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I869f3a92d2200960339361c80f4cb8c381fb738b
2021-03-02 19:03:46 +00:00
Treehugger Robot
2d24fe21ba Merge "Ignore LD_LIBRARY_PATH when determining file type in ldd." 2021-03-02 18:13:11 +00:00