summaryrefslogtreecommitdiff
path: root/net/nfc
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2019-02-05 20:30:27 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-27 10:06:57 +0100
commita1f11de42378ef4c9fab701f6f2ff21b266a5c87 (patch)
treefc5559a213acd0f82398395819db4ef9ad7c4c9a /net/nfc
parentefbc76008c119f20faca5bc478b3c227b801c8c5 (diff)
libceph: handle an empty authorize reply
commit 0fd3fd0a9bb0b02b6435bb7070e9f7b82a23f068 upstream. The authorize reply can be empty, for example when the ticket used to build the authorizer is too old and TAG_BADAUTHORIZER is returned from the service. Calling ->verify_authorizer_reply() results in an attempt to decrypt and validate (somewhat) random data in au->buf (most likely the signature block from calc_signature()), which fails and ends up in con_fault_finish() with !con->auth_retry. The ticket isn't invalidated and the connection is retried again and again until a new ticket is obtained from the monitor: libceph: osd2 192.168.122.1:6809 bad authorize reply libceph: osd2 192.168.122.1:6809 bad authorize reply libceph: osd2 192.168.122.1:6809 bad authorize reply libceph: osd2 192.168.122.1:6809 bad authorize reply Let TAG_BADAUTHORIZER handler kick in and increment con->auth_retry. Cc: stable@vger.kernel.org Fixes: 5c056fdc5b47 ("libceph: verify authorize reply on connect") Link: https://tracker.ceph.com/issues/20164 Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Sage Weil <sage@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/nfc')
0 files changed, 0 insertions, 0 deletions