summaryrefslogtreecommitdiff
path: root/Android.bp
AgeCommit message (Collapse)Author
2020-12-04[GWP-ASan] Remove unnecessary test isolation.Mitch Phillips
With Kostya's new fix in aosp/1518898, we no longer need to run the gtests in isolation to fix the late-init sequence. Bug: N/A Test: atest gwp_asan_unittest --rerun-until-failure 100 Test: Summary Test: ------- Test: RERUN_UNTIL_FAILURE 100 Test: arm64-v8a gwp_asan_unittest: Passed: 53, Failed: 0, Ignored: 0, Test: Assumption Failed: 0 Change-Id: Ib116024f7ec8a5d739ce64328746c2d27d520357
2020-11-26Merge "Add "product_available" to product available modules"Treehugger Robot
2020-11-19[GWP-ASan] [Android-Specific] Integrate upstream build changes.Mitch Phillips
<eom> Bug: N/A Test: cd external/gwp_asan && atest Change-Id: I1677fa81e64da1a7926c635057f6f5e7f0ad1439
2020-11-11Add "product_available" to product available modulesJustin Yun
"vendor_available" modules were available to product modules. However, not all "vendor_available" modules are required to be available to product modules. Some modules want to be available only to product modules but not vendor modules. To cover the requirement, we separate "product_available" from "vendor_available". "vendor_available" will not provide product available module. Bug: 150902910 Test: build Change-Id: If3e6fff2b5809bcc3d61755b1c7ed197756de623
2020-10-29Merge "Make vendor_ramdisk_available."Yifan Hong
2020-10-21Make vendor_ramdisk_available.Yifan Hong
Test: pass Bug: 156098440 Change-Id: I2b0dfc0253f822c70bf16388bb34f0fe13142996
2020-10-19Rename ART release APEX to com.android.art.Martin Stjernholm
Test: See https://r.android.com/1457217 Bug: 169639321 Change-Id: I6d67402433cab5ac77f2bf05154e683f050c1a36 Merged-In: I6d67402433cab5ac77f2bf05154e683f050c1a36
2020-09-24Update for libunwindstack changes.Christopher Ferris
Also, explicitly change to using the libunwindstack_no_dex static library. Using the previous version worked by luck, since it didn't include dex file support. Test: Build and unit tests pass. Change-Id: Ib2422a5ce23c0aacb1de19d9a400d516fd84ca77
2020-05-12Add libbase library dependency for gwp_asan_unittestDavid Srbecky
This dependency is needed by libunwindstack, and was previously implicitly provided by the isolated gtest library. (it is not any more, which matches the vanilla gtests library) Test: m checkbuild Change-Id: I1759a4321d7ea0f424504eac84ac9a5462894898
2020-05-01gwp_asan_headers is marked as available to platformJiyong Park
The header lib is depended on by many of the bionic libraries which are part of the platform. With b/153073816, we will be checking the availability to the platform, i.e. platform-available module depending on platform-unavailable module causes a build error. Prepare for the change by correctly marking that this interface lib is available to the platform. Also, this change narrows down the APEXes where this header lib is available for. Instead of allowing it to be included in any APEX, the list of APEXes that are currently using this is specified. Bug: 153073816 Test: m Merged-In: Ie329792936599072aaf2bc66a51b64f064baa229 (cherry picked from commit 50332c5d6f14f080bcba05cc580776aa710a6851) Change-Id: Ie329792936599072aaf2bc66a51b64f064baa229
2020-04-07gwp_asan_headers is marked as available to platformJiyong Park
The header lib is depended on by gwp_asan which is available to platform. With b/153073816 we will be checking the availability to the platform, i.e. platform-available module depending on platform-unavailable module causes a build error. Prepare for the change by correctly marking that gwp_asan_headers is available to the platform. Bug: 153073816 Test: m Change-Id: I7cee3e2d21755ecbb08dcba8f365428a3c87c659
2020-03-31[GWP-ASan] Enable backtrace/enable_disable/iterate tests.Mitch Phillips
Enable the enable_disable & iterate tests on Android. These work out of the box. Also enable the backtrace test. This requires some extra interfacing with libunwindstack, but that's all wrapped up now. Bug: 152414185 Test: SANITIZE_TARGET=hwaddress atest gwp_asan_unittest Change-Id: Ie02f8fdcb28b4324f07517874b45996e0b59c8df
2020-03-24[GWP-ASan] Fix unittest build include.Mitch Phillips
GWP-ASan unittests failed to build on arm64 because of a missing dependency on liblog. Looks like something in the transient dependency from libasync_safe -> liblog is header only now, and so we don't get defintions of some libraries. Fix up the build by including this library. Bug: 152354649 Test: atest gwp_asan_unittest Change-Id: I6a95e1a6e867cfa015567c7171feac86013925f4
2020-02-14[GWP-ASan] Export crash handler to apexes.Mitch Phillips
GWP-ASan's crash handler needs to go to debuggerd. Bug: 135634846 Test: mmma external/gwp_asan Change-Id: Iba1e66830c8a93e705e0783b9a555cbce3036d3a
2020-02-12[GWP-ASan] Isolate GWP-ASan unittests.Mitch Phillips
Use the isolated gtest runner for GWP-ASan - so that the platform IE TLS PRNG doesn't get reused. Bug: 135634846 Test: atest gwp_asan_unittest about 10,000 times. Change-Id: Iddb3640e8f5712edfb79cdc383d42574b9829511
2020-02-10[GWP-ASan] Allow refs to GWP-ASan in apexes (in blueprint)Mitch Phillips
Forked from aosp/1229426. GWP-ASan needs to be visible from certain apexes. Do that. Bug: 135634846 Test: build the apexes Change-Id: I9314b0c572912db221a2ad9567782b68eeb2bd8d
2020-02-07Merge "[GWP-ASan] Merge crash handler -> Android.bp"Treehugger Robot
2020-02-06[GWP-ASan] Merge crash handler -> Android.bpMitch Phillips
Merge updates from upstream into the Android.bp. Bug: 135634846 Test: atest gwp_asan_unittest Change-Id: I40978c86268296d4f5f53b2960b0d63bf6f33e64
2020-02-03[GWP-ASan] Add late-init test (merged from upstream).Mitch Phillips
Adds new test to the Android.bp. Bug: 135634846 Test: atest gwp_asan_unittest Change-Id: Ibf91eedc38686fd2f9ae4fae1ee3d915128eac80
2020-01-28Allow GWP-ASan during ramdisk.Mitch Phillips
Required as libc NDK is now used during ramdisk. Bug: 135634846 Test: make droid # w/ aosp/1168378 Change-Id: Ied92ee1e6ec0826d4bd058f07b74eed29b0c4685
2020-01-24[GWP-ASan] enable/disable and fork support.Evgenii Stepanov
Summary: * Implement enable() and disable() in GWP-ASan. * Setup atfork handler. * Improve test harness sanity and re-enable GWP-ASan in Scudo. Scudo_standalone disables embedded GWP-ASan as necessary around fork(). Standalone GWP-ASan sets the atfork handler in init() if asked to. This requires a working malloc(), therefore GWP-ASan initialization in Scudo is delayed to the post-init callback. Test harness changes are about setting up a single global instance of the GWP-ASan allocator so that pthread_atfork() does not create dangling pointers. Test case shamelessly stolen from D72470. Reviewers: cryptoad, hctim, jfb Subscribers: mgorny, jfb, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D73294 GitOrigin-RevId: 596d06145a2b94fa9549f0e8cadc641586dfab1d Change-Id: I6824d95e50ad79c9a01f8d0ebcdc303416788253
2019-12-10Auto-run GWP-ASan tests.Mitch Phillips
Test: atest --test-mapping external/gwp_asan/TEST_MAPPING Change-Id: I172acfbdee38aff8685662df332998cdea5bbd94
2019-12-09Add GWP-ASan unittests to atest.Mitch Phillips
Adds GWP-ASan's upstream unit tests to cc_test (now atest compatible). Test: atest gwp_asan_unittest Bug: N/A Change-Id: Ie7edcc2093b7bcbdf390ba4507525c14e6d37945
2019-11-15Make GWP-ASan's build libc-compatible.Mitch Phillips
This patch makes GWP-ASan compatible to be statically linked into libc. libc requires: 1. No libc/libc++ dependencies. 2. No crt. 3. No libgcc 4. Native bridge support. Bug: 135634846 Test: mmma external/gwp_asan Change-Id: I0055f5f6322db4eec2bf8908b483f33eba65fced
2019-09-09Disable macOS build.platform-tools-29.0.5ndk-sysroot-r21Elliott Hughes
"GWP-ASan is not supported on this platform." Test: treehugger Change-Id: If3f01896de91c2ed780228dc7364c93bea6f65e7
2019-08-27Update Android.bp to point to fuzz target.Mitch Phillips
Fuzz target was changed directory in upstream LLVM. The new AOSP mirror has the file at //external/gwp_asan/tools/stack_trace_compressor_fuzzer.cpp. Change-Id: Id10115dfb33314f13a2c1027674581c847065841
2019-08-26Add GWP-ASan build file.Mitch Phillips
Adds the Android.bp build file for the GWP-ASan library and fuzz target. Test: m external/gwp_asan Bug: 135634846 Change-Id: I65aaf67c1014c7a03d534ff30fcde8d60ce4ea0d