[PATCH] D131345: [RISC-V][HWASAN] Enable HWASAN for RISC-V architecture
Alexey Baturo via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 10 08:49:09 PDT 2022
smd added a comment.
In D131345#3712814 <https://reviews.llvm.org/D131345#3712814>, @kito-cheng wrote:
> I guess we should checking `J` extension is enabled somewhere when user trying to enable HWASAN? or checking that at HWASAN library at run-time? otherwise my understanding is user will get crash when enabling HWASAN if linux and/or HW don't support that?
It relies on a runtime check: during init runtime makes PR_{SET,GET}_TAGGED_ADDR_CTRL calls and if they're not supported, it fails with an error.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131345/new/
https://reviews.llvm.org/D131345
More information about the cfe-commits
mailing list