Make minor changes to enable DFSAN and its tests on
loongarch64. And port Linux loongarch64 memory mappings
from msan.
Details
- Reviewers
browneee kcc SixWeining xen0n xry111 MaskRay XiaodongLoong tangyouling - Group Reviewers
Restricted Project - Commits
- rG280d163887ea: [dfsan] Support Linux loongarch64
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Who will use DFSan on loongarch64?
Who will maintain DFSan on loongarch64?
Is there a loongarch64 buildbot?
Hi @browneee, I'm the co-author of this patch. Thanks for your comments.
Who will use DFSan on loongarch64?
Currently nobody uses it as loongarch is a pretty new arch which is expected to graduate from experimental before llvm 16 release. (But I think there may be potential users of DFSan in future.) The motivation of this change is to make loongarch64 support as more compiler-rt components as possible. We notice that DFSan is a work in progress, currently under development for x86_64 Linux. So maybe we can defer the change until DFSan development is finished and there is a use case on loongarch64?
Who will maintain DFSan on loongarch64?
Loongson (https://www.loongson.cn/EN) can maintain it.
Is there a loongarch64 buildbot?
Yes, there is one: https://lab.llvm.org/staging/#/builders/236.
This sounds like a reasonable option.
DFSan development is now fairly mature. We don't support other platforms due to lack of demand (all the users I'm aware of are x86_64).
As a side note: I am pleased to see that the patch required to add this support is as small as I'd expect (even if we add the pieces in D140689 not shown here atm).
@browneee Instead of marking most tests as REQUIRES: x86_64-target-arch, it'd be better to use an opt-out model (UNSUPPORTED: ... or XFAIL: ...)? The majority of tests should be architecture-agnostic.