From: Gilad Ben-Yossef Date: Thu, 5 Nov 2009 07:21:44 +0000 (-0800) Subject: tcp: Do not call IPv4 specific func in tcp_check_req X-Git-Tag: v2.6.33-rc1~388^2~511 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05eaade2782fb0c90d3034fd7a7d5a16266182bb;p=pandora-kernel.git tcp: Do not call IPv4 specific func in tcp_check_req Calling IPv4 specific inet_csk_route_req in tcp_check_req is a bad idea and crashes machine on IPv6 connections, as reported by Valdis Kletnieks Also, all we are really interested in is the timestamp option in the header, so calling tcp_parse_options() with the "estab" set to false flag is an overkill as it tries to parse half a dozen other TCP options. We know whether timestamp should be enabled or not using data from request_sock. Signed-off-by: Gilad Ben-Yossef Tested-by: Valdis.Kletnieks@vt.edu Signed-off-by: David S. Miller --- Reading git-diff-tree failed