[compiler-rt] [llvm] [msan] Add experimental '-mllvm -msan-embed-faulting-instruction' and MSAN_OPTIONS=print_faulting_instruction (PR #136539)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 22 12:56:42 PDT 2025
================
@@ -25,6 +25,11 @@ MSAN_FLAG(bool, poison_stack_with_zeroes, false, "")
MSAN_FLAG(bool, poison_in_malloc, true, "")
MSAN_FLAG(bool, poison_in_free, true, "")
MSAN_FLAG(bool, poison_in_dtor, true, "")
+MSAN_FLAG(bool, print_faulting_instruction, false,
----------------
thurstond wrote:
We envision an Msan Compiler-rt Universe of runtime options:
- this patch: `print_faulting_instruction`
- future work?: `ignore_faulting_instruction` (for example, skip over all Vector Convert Half-word Unsigned to Long Unsigned [VCVTHULU] instructions)
- etc.
A user will be able to pick and choose any of these options at runtime, assuming the binary is already compiled with the embedded instruction.
https://github.com/llvm/llvm-project/pull/136539
More information about the llvm-commits
mailing list