Commit graph

31465 commits

Author SHA1 Message Date
Josh Gao
5618417bdb Merge "Temporarily disable FdsanTest.vfork." am: 960b8ed0cd
Change-Id: If97454c5cfc142c74fe499f6e82ad86140a6c159
2020-05-13 02:05:43 +00:00
Josh Gao
960b8ed0cd Merge "Temporarily disable FdsanTest.vfork." 2020-05-13 01:48:17 +00:00
Josh Gao
b4cbff351f Temporarily disable FdsanTest.vfork.
Bug: http://b/156400255
Test: none
Change-Id: I48e09e0ea84742933bea88d009f8ff0bffacfdc3
2020-05-12 15:17:02 -07:00
vichang
f4608e6549 Merge "Disable dlfcn#dlopen_system_libicuuc_ tests due to test failures on cuttlefish" am: f76ef36690
Change-Id: I902b13856db872a779110d38415e780cdcef1c69
2020-05-12 12:46:21 +00:00
vichang
f76ef36690 Merge "Disable dlfcn#dlopen_system_libicuuc_ tests due to test failures on cuttlefish" 2020-05-12 12:34:13 +00:00
Victor Chang
01fb8d7120 Disable dlfcn#dlopen_system_libicuuc_ tests due to test failures on cuttlefish
Bug: 156315785
Test: atest CtsBionicTestCases
Change-Id: I6d61a2dcf55ebf67587ccf2653af3aca493b022d
2020-05-12 10:10:32 +00:00
Treehugger Robot
c027fc89aa Merge changes If42905f3,Id351a993,I8a082fd0 am: e3bc50d44f
Change-Id: Ic509add072ce2bbcb92cf42c1a47b5f2cd68a121
2020-05-12 07:18:25 +00:00
Treehugger Robot
e3bc50d44f Merge changes If42905f3,Id351a993,I8a082fd0
* changes:
  fdtrack: don't do anything while vforked.
  fdsan: don't do anything when vforked.
  Track whether a thread is currently vforked.
2020-05-12 07:04:58 +00:00
vichang
ee913197f3 Merge "Move libicuuc.so into com.android.i18n module." am: 10bad3e882
Change-Id: Id307e7102099ccd66bebff2b29fe6f11287e7594
2020-05-11 11:51:20 +00:00
vichang
10bad3e882 Merge "Move libicuuc.so into com.android.i18n module." 2020-05-11 11:37:06 +00:00
Jiyong Park
4f3d46d020 Merge "Set apex_available property" am: 262ff01d2b
Change-Id: I0e37c1182dd95aa39982274aacbf822f0bb04984
2020-05-10 06:39:47 +00:00
Jiyong Park
262ff01d2b Merge "Set apex_available property" 2020-05-10 06:25:04 +00:00
Jiyong Park
4ede160cb1 Set apex_available property
The marked library(ies) were available to the APEXes via the
hand-written whitelist in build/soong/apex/apex.go. Trying to remove the
whitelist by adding apex_available property to the Android.bp of the
libraries.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 150999716
Test: m
Merged-In: If64eff62b9e93af95089e5010c30eb586673b92e
(cherry picked from commit 693a7214d6)
Change-Id: If64eff62b9e93af95089e5010c30eb586673b92e
2020-05-10 06:24:42 +00:00
Treehugger Robot
5ad35478f5 Merge "Fix typo in if statement." am: c2a67121c7
Change-Id: I8bb29035d93ed4f7adbbb306b484b6d70101df91
2020-05-08 18:46:56 +00:00
Treehugger Robot
c2a67121c7 Merge "Fix typo in if statement." 2020-05-08 18:34:42 +00:00
Peter Collingbourne
947125edf1 Fix typo in if statement.
It turns out that we weren't actually enabling stack traces due
to a typo in one of the if statements. Fix it.

Bug: 135772972
Change-Id: Ic19352280f65acd621b9d88c361c55680b3327f0
2020-05-08 10:05:39 -07:00
Josh Gao
4129113128 fdtrack: don't do anything while vforked.
Bug: http://b/153926671
Test: 32/64-bit bionic-unit-tests on blueline, x86_64 emulator
Change-Id: If42905f3d6a76ed70a45e5b9edd029ffd7789045
2020-05-07 20:18:45 -07:00
Josh Gao
65fb2a7f03 fdsan: don't do anything when vforked.
Bug: http://b/153926671
Test: 32/64-bit bionic-unit-tests on blueline, x86_64 emulator
Change-Id: Id351a993e396774b68239edfef83d9e81205290b
2020-05-07 20:18:40 -07:00
Josh Gao
2303283740 Track whether a thread is currently vforked.
Our various fd debugging facilities get extremely confused by a vforked
process closing file descriptors in preparation to exec: fdsan can
abort, and fdtrack will delete backtraces for any file descriptors that
get closed. Keep track of whether we're in a vforked child in order to
be able to detect this.

