]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: apply strict checks when handle addresses 29057/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Tue, 16 Jul 2019 08:53:40 +0000 (16:53 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 17 Jul 2019 12:07:37 +0000 (20:07 +0800)
commitcb371d7d97be4e6b2ca23053bfbabb19d405bd82
treed86eef431f6512c25f370f0c4af3fc258c660238
parent1466c65bfd740032590b9fa7cecb7e4cf39ecc7a
crimson/net: apply strict checks when handle addresses

* Apply strict checks at each step of addresses exchange, make sure we
  fail early when notice inconsistent addresses sent from peer;
* Throw error::bad_peer_address for address validation from peer;
* Stop learning my address before sending it out for peer as identity;
* Fix potential racing when try to learn my address by submit to core 0;

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/net/ProtocolV1.cc
src/crimson/net/ProtocolV2.cc
src/crimson/net/SocketMessenger.cc
src/crimson/net/SocketMessenger.h