[PATCH 1/7] sampling-asan: A sampling-based address sanitization for on-line memory bug detection

Sung-hun Kim sfoon.kim@samsung.com
Tue Sep 23 02:43:02 GMT 2025


Hello. Thank you for your attention.

To users, only environment variables are exported.
Exported APIs by GLIBC_PRIVATE are only for Glibc-internals, such as malloc-debug.c.

In malloc-debug.c, I added malloc_sanitize, realloc_sanitize and free_sanitize calls.
Those calls are forwarded to sampling-asan APIs if users pass MALLOC_SANITIZE_=sampling-asan as an environment variable.

Best regards,
Sung-hun Kim

> -----Original Message-----
> From: Florian Weimer <fweimer@redhat.com>
> Sent: Monday, September 22, 2025 4:51 PM
> To: Sung-hun Kim <sfoon.kim@samsung.com>
> Cc: libc-alpha@sourceware.org; carlos@systemhalted.org; sebuns@gmail.com; dongkyun.s@samsung.com;
> sungguk.na@samsung.com
> Subject: Re: [PATCH 1/7] sampling-asan: A sampling-based address sanitization for on-line memory bug
> detection
> 
> * Sung-hun Kim:
> 
> > This patch introduces sampling-asan, a lightweight implementation of
> > address sanitization (ASan) designed to reduce performance overhead of
> > ASan.  ASan implementation imposes significant performance overhead,
> > discouraging developers from using ASan to verify their codes. As a
> > result, developers use ASan only after a memory bug is discovered.
> 
> It's not clear to me what the external interface to this code is.  Is it just environment variables?
> Or something more?  What is the purpose of the GLIBC_PRIVATE exports?
> 
> Thanks,
> Florian




More information about the Libc-alpha mailing list