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

octopus: msgr/async: fix unsafe access in unregister_conn() #43325

Merged
merged 1 commit into from
Oct 26, 2021
Merged

octopus: msgr/async: fix unsafe access in unregister_conn() #43325

merged 1 commit into from
Oct 26, 2021

Conversation

gerald-yang
Copy link

backport tracker: https://tracker.ceph.com/issues/50482

parent tracker: https://tracker.ceph.com/issues/49237

This backport PR should be merged after #43310, please refer to backport tracker

We were looking at anon_conns and accepting_conns without holding
the lock (deleted_lock is not sufficient).

Drop this test, and move the decrements:

- inc when we add to conns or anon_conns (no changes there)
- dec when we remove from deleted_conns (several different paths!)

Fixes: https://tracker.ceph.com/issues/49237
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit d51d80b)
Signed-off-by: Gerald Yang <gerald.yang.tw@gmail.com>
@github-actions github-actions bot added this to the octopus milestone Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants