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

kraken: common: monitor creation with IPv6 public network segfaults #14323

Merged
merged 1 commit into from Apr 16, 2017

Conversation

shinobu-x
Copy link
Contributor

sockaddr is only 16 bytes big, so declaring net as sockaddr
and then casting to sockaddr_in6 in case of IPv6 cannot
work.

using sockaddr_storage works for both IPv4 and IPv6, and is
used in other code parts as well.

note that the tests did not find this issue as they declared
the bigger structs and casted the references to (sockaddr *)

Fixes: http://tracker.ceph.com/issues/19371
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit ae2ee3d)
@liewegas liewegas modified the milestone: kraken Apr 4, 2017
@smithfarm smithfarm changed the title kraken: monitor creation with IPv6 public network segfaults kraken: common: monitor creation with IPv6 public network segfaults Apr 7, 2017
@smithfarm
Copy link
Contributor

@tchaikov This passed a rados suite at http://tracker.ceph.com/issues/19009#note-3 with one reproducible failure in rados/objectstore/objectstore.yaml that appears to be bluestore-related.

OK to merge?

@smithfarm smithfarm requested a review from tchaikov April 12, 2017 13:52
@smithfarm
Copy link
Contributor

@tchaikov This passed another rados run at http://tracker.ceph.com/issues/19009#note-12

Waiting for review.

@smithfarm smithfarm merged commit 432bc8b into ceph:kraken Apr 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants