Add support for getting the maximum virtual address, LoongArch has multiple
address space layouts, the default maximum virtual address of the current
user space is 47 bits. (from TASK_SIZE in the kernel for loongarch64).
Details
- Reviewers
SixWeining xen0n xry111 MaskRay XiaodongLoong - Group Reviewers
Restricted Project - Commits
- rGeae8d93dc268: [sanitizer] Add GetMaxVirtualAddress() support for LoongArch
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp | ||
---|---|---|
1118 | I believe you could just add defined(__loongarch__) to the case above and adjust the comments. LoongArch is also an architecture with multiple address space layouts possible. |
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp | ||
---|---|---|
1118 |
Yes, of course, I will adjust it. Initially just wanted to be consistent with asan_mapping.h (asan only supports 47 bit in loongarch64 for now). |
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp | ||
---|---|---|
1118 | Can this approach applies to |
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp | ||
---|---|---|
1118 |
Current asan only supports 47-bit address space layout. |
I believe you could just add defined(__loongarch__) to the case above and adjust the comments. LoongArch is also an architecture with multiple address space layouts possible.