[issue40642] Cpython "pystate.h" subdirectory wrong
Xi Ruoyao added the comment: Dup of #39026. And the proposed fix is nack'ed in #39026. -- ___ Python tracker <https://bugs.python.org/issue40642> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40642] Cpython "pystate.h" subdirectory wrong
Change by Xi Ruoyao : -- keywords: +patch nosy: +xry111 nosy_count: 3.0 -> 4.0 pull_requests: +23514 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24744 ___ Python tracker <https://bugs.python.org/issue40642> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36856] faulthandler._stack_overflow doesn't work on x86-linux with KPTI enabled
Xi Ruoyao added the comment: > Are uintptr_t overflow/underflow semantics a defined behavior? Yes. Unlike signed overflow, unsigned overflow is defined to be 2's complement. The problem is this overflow results a wrong stack pointer limit and breaks _stack_overflow. -- ___ Python tracker <https://bugs.python.org/issue36856> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36856] faulthandler._stack_overflow doesn't work on x86-linux with KPTI enabled
Change by Xi Ruoyao : -- keywords: +patch pull_requests: +13116 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36856> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36856] faulthandler._stack_overflow doesn't work on x86-linux with KPTI enabled
New submission from Xi Ruoyao : In faulthandler.c STACK_OVERFLOW_MAX_SIZE is defined to 100 * 1024 * 1024 (100MB). But recently KPTI has been applied to mitigate Meltdown (CVE-2017-5754) so the userspace stack pointer may be very close to 0x on Linux systems with 32-bit x86. For example, on my laptop it's sometimes 0xcc20. So the expression sp + STACK_OVERFLOW_MAX_SIZE overflows and becomes a very small number. That causes faulthandler._stack_overflow() to bail out after only one recursive call: Traceback (most recent call last): File "", line 1, in RuntimeError: unable to raise a stack overflow (allocated 4124 bytes on the stack, 1 recursive calls) -- components: Extension Modules messages: 341915 nosy: xry111 priority: normal severity: normal status: open title: faulthandler._stack_overflow doesn't work on x86-linux with KPTI enabled type: behavior versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue36856> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24851] infinite loop in faulthandler._stack_overflow
Change by Xi Ruoyao : -- versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue24851> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com