diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-04-15 17:00:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-18 20:39:50 +0300 |
commit | 6c80138773efff75ee9598b4ebcd7aa0e3a5a2a3 (patch) | |
tree | 0f59585517a6666b758588f06c413f12b75c1f89 /.cocciconfig | |
parent | d0f025e611581169c81e3c0fc44b5133d12748dd (diff) |
sctp: process duplicated strreset asoc request correctly
This patch is to fix the replay attack issue for strreset asoc requests.
When a duplicated strreset asoc request is received, reply it with bad
seqno if it's seqno < asoc->strreset_inseq - 2, and reply it with the
result saved in asoc if it's seqno >= asoc->strreset_inseq - 2.
But note that if the result saved in asoc is performed, the sender's next
tsn and receiver's next tsn for the response chunk should be set. It's
safe to get them from asoc. Because if it's changed, which means the peer
has received the response already, the new response with wrong tsn won't
be accepted by peer.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions