[all-commits] [llvm/llvm-project] db63c5: [ASan][AIX] Intercept __linux_vec_malloc/__linux_v...

Midhunesh via All-commits all-commits at lists.llvm.org
Tue Jul 14 07:08:16 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db63c56a4f985426a0c44de4da215eb06cd5a278
      https://github.com/llvm/llvm-project/commit/db63c56a4f985426a0c44de4da215eb06cd5a278
  Author: Midhunesh <midhunesh.p at ibm.com>
  Date:   2026-07-14 (Tue, 14 Jul 2026)

  Changed paths:
    M compiler-rt/lib/asan/AIX/asan.link_with_main_exec.txt
    M compiler-rt/lib/asan/asan_malloc_linux.cpp
    M compiler-rt/test/asan/TestCases/AIX/vec_malloc_calloc.cpp

  Log Message:
  -----------
  [ASan][AIX] Intercept __linux_vec_malloc/__linux_vec_calloc/__linux_realloc (#209359)

On AIX PASE, when `__VEC__` and `_ALL_SOURCE` are defined, the XL
compiler frontend lowers calls to vec_malloc/vec_calloc/realloc to
internal symbols named `__linux_vec_malloc`, `__linux_vec_calloc`, and
`__linux_realloc` instead of the standard
`vec_malloc`/`vec_calloc`/`realloc` names. These symbols were not
intercepted, so allocations made through them bypassed ASan entirely, no
redzone poisoning, no use-after-free or overflow detection.
This adds interceptors for `__linux_vec_malloc`, `__linux_vec_calloc`,
and `__linux_realloc`, following the same pattern as the existing
`vec_malloc`/`vec_calloc` interceptors (#175584): `__linux_vec_malloc`
and `__linux_vec_calloc` route through
`asan_vec_malloc`/`asan_vec_calloc` (16-byte aligned), and
`__linux_realloc` routes through the existing `asan_realloc`.

---------

Co-authored-by: Midhunesh <midhuensh.p at ibm.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list