[PATCHv5][Kasan] Allow to override Asan shadow offset from command line
Yury Gribov
y.gribov@samsung.com
Fri Oct 24 13:58:00 GMT 2014
Hi all,
On 10/17/2014 11:53 AM, Yury Gribov wrote:
> 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.
>
> 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).
A new version of patchset which does a proper implementation of
strtoll/strtoull in libiberty (with tests, docs and stuff).
Bootstrapped and regtested on x64.
As mentioned previously, I'm not sure how to properly test strtoll
implementation (strtoll is already part of Linux glibc so my
implementation is not compiled in by default). I've manually embedded
strtoll.o/strtoull.o into libiberty.a and verified that regression tests
passed.
-Y
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-strtoll-and-strtoull-to-libiberty.patch
Type: text/x-patch
Size: 33767 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141024/d4b99d1a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Allow-to-override-Asan-shadow-offset.patch
Type: text/x-patch
Size: 7983 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141024/d4b99d1a/attachment-0001.bin>
More information about the Gcc-patches
mailing list