]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: fix bug in sequence number validation during connection setup
authorSamuel Jero <sj323707@ohio.edu>
Mon, 27 Feb 2012 01:22:02 +0000 (18:22 -0700)
committerGerrit Renker <gerrit@erg.abdn.ac.uk>
Sat, 3 Mar 2012 16:02:52 +0000 (09:02 -0700)
commit95f5e85628297900bb8e6b6d990d97d393e93a3a
tree689f3a7a46ca00b6610667e33313f339645b229d
parentfa50ffde8d0e2f3dcc22cf42c4c0a584fbfb7416
dccp: fix bug in sequence number validation during connection setup

This fixes a bug in the sequence number validation during the initial handshake.

The code did not treat the initial sequence numbers ISS and ISR as read-only and
did not keep state for GSR and GSS as required by the specification. This causes
problems with retransmissions during the initial handshake, causing the
budding connection to be reset.

This patch now treats ISS/ISR as read-only and tracks GSS/GSR as required.

Signed-off-by: Samuel Jero <sj323707@ohio.edu>
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
include/linux/dccp.h
net/dccp/ipv4.c
net/dccp/ipv6.c
net/dccp/minisocks.c
net/dccp/output.c