diff options
author | Marcelo Ricardo Leitner <[email protected]> | 2015-06-11 14:49:46 -0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-06-12 14:18:20 -0700 |
commit | ae36806a622aea5ac79f279cfccc82144967b6e7 (patch) | |
tree | 7e3cfacb5c43d0394875be466098c387e33357ba /net/tipc/node.c | |
parent | fb05e7a89f500cfc06ae277bdc911b281928995d (diff) |
sctp: allow authenticating DATA chunks that are bundled with COOKIE_ECHO
Currently, we can ask to authenticate DATA chunks and we can send DATA
chunks on the same packet as COOKIE_ECHO, but if you try to combine
both, the DATA chunk will be sent unauthenticated and peer won't accept
it, leading to a communication failure.
This happens because even though the data was queued after it was
requested to authenticate DATA chunks, it was also queued before we
could know that remote peer can handle authenticating, so
sctp_auth_send_cid() returns false.
The fix is whenever we set up an active key, re-check send queue for
chunks that now should be authenticated. As a result, such packet will
now contain COOKIE_ECHO + AUTH + DATA chunks, in that order.
Reported-by: Liu Wei <[email protected]>
Signed-off-by: Marcelo Ricardo Leitner <[email protected]>
Acked-by: Neil Horman <[email protected]>
Acked-by: Vlad Yasevich <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions