diff options
| author | Xin Long <lucien.xin@gmail.com> | 2018-05-02 13:45:12 +0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-05-03 19:07:06 +0200 |
| commit | 2ff4ee8af83e18d87fb64ee0979d9aaa78eac153 (patch) | |
| tree | b616f7ab8e86007bddc1cebccd7e1dc2a397c03c /net/llc | |
| parent | 8cb24bc5a43d1ea821ef19010a34bea03ac3ee2f (diff) | |
sctp: fix the issue that the cookie-ack with auth can't get processed
commit ce402f044e4e432c296f90eaabb8dbe8f3624391 upstream.
When auth is enabled for cookie-ack chunk, in sctp_inq_pop, sctp
processes auth chunk first, then continues to the next chunk in
this packet if chunk_end + chunk_hdr size < skb_tail_pointer().
Otherwise, it will go to the next packet or discard this chunk.
However, it missed the fact that cookie-ack chunk's size is equal
to chunk_hdr size, which couldn't match that check, and thus this
chunk would not get processed.
This patch fixes it by changing the check to chunk_end + chunk_hdr
size <= skb_tail_pointer().
Fixes: 26b87c788100 ("net: sctp: fix remote memory pressure from excessive queueing")
Change-Id: If7cbd0e9128159256e9a596a5c8e8cdaf3a6efb7
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/llc')
0 files changed, 0 insertions, 0 deletions
