]> Cypherpunks repositories - gostls13.git/commit
runtime: in asan mode unregister root regions on free
authorFlorian Zenker <floriank@google.com>
Wed, 19 Mar 2025 10:55:55 +0000 (10:55 +0000)
committerFlorian Zenker <floriank@google.com>
Wed, 19 Mar 2025 14:06:55 +0000 (07:06 -0700)
commit56e5476e10db25ce71f562bd6ee0910a83532b04
tree1b43244aa97b624d794fdf4c94fe069039387848
parent1aee4f3464b678f135912e2b2703e0f6c060b980
runtime: in asan mode unregister root regions on free

CL 651755 introduced registration of root regions when allocating
memory. We also need to unregister that memory to avoid the leak
sanitizer accessing unmapped memory.

Issue #67833

Change-Id: I5d403d66e65a8a003492f4d79dad22d416fd8574
Reviewed-on: https://go-review.googlesource.com/c/go/+/659135
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/runtime/asan.go
src/runtime/asan/asan.go
src/runtime/asan0.go
src/runtime/asan_amd64.s
src/runtime/asan_arm64.s
src/runtime/asan_loong64.s
src/runtime/asan_ppc64le.s
src/runtime/asan_riscv64.s
src/runtime/mem.go