[PINGv7][PATCH] ASan on unaligned accesses

Marat Zakirov m.zakirov@samsung.com
Wed May 20 07:19:00 GMT 2015



On 05/12/2015 02:16 PM, Marat Zakirov wrote:
> On 04/07/2015 03:22 PM, Jakub Jelinek wrote:
>> How are the automatic misaligned variables different from say heap 
>> allocated ones, or global vars etc.? 
> No difference you are right Jakub. Shadow memory initialization for 
> heap values and globals of course also should be changed but it is a 
> task for libsanitizer not ASan for which I am sending patch. Fix for 
> libsanitizer to support unaligned heaps and globals will be committed 
> by a separate patch.
>> Well, a RTL solution I've tried at http://gcc.gnu.org/PR22141, but it 
>> gave
>> mixed results, so either it needs more cost tuning when it is 
>> desirable and
>> when it is not, or perhaps better do that still on GIMPLE instead, 
>> together
>> with trying to optimize bitfield accesses and other cases of adjacent
>> location accesses.  But if we handle that on GIMPLE, it won't really 
>> affect
>> what asan RTL emitting code produces.
>>
>>     Jakub
>>
> I fixed the issue with 'movq' you were mentioned in a previous mail.
>
> --Marat
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mavdt-95_20.diff
Type: text/x-patch
Size: 8979 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150520/f7ac1eda/attachment.bin>


More information about the Gcc-patches mailing list