summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2020-11-05 18:48:04 +0100
committerIlya Dryomov <idryomov@gmail.com>2020-12-14 23:21:49 +0100
commitfd1a154cad6c6a16960fa9c2c9c6427da129e461 (patch)
tree089fb02d0f97937e291ecab9c976c423835d73aa /crypto
parent771294fe0724d92157048650f3585e7be606d0f8 (diff)
downloadlinux-fd1a154cad6c6a16960fa9c2c9c6427da129e461.tar.gz
linux-fd1a154cad6c6a16960fa9c2c9c6427da129e461.tar.bz2
linux-fd1a154cad6c6a16960fa9c2c9c6427da129e461.zip
libceph: make sure our addr->port is zero and addr->nonce is non-zero
Our messenger instance addr->port is normally zero -- anything else is nonsensical because as a client we connect to multiple servers and don't listen on any port. However, a user can supply an arbitrary addr:port via ip option and the port is currently preserved. Zero it. Conversely, make sure our addr->nonce is non-zero. A zero nonce is special: in combination with a zero port, it is used to blocklist the entire ip. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions