[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #9 from Maxim Ostapenko --- Author: chefmax Date: Tue Dec 8 11:34:28 2015 New Revision: 231405 URL: https://gcc.gnu.org/viewcvs?rev=231405=gcc=rev Log: 2015-12-08 Maxim OstapenkoBackport from mainline. 2015-03-16 Max Ostapenko PR sanitizer/64820 gcc/ * cfgexpand.c (align_base): New function. (alloc_stack_frame_space): Call it. (expand_stack_vars): Align prev_frame to be sure data->asan_vec elements aligned properly. gcc/testsuite/ * c-c++-common/asan/pr64820.c: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/asan/pr64820.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/cfgexpand.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #10 from Maxim Ostapenko --- Should be fixed on gcc-4_9-branch.
[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 joakim.tjernlund at transmode dot se changed: What|Removed |Added CC||joakim.tjernlund@transmode. ||se --- Comment #6 from joakim.tjernlund at transmode dot se --- Is this fix in gcc 4.9.3? If not, will go into 4.9.4?
[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #7 from Maxim Ostapenko --- (In reply to joakim.tjernl...@transmode.se from comment #6) > Is this fix in gcc 4.9.3? No, this didn't go to GCC 4.9, only to GCC 5. > If not, will go into 4.9.4? Well, actually we didn't plan backport this on gcc-4.9 branch, the case is quite specific. But I think it would be pretty easy to backport the fix now. I can do it if there aren't objections from GCC hackers.
[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #8 from joakim.tjernlund at transmode dot se --- As stack protector is default in gcc, I don't think it is specific. I did bite me on ppc with only -fsanitize=address and ASAN_OPTIONS=detect_stack_use_after_return=1
[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0) (0x0, 0x0) if ssp is enabled.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #4 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Fixed by r22145.
[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0) (0x0, 0x0) if ssp is enabled.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Fixed.
[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0) (0x0, 0x0) if ssp is enabled.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 Ramana Radhakrishnan ramana at gcc dot gnu.org changed: What|Removed |Added CC||ramana at gcc dot gnu.org --- Comment #3 from Ramana Radhakrishnan ramana at gcc dot gnu.org --- Fixed ?
[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0) (0x0, 0x0) if ssp is enabled.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #2 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Author: chefmax Date: Mon Mar 16 11:17:32 2015 New Revision: 221457 URL: https://gcc.gnu.org/viewcvs?rev=221457root=gccview=rev Log: 2015-03-16 Max Ostapenko m.ostape...@partner.samsung.com PR sanitizer/64820 gcc/ * cfgexpand.c (align_base): New function. (alloc_stack_frame_space): Call it. (expand_stack_vars): Align prev_frame to be sure data-asan_vec elements aligned properly. gcc/testsuite/ * c-c++-common/asan/pr64820.c: New test. Added: trunk/gcc/testsuite/c-c++-common/asan/pr64820.c Modified: trunk/gcc/ChangeLog trunk/gcc/cfgexpand.c trunk/gcc/testsuite/ChangeLog
[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0) (0x0, 0x0) if ssp is enabled.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 Yury Gribov y.gribov at samsung dot com changed: What|Removed |Added CC||y.gribov at samsung dot com --- Comment #1 from Yury Gribov y.gribov at samsung dot com --- Perhaps we should emit some warning (error) in compile time to prevent the issue? Or fix SSP to respect ASan stack requirements.