https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110027
--- Comment #19 from Hongtao Liu <liuhongt at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #17) > Both of the posted patches are incorrect, this needs to be fixed in > asan_emit_stack_protection, account for the different offsets[0] which > happens when a stack pointer guard is created. > I'll deal with it tomorrow. It seems to me that the only offend place is where I've modifed, are there other places where align_frame_offset (ASAN_RED_ZONE_SIZE) is also added? Also, your patch adds a gcc_assert for offset[0], which seems to me there was an assumption that offset[0] should be a multiple of alignb, thus making my patch more reasonable?