Skip to content
Snippets Groups Projects
  • fanzha02's avatar
    6f327f7b
    runtime, syscall: add calls to asan functions · 6f327f7b
    fanzha02 authored
    Add explicit address sanitizer instrumentation to the runtime and
    syscall packages. The compiler does not instrument the runtime
    package. It does instrument the syscall package, but we need to add
    a couple of cases that it can't see.
    
    Refer to the implementation of the asan malloc runtime library,
    this patch also allocates extra memory as the redzone, around the
    returned memory region, and marks the redzone as unaddressable to
    detect the overflows or underflows.
    
    Updates #44853.
    
    Change-Id: I2753d1cc1296935a66bf521e31ce91e35fcdf798
    Reviewed-on: https://go-review.googlesource.com/c/go/+/298614
    
    
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
    Trust: fannie zhang <Fannie.Zhang@arm.com>
    6f327f7b
    History
    runtime, syscall: add calls to asan functions
    fanzha02 authored
    Add explicit address sanitizer instrumentation to the runtime and
    syscall packages. The compiler does not instrument the runtime
    package. It does instrument the syscall package, but we need to add
    a couple of cases that it can't see.
    
    Refer to the implementation of the asan malloc runtime library,
    this patch also allocates extra memory as the redzone, around the
    returned memory region, and marks the redzone as unaddressable to
    detect the overflows or underflows.
    
    Updates #44853.
    
    Change-Id: I2753d1cc1296935a66bf521e31ce91e35fcdf798
    Reviewed-on: https://go-review.googlesource.com/c/go/+/298614
    
    
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
    Trust: fannie zhang <Fannie.Zhang@arm.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.