[all-commits] [llvm/llvm-project] 99fc4d: [msan] Remove non-working MSAN_LINUX_X86_64_OLD_MA...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Dec 30 19:43:32 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 99fc4d3d1636c81dad5b9c9c4537347c44fa5065
      https://github.com/llvm/llvm-project/commit/99fc4d3d1636c81dad5b9c9c4537347c44fa5065
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-12-30 (Fri, 30 Dec 2022)

  Changed paths:
    M compiler-rt/lib/msan/msan.h
    M compiler-rt/lib/msan/msan_allocator.cpp
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

  Log Message:
  -----------
  [msan] Remove non-working MSAN_LINUX_X86_64_OLD_MAPPING

r249754 (2015) added this macro (not set anywhere) for an escape hatch.
This old layout has been non-working for many years (Linux
arch/x86/include/asm/elf.h ELF_ET_DYN_BASE is outside the APP range):

    FATAL: Code 0x558547327980 is out of application range. Non-PIE build?
    FATAL: MemorySanitizer can not mmap the shadow memory.
    FATAL: Make sure to compile with -fPIE and to link with -pie.
    FATAL: Disabling ASLR is known to cause this error.
    FATAL: If running under GDB, try 'set disable-randomization off'.

Non-pie doesn't work either.




More information about the All-commits mailing list