[PATCH] D131345: [RISC-V][HWASAN] Enable HWASAN for RISC-V architecture

2022-12-14 Thread Alexey Baturo via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG2eac70c1084c: [RISC-V][HWASAN] Enable HWASAN for RISC-V architecture (authored by smd). Changed prior to commit: https://reviews.llvm.org/D131345?vs=450579&id=482841#toc Repository: rG LLVM Github Mo

[PATCH] D131345: [RISC-V][HWASAN] Enable HWASAN for RISC-V architecture

2022-08-10 Thread Alexey Baturo via Phabricator via cfe-commits
smd added a comment. In 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

[PATCH] D131345: [RISC-V][HWASAN] Enable HWASAN for RISC-V architecture

2022-08-07 Thread Alexey Baturo via Phabricator via cfe-commits
smd created this revision. Herald added subscribers: Enna1, sunshaoce, VincentWu, luke957, vkmr, luismarques, sameer.abuasal, s.egerton, Jim, PkmX, rogfer01, shiva0217, kito-cheng, simoncook, arichardson, mgorny. Herald added a project: All. smd edited the summary of this revision. smd added revi

[PATCH] D103562: [NFC][compiler-rt][hwasan] Refactor hwasan functions

2022-08-06 Thread Alexey Baturo via Phabricator via cfe-commits
smd added inline comments. Comment at: compiler-rt/lib/hwasan/hwasan.cpp:205 + if (registers_frame && stack->trace && stack->size > 0) { +stack->trace++; +stack->size--; fmayer wrote: > fmayer wrote: > > fmayer wrote: > > > vitalybuka wrote: > > > > mayb

[PATCH] D103562: [NFC][compiler-rt][hwasan] Refactor hwasan functions

2022-08-05 Thread Alexey Baturo via Phabricator via cfe-commits
smd added a comment. Hi folks, I've been working on support hwasan for risc-v and I believe I've found an issue with the existing lit tests this commit causes. Tests stack-{oob,uar,uas}.c check for correct backtrace being printed. From the code and comments the idea is to not to print any hwasa