[compiler-rt] [llvm] [RISCV][sanitizer] Fix sanitizer support for different virtual memory layout (PR #66743)

Hau Hsu via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 21:34:36 PDT 2024


hau-hsu wrote:

Hi @vitalybuka @luismarques @PiJoules I know this is an old PR.
I have rebased the commits and tested in our QEMU system mode for sv39, sv48, sv57 virtual memory layouts.
(More info about the 3 memory layout: https://www.kernel.org/doc/html/v6.4/riscv/vm-layout.html)
Please help to review again.

Test result:
The test baseline is sv39 mode, without any commits in the PR.
There are only 2 new failures for sv57:
```
TestCases/Linux/allocator_oom_test.cpp
TestCases/Linux/quarantine_size_mb.cpp
```
After quick triage I think they are because the required memory is too large in sv57 mode, the original test
conditions won't work. I'll have another PR if necessary later.

Thanks!

https://github.com/llvm/llvm-project/pull/66743


More information about the llvm-commits mailing list