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

osd: fix null pointer access and race condition #6916

Merged
merged 1 commit into from Jan 3, 2016

Conversation

xiexingguo
Copy link
Member

We are risking of accessing a null osdmap pointer when we failed to handle an osdmap message due to network error.
Also, it is not safe to change failure_pending without protection of hearbeat_lock.
Fixes:#14072
Signed-off-by: xie xingguo xie.xingguo@zte.com.cn

We are risking of accessing a null osdmap pointer when we failed to handle an osdmap message due to network error.
Also, it is not safe to change failure_pending without protection of hearbeat_lock.

Fixes: ceph#14072
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@xiexingguo
Copy link
Member Author

@tchaikov Ping~~

@tchaikov
Copy link
Contributor

lgtm with qa run.

@xiexingguo xiexingguo mentioned this pull request Dec 22, 2015
liewegas added a commit that referenced this pull request Jan 3, 2016
osd: fix null pointer access and race condition

Reviewed-by: Kefu Chai <kchai@redhat.com>
@liewegas liewegas merged commit 1cdb2a6 into ceph:master Jan 3, 2016
@xiexingguo xiexingguo deleted the xxg-wip-14072 branch January 4, 2016 00:51
@ghost ghost changed the title OSD: fix null pointer access and race condition osd: fix null pointer access and race condition Feb 10, 2016
@dzafman dzafman mentioned this pull request May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants