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

Lock to OS thread when Pdeathsig is set #86

Merged
merged 1 commit into from
Oct 7, 2022

Conversation

aaronlehmann
Copy link
Contributor

See golang/go#27505 for context. Pdeathsig
isn't safe to set without locking to the current OS thread, because
otherwise thread termination will send the signal, which isn't the
desired behavior.

I discovered this while troubleshooting a problem that turned out to be
unrelated, but I think it's necessary for correctness.

cc @coryb

@codecov-commenter
Copy link

codecov-commenter commented Jul 20, 2022

Codecov Report

Base: 21.52% // Head: 20.27% // Decreases project coverage by -1.25% ⚠️

Coverage data is based on head (51f9c48) compared to base (2e979ca).
Patch coverage: 10.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #86      +/-   ##
==========================================
- Coverage   21.52%   20.27%   -1.26%     
==========================================
  Files           7        7              
  Lines         683      735      +52     
==========================================
+ Hits          147      149       +2     
- Misses        499      545      +46     
- Partials       37       41       +4     
Impacted Files Coverage Δ
monitor.go 40.90% <0.00%> (-49.10%) ⬇️
runc.go 20.24% <16.66%> (-0.95%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

estesp
estesp previously approved these changes Jul 21, 2022
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@aaronlehmann
Copy link
Contributor Author

This has been open for quite awhile. Is there anyone specific I can ping to review it?

Copy link
Member

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

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

Our apologies for the delay. Thanks for opening this; I've left a couple suggestions for changes.

runc.go Outdated Show resolved Hide resolved
runc.go Outdated Show resolved Hide resolved
runc.go Outdated Show resolved Hide resolved
runc.go Outdated Show resolved Hide resolved
See golang/go#27505 for context. Pdeathsig
isn't safe to set without locking to the current OS thread, because
otherwise thread termination will send the signal, which isn't the
desired behavior.

I discovered this while troubleshooting a problem that turned out to be
unrelated, but I think it's necessary for correctness.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
@samuelkarp samuelkarp dismissed estesp’s stale review September 9, 2022 05:47

Changes since previous approval, sorry @estesp!

@aaronlehmann
Copy link
Contributor Author

Not in a huge rush for this one, but would just like to get it merged so we can close the book on it. Is there anything else you need from me to push it forward?

@samuelkarp samuelkarp merged commit f5eef54 into containerd:main Oct 7, 2022
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.

5 participants