diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-05-10 15:13:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 15:13:17 (GMT) |
commit | 0becae366c9d0b98d3f53849098e76bc8b1ef574 (patch) | |
tree | 909a8c366796ea07aa38db34e1f785a3c4a81412 /Tools | |
parent | 0874a400a86c563cff71847f35674d4e1bcc3957 (diff) | |
download | cpython-0becae366c9d0b98d3f53849098e76bc8b1ef574.zip cpython-0becae366c9d0b98d3f53849098e76bc8b1ef574.tar.gz cpython-0becae366c9d0b98d3f53849098e76bc8b1ef574.tar.bz2 |
[3.13] gh-117657: Fix QSBR race condition (GH-118843) (#118905)
`_Py_qsbr_unregister` is called when the PyThreadState is already
detached, so the access to `tstate->qsbr` isn't safe without locking the
shared mutex. Grab the `struct _qsbr_shared` from the interpreter
instead.
(cherry picked from commit 33d20199af65c741bdc908a968edd8dc179b6974)
Co-authored-by: Alex Turner <alexturner@meta.com>
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/tsan/suppressions_free_threading.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Tools/tsan/suppressions_free_threading.txt b/Tools/tsan/suppressions_free_threading.txt index d5f4cd7..dfa4a1f 100644 --- a/Tools/tsan/suppressions_free_threading.txt +++ b/Tools/tsan/suppressions_free_threading.txt @@ -38,7 +38,6 @@ race_top:_PyParkingLot_Park race_top:_PyType_HasFeature race_top:assign_version_tag race_top:gc_restore_tid -race_top:initialize_new_array race_top:insertdict race_top:lookup_tp_dict race_top:mi_heap_visit_pages |