]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: Fix sorting of SACK blocks.
authorBaruch Even <baruch@ev-en.org>
Thu, 25 Jan 2007 21:35:06 +0000 (13:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jan 2007 21:35:06 +0000 (13:35 -0800)
commit40db531d158a8a9a372699b9529873ef8c1a9ba6
treecff3542f6b8b1efa1bbea61ca777d3b34d6e540b
parent8f9224ec56417c035d30e0de46eedee7d7bd459b
[TCP]: Fix sorting of SACK blocks.

The sorting of SACK blocks actually munges them rather than sort,
causing the TCP stack to ignore some SACK information and breaking the
assumption of ordered SACK blocks after sorting.

The sort takes the data from a second buffer which isn't moved causing
subsequent data moves to occur from the wrong location. The fix is to
use a temporary buffer as a normal sort does.

Signed-off-By: Baruch Even <baruch@ev-en.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c