[PATCH v5] Enable -fsanitize-recover for KASan
Yury Gribov
y.gribov@samsung.com
Tue Oct 28 10:15:00 GMT 2014
On 10/28/2014 12:26 PM, Jakub Jelinek wrote:
> On Tue, Oct 28, 2014 at 11:46:31AM +0300, Yury Gribov wrote:
>> 2014-10-23 Yury Gribov <y.gribov@samsung.com>
>>
>> gcc/
>> * asan.c (report_error_func): Add noabort path.
>> (check_func): Ditto. Formatting.
>> (asan_expand_check_ifn): Handle noabort path.
>> * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
>> to default value.
>> * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
>> * opts.c (finish_options): Reword comment.
>> * sanitizer.def: Add noabort ASan builtins.
>>
>> gcc/testsuite/
>> * c-c++-common/asan/kasan-recover-1.c: New test.
>> * c-c++-common/asan/kasan-recover-2.c: New test.
>
> Are the __asan_{load,store,report}*_noabort entrypoints going to be added
> into libasan too?
Probably not, ASan team has declined recovery mode in userspace ASan
since the beginning of days. It's even mentioned in their FAQ at
https://code.google.com/p/address-sanitizer/wiki/AddressSanitizer
-Y
More information about the Gcc-patches
mailing list