[PATCH][PING] Add support for KernelAddressSanitizer

Yury Gribov y.gribov@samsung.com
Wed Jul 30 14:42:00 GMT 2014


On 07/18/2014 05:38 PM, Jakub Jelinek wrote:
>>> Do you error out on -fsanitize=thread -fsanitize=kernel-address ?
>>> Perhaps -fsanitize=kernel-address -fsanitize=address should be invalid too?
>>
>> Yes, all these combinations are invalid.
>
> But you don't error out on that.

Ok, fixed.

> Then in sanitize_spec_function supposedly for "address" check
> SANITIZE_USER_ADDRESS bit, for "kernel-address" added there
> SANITIZE_KERNEL_ADDRESS, add all the incompatibility diagnostics for the new
> invalid combinations.

This delayed detection until link phase (and even then was disabled if
-nostdlib was on)
so I decided to perform this check in finish_options (after passing
cmdline options).

>Plus, toplev.c has e.g.:

Fixed as well.

-Y




-------------- next part --------------
A non-text attachment was scrubbed...
Name: kasan_patch-2.diff
Type: text/x-diff
Size: 7717 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140730/38b877f4/attachment.bin>


More information about the Gcc-patches mailing list