[all-commits] [llvm/llvm-project] 3ce3d8: [asan] Re-exec without ASLR if needed on 64-bit Li...

Thurston Dang via All-commits all-commits at lists.llvm.org
Mon Mar 24 16:24:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ce3d889f6a7faacb883f563697764b8a58c4abf
      https://github.com/llvm/llvm-project/commit/3ce3d889f6a7faacb883f563697764b8a58c4abf
  Author: Thurston Dang <thurston at google.com>
  Date:   2025-03-24 (Mon, 24 Mar 2025)

  Changed paths:
    M compiler-rt/lib/asan/asan_shadow_setup.cpp

  Log Message:
  -----------
  [asan] Re-exec without ASLR if needed on 64-bit Linux (#132682)

This generalizes https://github.com/llvm/llvm-project/pull/131975 to non-32-bit Linux (i.e., 64-bit Linux).

This works around an edge case in 64-bit Linux, whereby the memory layout is incompatible if the stack size is unlimited AND ASLR entropy is 31+ bits (see https://github.com/google/sanitizers/issues/856#issuecomment-2747076811).

More generally, this "re-exec without ASLR if layout is incompatible" is a hammer that can work around most shadow mapping issues, without incurring the overhead of using a dynamic shadow.



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