New issue 2722: shadowstack overflow with sys.setrecursionlimit()
https://bitbucket.org/pypy/pypy/issues/2722/shadowstack-overflow-with

Armin Rigo:

When playing with sys.setrecursionlimit(), we can get the fixed-size 
shadowstack to overflow.  This occurs more easily on release builds with 
``-O3`` because the C stack grows more slowly there, making the shadowstack 
growth comparatively faster.

We need to think about what to do.  We can't easily reallocate the running 
shadowstack in sys.setrecursionlimit().  We could maybe work with a 
non-contiguous shadowstack that is made from several smaller blocks.  It needs 
to be tweaked to have minimal impact, particularly on JITted code.


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to