Uh oh!
There was an error while loading. Please reload this page.
gh-126138: Fix UAF in asyncio.Task when task calls back to user defined cancel function - #126305
Conversation
Nico-Posada
commented
Nov 1, 2024
Oh it seems I pulled in my change from #126230 too, don't think it'll cause any issues though. Can remove if needed. |
picnixz
left a comment
There was a problem hiding this comment.
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).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 <102486290+Nico-Posada@users.noreply.github.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
…attribute__` (pythonGH-126305) (cherry picked from commit f032f6b) Co-authored-by: Nico-Posada <102486290+Nico-Posada@users.noreply.github.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
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 <102486290+Nico-Posada@users.noreply.github.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
…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 <102486290+Nico-Posada@users.noreply.github.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
…attribute__` (python#126305) Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
…attribute__` (python#126305) Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
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'scancelfunction intask_step_handle_result_implin_asynciomodule.c#126138