https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91543
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Did you try if -fstack-clash-protection provides a better failure mode? It might be required to reliably detect that "end of the stack" case.