m/b/paged: annotate segv trigger for asan's benefit
This commit is contained in:
parent
e7c547f764
commit
829bdc2767
@ -9,10 +9,10 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
sigjmp_buf fault_jmp;
|
sigjmp_buf fault_jmp;
|
||||||
|
|
||||||
|
__attribute__((no_sanitize_address))
|
||||||
template <typename T>
|
|
||||||
bool
|
bool
|
||||||
has_fault (const volatile T* addr)
|
has_fault
|
||||||
|
(const volatile char* addr)
|
||||||
{
|
{
|
||||||
if (sigsetjmp (fault_jmp, 1) == 0) {
|
if (sigsetjmp (fault_jmp, 1) == 0) {
|
||||||
*addr;
|
*addr;
|
||||||
@ -27,6 +27,7 @@ has_fault (const volatile T* addr)
|
|||||||
static bool fault_seen;
|
static bool fault_seen;
|
||||||
static void *fault_address;
|
static void *fault_address;
|
||||||
|
|
||||||
|
__attribute__((no_sanitize_address))
|
||||||
void
|
void
|
||||||
segv_handler (int num, siginfo_t *info, void *cookie)
|
segv_handler (int num, siginfo_t *info, void *cookie)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user