Bug: http://b/153926671
Test: 32/64-bit bionic-unit-tests on blueline, x86_64 emulator
Change-Id: I8a082fd06bfdfef0e2a88dbce350b6f667f7df9f
2020-05-07 19:44:27 -07:00
Treehugger Robot
1ded9ae248 Merge "Add goldfish-opengl to use bionic_libc_platform_headers" am: 073c3dc1eb
Change-Id: Iafbd9b8bc27063da5259029a2d739d4833a79e00
2020-05-08 01:14:21 +00:00
Treehugger Robot
073c3dc1eb Merge "Add goldfish-opengl to use bionic_libc_platform_headers" 2020-05-08 00:53:07 +00:00
Victor Chang
f248d2de84 Move libicuuc.so into com.android.i18n module.
Change the location set in the linker

Bug: 130219528
Bug: 138994281
Test: atest CtsBionicTestCases
Test: atest CtsJniTestCases
Change-Id: I215a8e023ccc4d5ffdd7df884c809f8d12050c8f
2020-05-07 23:15:01 +00:00
Roman Kiryanov
067f51824b Add goldfish-opengl to use bionic_libc_platform_headers
We need __get_tls and TLS_SLOT_OPENGL for our
OpenGL implementation. We currently use .mk files
and this restriction does not apply, since we are
migrating to .bp we need to address restriction.

Bug: 154151802
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I007664d919204cd4f6a623f9695a56e94bab7ae6
2020-05-07 15:06:55 -07:00
Peter Collingbourne
150d47edfb Merge "Introduce a new heap tagging level, M_HEAP_TAGGING_LEVEL_SYNC." am: 144a6ab341
Change-Id: Ie039b08a8edc06163508423a2d2771d9f8300e96
2020-05-07 18:07:28 +00:00
Peter Collingbourne
144a6ab341 Merge "Introduce a new heap tagging level, M_HEAP_TAGGING_LEVEL_SYNC." 2020-05-07 17:51:51 +00:00
Martin Stjernholm
5856ae0e11 Merge "Export libc_headers from libdl_static for libraries that wrap it without bringing in libc." am: e413ce902d
Change-Id: I1750e958a7480dd40cd01df84466e511af4e658e
2020-05-07 09:37:15 +00:00
Martin Stjernholm
e413ce902d Merge "Export libc_headers from libdl_static for libraries that wrap it without bringing in libc." 2020-05-07 09:19:48 +00:00
Martin Stjernholm
3ddcc1e987 Export libc_headers from libdl_static for libraries that wrap it
without bringing in libc.

Required by the native bridge libdl wrapper.

Test: m (on cf_x86_phone)
Bug: 153590472
Change-Id: Ib9b1b741aaf5b09b24d7dce09a49c2fa7737209f
2020-05-06 23:47:40 +01:00
Martin Stjernholm
831eea21ba Merge "Make Bionic and kernel system includes explicit in the blueprints." am: 98581070c2
Change-Id: I36bc560c5cf0764c431aec6adf7af14b7fb5375a
2020-05-06 10:51:31 +00:00
Martin Stjernholm
98581070c2 Merge "Make Bionic and kernel system includes explicit in the blueprints." 2020-05-06 10:35:39 +00:00
Peter Collingbourne
d3060019de Introduce a new heap tagging level, M_HEAP_TAGGING_LEVEL_SYNC.
The SYNC tagging level enables stack trace collection for allocations and
deallocations, which allows allocation and deallocation stack traces to
appear in tombstones when encountering a tag check fault in synchronous tag
checking mode.

Bug: 135772972
Change-Id: Ibda9f51b29d2c8e2c993fc74425dea7bfa23ab1e
2020-05-05 13:28:16 -07:00
Martin Stjernholm
82d84bcd7e Make Bionic and kernel system includes explicit in the blueprints.
Before this Soong added hardcoded system include paths to
bionic/libc/{include,kernel}, which won't work when Bionic libs are
packaged up as prebuilts in an SDK module snapshot.

