[PATCH] Enable -fsanitize-recover for KASan

Dmitry Vyukov dvyukov@google.com
Fri Sep 5 07:32:00 GMT 2014


On Fri, Sep 5, 2014 at 10:54 AM, Yury Gribov <y.gribov@samsung.com> wrote:
> Hi all,
>
> This patch enables -fsanitize-recover for KASan by default. This causes
> KASan to continue execution after error in case of inline instrumentation.
> This feature is needed because
> - reports during early bootstrap won't even be printed
> - needed to run all tests w/o rebooting machine for every test
> - needed for interactive work on desktop
>
> Bootstrapped and regtested on x64.
>
> Ok to commit?


Can we do it w/o doubling number of runtime entry points?
Looks like a wrong way to pass global options to runtime. If we need
to pass several other options, number of entry points will sky rocket.
I vaguely remember there are some globals that compiler uses to
communicate configuration (version, shadow base) to runtime. Can we
use them to enable recover mode in runtime?



More information about the Gcc-patches mailing list