From d98ccb44f26235110389b982e83a00afcf7edfd2 Mon Sep 17 00:00:00 2001 From: Evgenii Stepanov Date: Thu, 2 May 2019 11:37:56 -0700 Subject: [PATCH] Disable hwasan memory stats. Disable a debugging feature in hwasan that seems to be causing flaky selinux denials in the boot test: 05-02 12:11:11.360 1663 1663 I auditd : type=1400 audit(0.0:8): avc: denied { read } for comm="iptables-wrappe" path="/proc/1015/statm" dev="proc" ino=30968 scontext=u:r:netutils_wrapper:s0 tcontext=u:r:netmgrd:s0 tclass=file permissive=0 I could not reproduce this locally, but this feature has no users and I've verified that things keep working without it. This does not affect any shipped product. Bug: 131438232 Bug: 112438058 Bug: 131845076 Test: crosshatch_hwasan boot test Change-Id: I08d46d19151e6d5221cdd56fd6864dae224fae25 --- cc/sanitize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/sanitize.go b/cc/sanitize.go index 2d80c2213..ef60b8e7a 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -57,7 +57,7 @@ var ( minimalRuntimeFlags = []string{"-fsanitize-minimal-runtime", "-fno-sanitize-trap=integer,undefined", "-fno-sanitize-recover=integer,undefined"} - hwasanGlobalOptions = []string{"heap_history_size=1023,stack_history_size=512"} + hwasanGlobalOptions = []string{"heap_history_size=1023,stack_history_size=512,export_memory_stats=0"} ) type sanitizerType int