[PATCHv3][PING] Enable -fsanitize-recover for KASan

Yury Gribov y.gribov@samsung.com
Tue Sep 30 07:14:00 GMT 2014


On 09/30/2014 10:56 AM, Yury Gribov wrote:
> On 09/30/2014 04:24 AM, Konstantin Serebryany wrote:
>> On Mon, Sep 29, 2014 at 4:26 PM, Alexey Samsonov <samsonov@google.com>
>> wrote:
>>> I don't think we ever going to support recovery for regular ASan
>>> (Kostya, correct me if I'm wrong).
>>
>> I hope so too.
>> Another point is that with asan-instrumentation-with-call-threshold=0
>> (instrumentation with callbacks)
>> we can and probably will allow to recover from errors (glibc demands
>> that),
>> but that does not require any compile-time flag.
>
> I don't know details but are you absolutely sure that you won't want to
> do inline instrumentation of glibc in the future? This would then
> require -fasan-recover.

FYI in kernel we had exactly this situation: outline instrumentation 
allowed us to hide recovery inside callbacks but then turned out to be 
too slow so we are now switching back to inline instrumentation (which 
requires -fasan-recovery).

-Y



More information about the Gcc-patches mailing list