Project

General

Profile

Actions

Bug #40114

closed

msg: bad address encoding when CEPH_FEATURE_MSG_ADDR2 enabled

Added by Jeff Layton almost 5 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

On Linux, entity_addr_t::encode just copies the sockaddr as-is into the bufferlist, without fixing up the endianness of sa_family. entity_addr_t::decode copies it out in reverse cloaking the bug when the encoder and decoder are the same endianness.

The family field should be net-endian (as it is for legacy addrs), since there is no way for the other end to know what byte-order we're using.

Fixing this is rather simple, but how to deal with hosts already in the field?


Related issues 1 (0 open1 closed)

Copied to Messengers - Backport #40227: nautilus: msg: bad address encoding when CEPH_FEATURE_MSG_ADDR2 enabledResolvedActions
Actions

Also available in: Atom PDF