Skip to content
Commit 05eaade2 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by David S. Miller
Browse files

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: default avatarGilad Ben-Yossef <gilad@codefidence.com>
Tested-by: default avatar <Valdis.Kletnieks@vt.edu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8d044fe6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment