summaryrefslogtreecommitdiffstats
path: root/lib/lshrdi3.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2018-05-02 13:45:12 +0800
committerDavid S. Miller <davem@davemloft.net>2018-05-02 11:15:33 -0400
commitce402f044e4e432c296f90eaabb8dbe8f3624391 (patch)
treece1cca0cfdfae502a233ad6e9848f7e74a03ef7c /lib/lshrdi3.c
parent46e16d4b956867013e0bbd7f2bad206f4aa55752 (diff)
downloadop-kernel-dev-ce402f044e4e432c296f90eaabb8dbe8f3624391.zip
op-kernel-dev-ce402f044e4e432c296f90eaabb8dbe8f3624391.tar.gz
sctp: fix the issue that the cookie-ack with auth can't get processed
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") 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>
Diffstat (limited to 'lib/lshrdi3.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud