2014-05-27 14:38 GMT+04:00 Yuri Gribov <[email protected]>:
>> alternative to __kasan_instrument_stack is to implement
>> __asan_get_shadow_ptr(addr) and then reuse the existing inline stack
>> instrumentation.
>
> This would be even easier.
>

Don't forget that shadow in kernel is not always available.
__asan_get_shadow_ptr(addr) should return NULL if shadow is not
allocated yet, so inlined code must check return value.
This means that we will check the same thing (if shadow available or
not)  twice - once in __asan_get_shadow_ptr
and later - checking of the return value. The good part here is that
we will save one function call (__kasan_uninstrument_stack).

> -Y
>
> --
> You received this message because you are subscribed to the Google Groups 
> "address-sanitizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.



-- 
Best regards,
Andrew Ryabinin

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to