Skip to content
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

gh-120198: Fix crash when two thread edit __class__ #120195

Merged
merged 12 commits into from
Jun 11, 2024

Conversation

Fidget-Spinner
Copy link
Member

@Fidget-Spinner Fidget-Spinner commented Jun 7, 2024

@vstinner
Copy link
Member

vstinner commented Jun 7, 2024

[FOR CI, DO NOT MERGE]

I marked your PR as a draft in this case.

@Fidget-Spinner Fidget-Spinner changed the title [FOR CI, DO NOT MERGE] gh-120198: Fix crash from concurrent setting of __class__ Jun 7, 2024
@Fidget-Spinner Fidget-Spinner changed the title gh-120198: Fix crash from concurrent setting of __class__ [FOR TESTING ONLY] crasher Jun 7, 2024
Co-Authored-By: Nadeshiko Manju <[email protected]>
@Fidget-Spinner Fidget-Spinner changed the title [FOR TESTING ONLY] crasher gh-120198: Fix crash when two thread edit __class__ Jun 10, 2024
@Fidget-Spinner Fidget-Spinner marked this pull request as ready for review June 10, 2024 15:07
@zooba zooba added the needs backport to 3.12 bug and security fixes label Jun 10, 2024
Copy link
Contributor

@Zheaoli Zheaoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

BTW should we backport this to 3.11?

@zooba
Copy link
Member

zooba commented Jun 10, 2024

If we go to 3.11 then we go to 3.8 (unless the audit event was added later). Technically we should, because crashers are technically eligible for security fix releases, but this one really requires deliberate exploitation and it's very unlikely to be achievable without arbitrary code. And the test is likely to destabilise earlier releases more than the fix is worth.

If someone wants to prepare a PR against 3.11 without the test, we can let the RMs decide.

@zooba zooba merged commit 203565b into python:main Jun 11, 2024
36 checks passed
@miss-islington-app
Copy link

Thanks @Fidget-Spinner for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 11, 2024
…dit hook active (pythonGH-120195)

(cherry picked from commit 203565b)

Co-authored-by: Ken Jin <[email protected]>
@miss-islington-app
Copy link

Sorry, @Fidget-Spinner and @zooba, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 203565b2f9c74656ba519780049b46d4e5afcba1 3.12

@bedevere-app
Copy link

bedevere-app bot commented Jun 11, 2024

GH-120366 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 11, 2024
@zooba zooba assigned Fidget-Spinner and unassigned zooba Jun 11, 2024
@zooba
Copy link
Member

zooba commented Jun 11, 2024

@Fidget-Spinner Could you handle the backport, please?

zooba pushed a commit that referenced this pull request Jun 11, 2024
…ok active (GH-120195)

(cherry picked from commit 203565b)

Co-authored-by: Ken Jin <[email protected]>
@Fidget-Spinner
Copy link
Member Author

@zooba sure!

@Fidget-Spinner
Copy link
Member Author

@Zheaoli so sorry I had planned to add you as co-author when merging but was asleep when this merged.

@bedevere-app
Copy link

bedevere-app bot commented Jun 12, 2024

GH-120393 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jun 12, 2024
@Fidget-Spinner Fidget-Spinner deleted the hello branch June 12, 2024 11:32
zooba pushed a commit that referenced this pull request Jun 12, 2024
@Zheaoli
Copy link
Contributor

Zheaoli commented Jun 12, 2024

@Fidget-Spinner No problem sir! Thanks very much. I'm so happy to see we solve this issue

mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants