User Details
- User Since
- Sep 13 2020, 1:57 AM (132 w, 19 h)
Jan 9 2023
Dec 23 2022
ping
Dec 15 2022
With D139414 being pushed to upstream, .variant_cc symbol is now properly emitted by hwasan code:
clang -fsanitize=hwaddress -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions src/llvm-project/compiler-rt/test/hwasan/TestCases/global.c -S -c -o /tmp/globals.s | grep variant_cc /tmp/globals.s .variant_cc __hwasan_tag_mismatch_v2
Rebase and properly emit .variant_cc
Dec 14 2022
Dec 13 2022
Dec 9 2022
Hi @jrtc27,
If you don't have any objections, I'd like to push this patch this weekend.
Thanks
Dec 5 2022
Do you think it's possible to support printing .variant_cc label to asm file if the proper flag for symbol is set? I believe this happens(didn't verify though) for .variant_pcs in AArch64ELFStreamer.cpp
This would help me with D132994
Nov 29 2022
Nov 22 2022
Nov 15 2022
I think one of possible solutions for the problem mentioned above might be the following:
- mark __hwasan_tag_mismatch_v2 as .variant_cc directly in asm file
- add support for reading/dumping .variant_cc as emitDirectiveVariantPCS does
- remove setting ELF::STO_RISCV_VARIANT_CC for __hwasan_tag_mismatch_v2 in RISCVAsmPrinter.cpp
Nov 13 2022
Nov 12 2022
@jrtc27
Hi, could you please check that your request has been addressed?
Thanks
Nov 2 2022
@luismarques @jrtc27 Do you think it's ok if I commit this patch?
Thanks
Updating tests
Addressing comments
Addressing comments
Oct 26 2022
Addressing comments
Does the tagging actually change the location of globals?
No, it doesn't.
Oct 19 2022
@jrtc27, @asb, @luismarques, @MaskRay, @craig.topper
Gengle ping, could you please help with reviewing this patch?
Thanks
Oct 3 2022
Could you please help with reviewing this patch.
Thanks
Sep 19 2022
@jrtc27 gentle ping
Sep 3 2022
Addressing comments
Sep 1 2022
Update test
Aug 30 2022
@vitalybuka
After all the adjustments and supporting globals I have this picture:
Failed Tests (3): HWAddressSanitizer-riscv64 :: TestCases/stack-oob.c HWAddressSanitizer-riscv64 :: TestCases/try-catch.cpp HWAddressSanitizer-riscv64 :: TestCases/exported-tagged-global.c
Addressing comments
Aug 28 2022
@jrtc27 sorry for the mess
Aug 23 2022
Addressing comments
Addressing comments
Aug 22 2022
Hi @vitalybuka
Could you please take another look at this patch series and if you wouldn't have any objections, I'd like to push it.
Thanks
Aug 19 2022
Fixing bug
Don't push tagged globals option for riscv64 hwasan tests
Aug 18 2022
@jrtc27 I would like to thank you for your such elaborate comments, your help is much appreciated. Thanks!
Fixed missing label
Addressing comments
Addressing comments
Aug 17 2022
Addressing comments
Aug 16 2022
Moving tests to previous patches
Addressing comments
Addressing comments
LGTM, but someone who work RISC-V should take a look
@kito-cheng @craig.topper could you please help to identify someone who could help with reviewing riscv part of these patch series?
Thanks
Addressing comments
Aug 15 2022
Introduce some new tests