platform_build_soong/cc
Mitch Phillips 597605603a [HWASan] Enable zero-initialization.
Previously, we use to fill memory with 0xbe bytes. This caused a lot of
problems that necessitated disablement. For example, 0xbe-filled mutexes
are apparently locked, and there were a few instances of
uninitialized-mutex use.

Given that zero-fill is now the default behaviour, enable zero-init in
HWASan as well.

For now, only fill the first page. It would be preferable to fill the
whole allocation, but I don't want to spin for too many cycles filling
huge secondary pages. In future, we might change the behaviour to have
an explicit "zero initialize" option that completely fills the primarily
allocations, and knows it's unnecessary for the secondary.

Bug: 226078464
Test: Boot w/ HWASan (done by presubmit robot)

Change-Id: I7de3a7f9fa2fdeb5116e5bf6586babe4d06fcb91
2022-03-22 18:38:34 +00:00
..
config Use single module for clang runtime libraries 2022-03-07 14:56:32 -08:00
libbuildversion Add vendor_available: true to libbuildverison 2021-12-06 22:08:40 -08:00
ndk_api_coverage_parser Apply pylint to build/soong/cc/ndk_api_coverage_parser 2021-08-18 17:17:47 +00:00
ndkstubgen
symbolfile Revert "Revert "Apply pylint to cc/symbolfile"" 2021-08-19 19:31:54 +00:00
afdo.go Turn on Unique Internal Names for AFDO 2022-02-10 08:09:38 +00:00
afdo_test.go Add tests for afdo.go 2022-01-26 17:46:33 +08:00
Android.bp Add tests for afdo.go 2022-01-26 17:46:33 +08:00
androidmk.go Fix snapshot symlinks 2022-02-24 10:29:18 +09:00
api_level.go
binary.go Support tailoring clang --target flag based on min sdk version. 2022-03-18 01:16:52 +00:00
binary_sdk_member.go Refactor SdkMemberType.AddDependencies() 2021-08-31 17:07:07 +01:00
binary_test.go Enable cc_binary in mixed build. 2022-02-17 11:15:59 -08:00
bp2build.go Support tailoring clang --target flag based on min sdk version. 2022-03-18 01:16:52 +00:00
builder.go Add tidy_timeout_srcs property 2022-02-17 14:48:40 -08:00
cc.go Use single module for clang runtime libraries 2022-03-07 14:56:32 -08:00
cc_test.go Use single module for clang runtime libraries 2022-03-07 14:56:32 -08:00
ccdeps.go Dump deps for native and java to json files. 2021-11-05 12:06:15 +08:00
cflag_artifacts.go
check.go
cmakelists.go [cc] Switch to -fsanitize-ignorelist 2021-08-27 15:12:56 -07:00
compdb.go
compiler.go Merge "Add an __ANDROID_RAMDISK__ preprocessor define." 2022-02-18 23:29:27 +00:00
compiler_test.go Conditionally apply rustdoc flags to third party crates 2021-08-02 11:50:34 -07:00
coverage.go Memory mapped coverage (take 2) 2022-03-04 14:07:53 -08:00
fuzz.go Use one mutator for all bp2build conversion. 2021-12-14 09:37:45 -05:00
gen.go remove support for *.mc files 2021-10-26 11:38:37 -07:00
gen_test.go
genrule.go Add environment variables to cc_genrule commands 2021-09-27 15:56:23 -07:00
genrule_test.go Add environment variables to cc_genrule commands 2021-09-27 15:56:23 -07:00
image.go Separate snapshot definition 2021-07-19 11:42:32 +09:00
image_sdk_traits.go Add ramdisk image sdk trait to cc_library_headers 2021-09-25 10:17:31 +01:00
installer.go Allow for the installation of binaries in xbin 2021-10-19 19:44:13 +00:00
kernel_headers.go
library.go Support tailoring clang --target flag based on min sdk version. 2022-03-18 01:16:52 +00:00
library_headers.go Support tailoring clang --target flag based on min sdk version. 2022-03-18 01:16:52 +00:00
library_headers_test.go Fix prebuilt header files to produce proper AndroidMk entries. 2021-12-02 10:54:45 +00:00
library_sdk_member.go Add ramdisk image sdk trait to cc_library_headers 2021-09-25 10:17:31 +01:00
library_test.go Fix transitive whole_static_libs on prebuilt static libraries 2022-02-11 13:51:41 -08:00
linkable.go Fix transitive whole_static_libs on prebuilt static libraries 2022-02-11 13:51:41 -08:00
linker.go Delete toolchain_library 2022-01-14 12:52:59 -05:00
llndk_library.go
lto.go Merge "Revert "[cc_fuzz] Revert 'disable LTO' patches."" 2022-03-02 05:08:27 +00:00
makevars.go Merge "Export sanitizer paths to Make" 2022-02-18 03:39:26 +00:00
native_bridge_sdk_trait.go Add support for native bridge trait 2021-09-23 11:37:57 +01:00
ndk_abi.go
ndk_headers.go
ndk_library.go Add tidy_timeout_srcs property 2022-02-17 14:48:40 -08:00
ndk_prebuilt.go
ndk_sysroot.go object files depend only on NDK headers 2021-12-05 18:10:13 -08:00
object.go Support tailoring clang --target flag based on min sdk version. 2022-03-18 01:16:52 +00:00
object_test.go crt objects for APEX and vendor variants have correct target API levels 2021-08-25 16:26:47 +09:00
OWNERS [cc] Add per-file OWNERS for cc/coverage.go 2022-01-27 10:49:13 -08:00
pgo.go Sampling PGO deprecation 2022-01-26 02:34:34 +08:00
prebuilt.go Mark implementation variant of prebuilts with stubs as not installable 2022-02-23 09:19:18 +00:00
prebuilt_test.go Mark implementation variant of prebuilts with stubs as not installable 2022-02-23 09:19:18 +00:00
proto.go convert java proto libraries with bp2build 2022-02-15 21:04:59 +00:00
proto_test.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
pylintrc
rs.go remove target from every intermediate depFile 2021-07-30 09:47:07 -07:00
sabi.go Remove Fuchsia support from Soong 2021-07-21 20:37:46 -07:00
sanitize.go [HWASan] Enable zero-initialization. 2022-03-22 18:38:34 +00:00
sanitize_test.go Use single module for clang runtime libraries 2022-03-07 14:56:32 -08:00
sdk.go Separate snapshot definition 2021-07-19 11:42:32 +09:00
sdk_test.go
snapshot_prebuilt.go Fix snapshot symlinks 2022-02-24 10:29:18 +09:00
snapshot_utils.go Support for rust recovery snapshot. 2021-11-09 08:40:50 -08:00
stl.go Remove Fuchsia support from Soong 2021-07-21 20:37:46 -07:00
strip.go
stub_library.go Export SOONG_CC_API_XML to Make outside androidmk 2021-09-30 13:11:48 -07:00
sysprop.go
test.go Use one mutator for all bp2build conversion. 2021-12-14 09:37:45 -05:00
test_data_test.go Do not modules in files called "Blueprints". 2021-09-02 11:46:24 +02:00
testing.go Use single module for clang runtime libraries 2022-03-07 14:56:32 -08:00
tidy.go Use only single dash for tidy flags 2022-02-04 20:34:27 -08:00
util.go Generate tidy-* rules unless tidy is disabled 2022-01-12 16:48:40 -08:00
vendor_public_library.go
vendor_public_library_test.go
vendor_snapshot.go Add InstallInRoot property to snapshot binary json file. 2022-03-07 14:49:46 -08:00
vendor_snapshot_test.go Fix snapshot symlinks 2022-02-24 10:29:18 +09:00
vndk.go Use single module for clang runtime libraries 2022-03-07 14:56:32 -08:00
vndk_prebuilt.go rust: Emit toc files for cdylibs 2021-11-03 15:34:50 -04:00