Test: Build and boot
Test: Check in out/verbose.log.gz that a C file doesn't get any bionic
  include path for linux_glibc.
Bug: 153590472
Change-Id: I13c8eb3dd7150d6e0fee001b290b53fcebebcfea
2020-05-05 13:34:14 +01:00
Jooyung Han
64b5378f38 Merge "Set min_sdk_version for mainline dependencies" am: 95c00dcf0b
Change-Id: I1834703097bbf92de92d3107e3c608f0f5267a02
2020-05-05 07:00:32 +00:00
Jooyung Han
95c00dcf0b Merge "Set min_sdk_version for mainline dependencies" 2020-05-05 06:43:24 +00:00
Jooyung Han
15c32a8e1a Set min_sdk_version for mainline dependencies
To enforce all modules included in mainline modules(apex/apk),
modules should set min_sdk_version which is the minimum sdk versions
that compiled artifacts run against.

Setting this doesn't change build output.

Bug: 145796956
Test: m
Change-Id: Ibbe3771592677d729c81343fe00859c0afa81918
2020-05-05 10:45:46 +09:00
Treehugger Robot
2c81af674a Merge "Add API constant for S." am: 49f7f10f62
Change-Id: I3ac5da53252b9a03172f487d1c759335ecf26039
2020-05-05 00:44:17 +00:00
Treehugger Robot
49f7f10f62 Merge "Add API constant for S." 2020-05-05 00:35:17 +00:00
Quentin Perret
4420d4c019 Merge "Fix argument order in api level test" am: 04e4d35cd7
Change-Id: I65cfe490b70d66ee0966730be48613f1e283509c
2020-05-04 10:17:28 +00:00
Quentin Perret
04e4d35cd7 Merge "Fix argument order in api level test" 2020-05-04 09:59:16 +00:00
Alistair Delva
bed98c0deb Fix argument order in api level test
Looks like the arguments were unintentionally swapped?

Bug: 155526611
Change-Id: I39d49f94387cfd337c89becb5eb6f85ca638bef1
Signed-off-by: Alistair Delva <adelva@google.com>
2020-05-03 20:10:51 -07:00
Evgenii Stepanov
e2904c284a Merge "[libc] Zero and pattern initialization of heap memory." am: f9d72d45d8
Change-Id: If964d64650005ecbd7c5aaf2e90be2eeecfc1687
2020-05-02 00:09:48 +00:00
Evgenii Stepanov
f9d72d45d8 Merge "[libc] Zero and pattern initialization of heap memory." 2020-05-01 23:58:48 +00:00
Evgenii Stepanov
5a73e03305 [libc] Zero and pattern initialization of heap memory.
Bug: 155227507
Test: scudo_unit_tests

Change-Id: I85075acfd85172f6cc7e48f79eeb577e293d0d30
2020-05-01 14:06:54 -07:00
Treehugger Robot
bf7ab25e98 Merge "Adapt to clang-r383902" am: ac47b2b56e
Change-Id: I0e10483250c58955c4ed33aa8f9f0497e9092380
2020-05-01 18:20:31 +00:00
Treehugger Robot
ac47b2b56e Merge "Adapt to clang-r383902" 2020-05-01 18:11:02 +00:00
Stephen Hines
25b8af496c Adapt to clang-r383902
This change adapts versioner to llvm::StringRef losing its implicit
conversion to std::string().

Test: ./build-prebuilts.sh
Change-Id: Ie1b290cf12e7044a92545470ce4f968cc55d90c9
2020-05-01 03:44:40 -07:00
Yabin Cui
e5bb3c8fbd Merge "Fix foritfy test for clang update." am: e75527347a
Change-Id: I345742089c8f4c91af0aded3798c1b18fbc219cc
2020-05-01 05:42:49 +00:00
Yabin Cui
e75527347a Merge "Fix foritfy test for clang update." 2020-05-01 05:28:39 +00:00
Treehugger Robot
ed843c3942 Merge "fdtrack: fix accept test, add test for accept4." am: 9e42d38e21
Change-Id: I746c09215a6491f8b9d87c15f8c949865e026724
2020-05-01 00:51:15 +00:00
Treehugger Robot
9e42d38e21 Merge "fdtrack: fix accept test, add test for accept4." 2020-05-01 00:25:47 +00:00