https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105029
--- Comment #3 from Eyal Rozenberg <eyalroz1 at gmx dot com> --- (In reply to Andrew Pinski from comment #2) > You could backport the fix if you want. I'd like to trouble you for a little more guidance, so that I can apply the fix to 6.5.0. Now, I understand the fix does two things: 1. Change the conditions under which a size-and-type check is performed 2. Change the structure of __sanitizer_ipc_perm for various platforms. However, this is difficult to back-port when I don't understand what the actual problem was. The layout, and types, of the __sanitizer_ipc_perm structure is different in 6.5.0 and in 9.3.0, so that it's not clear what fields to change, into what, and for what platforms/combination of flags. The CHECK_SIZE_AND_TYPE - I can use the same condition as in the patched version, but - are they the appropriate ones for 6.5.0? Help out a poor developer who's trying to maintain compatibility of his library with older systems/compilers.