]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
tcp: Fix MD5 signatures for non-linear skbs
authorAdam Langley <agl@imperialviolet.org>
Sat, 19 Jul 2008 07:01:42 +0000 (00:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jul 2008 07:01:42 +0000 (00:01 -0700)
commit49a72dfb8814c2d65bd9f8c9c6daf6395a1ec58d
tree38804d609f21503573bbdd8bb9af38df99275ff5
parent845525a642c1c9e1335c33a274d4273906ee58eb
tcp: Fix MD5 signatures for non-linear skbs

Currently, the MD5 code assumes that the SKBs are linear and, in the case
that they aren't, happily goes off and hashes off the end of the SKB and
into random memory.

Reported by Stephen Hemminger in [1]. Advice thanks to Stephen and Evgeniy
Polyakov. Also includes a couple of missed route_caps from Stephen's patch
in [2].

[1] http://marc.info/?l=linux-netdev&m=121445989106145&w=2
[2] http://marc.info/?l=linux-netdev&m=121459157816964&w=2

Signed-off-by: Adam Langley <agl@imperialviolet.org>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv6/tcp_ipv6.c