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

race condition with exitCh in (*UtilityVM).Start() #1562

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

helsaawy
Copy link
Contributor

(*UtilityVM).acceptAndClose() waits on (*UtilityVM).exitCh, but exitCh is not created until after the goroutines with the acceptAndClose calls are launched, causing a potential race condition.

Signed-off-by: Hamza El-Saawy hamzaelsaawy@microsoft.com

`(*UtilityVM).acceptAndClose()` waits on `(*UtilityVM).exitCh`, but
`exitCh` is not created until after the goroutines with the
`acceptAndClose` calls are launched, causing a potential race
condition.

Functional and cri-containerd tests pass.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
@helsaawy helsaawy requested a review from a team as a code owner November 14, 2022 20:34
@helsaawy helsaawy merged commit acd87d5 into microsoft:main Nov 14, 2022
@helsaawy helsaawy deleted the uvm-start-race branch November 14, 2022 22:22
anmaxvl pushed a commit that referenced this pull request Feb 7, 2023
Updating the ADO repo from github hcsshim

Last commit - f83cc58

Related work items: #1536, #1562, #1563, #1564, #1565
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
`(*UtilityVM).acceptAndClose()` waits on `(*UtilityVM).exitCh`, but
`exitCh` is not created until after the goroutines with the
`acceptAndClose` calls are launched, causing a potential race
condition.

Functional and cri-containerd tests pass.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants