-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-126138: Fix UAF in asyncio.Task when task calls back to user defined cancel
function
#126305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Oh it seems I pulled in my change from #126230 too, don't think it'll cause any issues though. Can remove if needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch Nico! I gave you some suggestions for the comments but feel free to change where the line ends (hard to see where the 80-chars limit lie on GH Web UI).
Misc/NEWS.d/next/Library/2024-11-01-14-31-41.gh-issue-126138.yTniOG.rst
Outdated
Show resolved
Hide resolved
Thanks @Nico-Posada for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…attribute__` (pythonGH-126305) (cherry picked from commit f032f6b) Co-authored-by: Nico-Posada <[email protected]> Co-authored-by: Carol Willing <[email protected]>
…attribute__` (pythonGH-126305) (cherry picked from commit f032f6b) Co-authored-by: Nico-Posada <[email protected]> Co-authored-by: Carol Willing <[email protected]>
GH-126324 is a backport of this pull request to the 3.13 branch. |
GH-126325 is a backport of this pull request to the 3.12 branch. |
…tattribute__` (GH-126305) (#126325) gh-126138: Fix use-after-free in `_asyncio.Task` by evil `__getattribute__` (GH-126305) (cherry picked from commit f032f6b) Co-authored-by: Nico-Posada <[email protected]> Co-authored-by: Carol Willing <[email protected]>
…tattribute__` (GH-126305) (#126324) gh-126138: Fix use-after-free in `_asyncio.Task` by evil `__getattribute__` (GH-126305) (cherry picked from commit f032f6b) Co-authored-by: Nico-Posada <[email protected]> Co-authored-by: Carol Willing <[email protected]>
…attribute__` (python#126305) Co-authored-by: Carol Willing <[email protected]>
…attribute__` (python#126305) Co-authored-by: Carol Willing <[email protected]>
No test cases because of how similar this is to #126120, but can add if needed. Blurb definitely needs some revision too because I'm bad at explaining things sometimes.
__getattribute__
when calling a class'scancel
function intask_step_handle_result_impl
in_asynciomodule.c
#126138