aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.cpp
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-09-25 15:16:24 +0000
committerMark Johnston <markj@FreeBSD.org>2026-09-25 16:50:41 +0000
commit79af745f4c29ab3df037fcf0a4b4fb1ea393825f (patch)
tree26fdcd841d944e7735a5bb21b1b1953a59bb301c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.cpp
parentde6ee1fde8bbcc3dde643ae9f2122c8e2499fe29 (diff)
jail: Fix a race in prison_deref()
If we're killing a jail which has some user refs pending, then we would first drop our ref and then kill all processes in the prison. However, it's possible for the prison to be freed before we finish that operation, generally if the processes exit on their own before prison_proc_iterate() returns. Thus, defer the release of the prison refcount until after we've killed all procs. Reviewed by: jamie MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59984
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions