Fangrui Song
9d1857f69f
[msan] Guard FP_XSTATE_MAGIC1 usage with SANITIZER_GLIBC
...
Fix build for Linux musl.
Reviewed By: #sanitizers, dvyukov
Differential Revision: https://reviews.llvm.org/D118970
2022-02-04 10:15:11 -08:00
Petr Hosek
9eeb2c98f4
[msan] Check for AVX regs using offset
...
glibc versions < 2.26 use different names for the fields.
However the layout is unchanged, so using the offset should be a
portable way to address this issue across platforms.
Fixes: https://github.com/llvm/llvm-project/issues/53014
Patch By: paulkirth
Differential Revision: https://reviews.llvm.org/D116695
2022-01-05 19:24:00 -08:00
Dmitry Vyukov
38f69eb77e
msan: mark test as x86-specific
...
Differential Revision: https://reviews.llvm.org/D116653
2022-01-05 13:41:12 +01:00
Dmitry Vyukov
395f737c33
msan: check that ucontext_t is initialized on signal return
...
A signal handler can alter ucontext_t to affect execution after
the signal returns. Check that the contents are initialized.
Restoring unitialized values in registers can't be good.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D116209
2022-01-05 13:20:50 +01:00