[PINGv10][PATCH] ASan on unaligned accesses

2015-06-11 Thread Marat Zakirov
On 06/02/2015 04:11 PM, Marat Zakirov wrote: On 05/26/2015 05:03 PM, Marat Zakirov wrote: On 05/20/2015 10:01 AM, Marat Zakirov wrote: 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

[PINGv9][PATCH] ASan on unaligned accesses

2015-06-02 Thread Marat Zakirov
On 05/26/2015 05:03 PM, Marat Zakirov wrote: On 05/20/2015 10:01 AM, Marat Zakirov wrote: 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

[PINGv8][PATCH] ASan on unaligned accesses

2015-05-26 Thread Marat Zakirov
On 05/20/2015 10:01 AM, Marat Zakirov wrote: 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

[PINGv7][PATCH] ASan on unaligned accesses

2015-05-20 Thread Marat Zakirov
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

Re: [PINGv6][PATCH] ASan on unaligned accesses

2015-05-12 Thread Yury Gribov
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

[PINGv6][PATCH] ASan on unaligned accesses

2015-05-12 Thread Marat Zakirov
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

[PINGv5][PATCH] ASan on unaligned accesses

2015-04-07 Thread Marat Zakirov
Hi Jakub! On 03/30/2015 08:42 PM, Jakub Jelinek wrote: Can you please start by explaining the asan_emit_stack_protection changes? What is the problem there, what do you want to achieve etc.? Is it to support ABI violating stack pointer alignment, or something different? If so, the compiler

Re: [PINGv5][PATCH] ASan on unaligned accesses

2015-04-07 Thread Jakub Jelinek
On Tue, Apr 07, 2015 at 01:16:10PM +0300, Marat Zakirov wrote: On 03/30/2015 08:42 PM, Jakub Jelinek wrote: Can you please start by explaining the asan_emit_stack_protection changes? What is the problem there, what do you want to achieve etc.? Is it to support ABI violating stack pointer

Re: [PINGv4][PATCH] ASan on unaligned accesses

2015-03-30 Thread Jakub Jelinek
On Thu, Mar 26, 2015 at 03:28:53PM +0300, Marat Zakirov wrote: 2015-02-25 Marat Zakirov m.zaki...@samsung.com * asan.c (asan_emit_stack_protection): Support for misalign accesses. (asan_expand_check_ifn): Likewise. * params.def: New option asan-catch-misaligned.

Re: [PINGv3][PATCH] ASan on unaligned accesses

2015-03-26 Thread Jakub Jelinek
On Thu, Mar 26, 2015 at 09:53:03AM +0300, Marat Zakirov wrote: gcc/ChangeLog: 2015-03-12 Marat Zakirov m.zaki...@samsung.com * asan.c (asan_emit_stack_protection): Support for misalign accesses. (asan_expand_check_ifn): Likewise. * common.opt: New flag

[PINGv4][PATCH] ASan on unaligned accesses

2015-03-26 Thread Marat Zakirov
On 03/26/2015 02:50 PM, Jakub Jelinek wrote: On Thu, Mar 26, 2015 at 09:53:03AM +0300, Marat Zakirov wrote: gcc/ChangeLog: 2015-03-12 Marat Zakirov m.zaki...@samsung.com * asan.c (asan_emit_stack_protection): Support for misalign accesses. (asan_expand_check_ifn):

[PINGv3][PATCH] ASan on unaligned accesses

2015-03-26 Thread Marat Zakirov
On 03/19/2015 09:01 AM, Marat Zakirov wrote: On 03/04/2015 11:07 AM, Andrew Pinski wrote: On Wed, Mar 4, 2015 at 12:00 AM, Marat Zakirov m.zaki...@samsung.com wrote: Hi all! Here is the patch which forces ASan to work on memory access without proper alignment. it's useful because some

[PINGv2][PATCH] ASan on unaligned accesses

2015-03-19 Thread Marat Zakirov
On 03/04/2015 11:07 AM, Andrew Pinski wrote: On Wed, Mar 4, 2015 at 12:00 AM, Marat Zakirov m.zaki...@samsung.com wrote: Hi all! Here is the patch which forces ASan to work on memory access without proper alignment. it's useful because some programs like linux kernel often cheat with

[PING][PATCH] ASan on unaligned accesses

2015-03-12 Thread Marat Zakirov
On 03/04/2015 11:00 AM, Marat Zakirov wrote: Hi all! Here is the patch which forces ASan to work on memory access without proper alignment. it's useful because some programs like linux kernel often cheat with alignment which may cause false negatives. This patch needs additional support

[PATCH] ASan on unaligned accesses

2015-03-04 Thread Marat Zakirov
Hi all! Here is the patch which forces ASan to work on memory access without proper alignment. it's useful because some programs like linux kernel often cheat with alignment which may cause false negatives. This patch needs additional support for proper work on unaligned accesses in global

Re: [PATCH] ASan on unaligned accesses

2015-03-04 Thread Andrew Pinski
On Wed, Mar 4, 2015 at 12:00 AM, Marat Zakirov m.zaki...@samsung.com wrote: Hi all! Here is the patch which forces ASan to work on memory access without proper alignment. it's useful because some programs like linux kernel often cheat with alignment which may cause false negatives. This patch