]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp: Apply device TSO segment limit earlier
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 30 Jul 2012 16:11:42 +0000 (16:11 +0000)
committerGuangyu Sun <guangyu.sun@oracle.com>
Mon, 8 Oct 2012 16:59:44 +0000 (09:59 -0700)
commit7dcf6c038a5530cd05ca71ffe2993ff2595e6db3
tree39a804ebb3e33cd1ea533c9daae13e865c96368f
parent068b060bc060bd282ab06e211c9c754d9804d4af
tcp: Apply device TSO segment limit earlier

[ Upstream commit 1485348d2424e1131ea42efc033cbd9366462b01 ]

CVE-2012-3412

Cache the device gso_max_segs in sock::sk_gso_max_segs and use it to
limit the size of TSO skbs.  This avoids the need to fall back to
software GSO for local TCP senders.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
include/net/sock.h
net/core/sock.c
net/ipv4/tcp.c
net/ipv4/tcp_cong.c
net/ipv4/tcp_output.c