<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/85013>85013</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Crash with memory sanitizer on Linux 6.5.0-25
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          yamam
      </td>
    </tr>
</table>

<pre>
    Reproduction Steps:
The following commands reproduce with more than 50% probability.
$ echo 'int main(void) {return 0;}'|clang -fsanitize=memory -fPIE -pie -x c -;./a.out
FATAL: Code 0x62437d12e410 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'.
==10691==Process memory map follows:

Environment:
Linux PC-20240312A024 6.5.0-25-generic #25~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 20 16:09:15 UTC 2 x86_64 x86_64 
x86_64 GNU/Linux
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

It does not occur when reverting to 6.5.0-21-generic
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcVMtupDoQ_Rr3pgQyNjTpBYtOdxhFSqJWHou7GhlcDb4xNvIjnczifvsVj54ZZYPBRR2fOnVcwnvVGcSKFLekOG5EDL111ZcYxLBprPyqnnF0VsY2KGvgJeDoCd8TeiR0_9ojnK3W9qJMB60dBmGkB7dmIFxU6GGwDiH0wkBBCStgdLYRjdIqfKULDmE5YNtbIKxUJsAglCHs5sMqSdgOSHnrMERngBJ-S8ojYSUpD60WpoPk7IVRQf1Cwo8DDtZ9QXI-3d9BMiqE5BNaSAi_TQmrRWpjWI6s96_7B8L3cLASgX5uWc5LmTHM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