Skip to content

gh-117657: Fix TSan reported data race on ioctl_works - #120175

Merged
colesbury merged 2 commits into
python:mainfrom
colesbury:gh-117657-set-inheritable
Jun 17, 2024
Merged

colesbury merged 2 commits into
python:mainfrom
colesbury:gh-117657-set-inheritable

Conversation

@colesbury

@colesbury colesbury commented Jun 6, 2024 •

Copy link
Copy Markdown
Contributor

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

I tested functionally that setting ioctl_works to 0 falls back on fcntl() as expected by forcing ioctl_works to 0 and by checking syscalls with strace.

Comment thread Python/fileutils.c Resolved
@colesbury
colesbury merged commit 460cc9e into python:main Jun 17, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@colesbury
colesbury deleted the gh-117657-set-inheritable branch June 17, 2024 17:23
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 17, 2024
…-120175)

(cherry picked from commit 460cc9e)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app

bedevere-app Bot commented Jun 17, 2024

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Jun 17, 2024
colesbury added a commit that referenced this pull request Jun 17, 2024
…) (#120654)

(cherry picked from commit 460cc9e)

Co-authored-by: Sam Gross <colesbury@gmail.com>
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 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

4 participants