[PATCHv4][Kasan] Allow to override Asan shadow offset from command line

Yury Gribov y.gribov@samsung.com
Fri Oct 17 07:59:00 GMT 2014


Hi all,

On 09/29/2014 09:21 PM, Yury Gribov wrote:
>>> Kasan developers has asked for an option to override offset of Asan
>>> shadow memory region. This should simplify experimenting with memory
>>> layouts on 64-bit architectures.
>
> New patch which checks that -fasan-shadow-offset is only enabled for
> -fsanitize=kernel-address. I (unfortunately) can't make this --param
> because this can be a 64-bit value.
>
> Bootstrapped and regtested on x64.

New patchset that adds strtoull to libiberty (blind copy-paste of 
already existing strtoul.c) and uses it to parse -fasan-shadow-offset 
(to avoid problem with compiling for 64-bit target a 32-bit host).

Bootstrapped and regtested on x64.

-Y
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-strtoull-to-libiberty.patch
Type: text/x-patch
Size: 4175 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141017/43e0327f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Allow-to-override-Asan-shadow-offset.patch
Type: text/x-patch
Size: 7975 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141017/43e0327f/attachment-0001.bin>


More information about the Gcc-patches mailing list