[PATCH][ASAN] Switch off by default allocas/VLA sanitization for KASAN

Maxim Ostapenko m.ostapenko@samsung.com
Thu Jul 6 13:32:00 GMT 2017


Hi,

since kernel doesn't support __asan_alloca_poison and 
__asan_allocas_unpoison runtime calls so far, the allocas/VLAs 
sanitization patch 
(https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00258.html) will break 
KASan builds.
So it was decided to introduce an option --param 
asan-instrument-allocas=0/1 (on by default for userspace and off for 
kernel) to avoid the issue.

Tested on x86_64-unknown-linux-gnu, OK after 
https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00258.html will be applied?

-Maxim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alloca-kasan-1.diff
Type: text/x-diff
Size: 5503 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170706/c1ef199f/attachment.bin>


More information about the Gcc-patches mailing list