Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Eric Dumazet
Tue, 17 Nov 2026 08:45
Re: [PATCH v1 net 3/8] tcp: Don't bypass GTSM check for reqsk.
Author: Eric Dumazet
Date: Tue, 17 Nov 2026 08:45
Date: Tue, 17 Nov 2026 08:45
38 lines
10273 bytes
10273 bytes
Le mar. 17 nov. 2026 ร 06:35, Kuniyuki Iwashima <kuniyu@google.com> a รฉcrit :
>
> Since cited commits moved up TCP_NEW_SYN_RECV handling in
> tcp_v4_err() and tcp_v6_err(), ICMP messages bypass IP_MINTTL
> and IPV6_MINHOPCOUNT checks.
>
> The minimal repro is:
>
> --ip_version=ipv6
> 0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
> +0 setsockopt(3, SOL_IPV6, 73, [255], 4) = 0
> +0 bind(3, ..., ...) = 0
> +0 listen(3, 10) = 0
> +0 < (ttl 255) S 0:0(0) win 65535 <mss 1440,nop,nop,sackOK>
> +0 > S. 0:0(0) ack 1 <mss 1440,nop,nop,sackOK>
> +0 < (ttl 1) icmp unreachable port_unreachable [0:0(0)]
> +0 < (ttl 255) . 1:1(0) ack 1 win 65535
> +0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
> +0 accept(3, ..., ...) = 4
> +0 %{assert tcpi_state == TCP_ESTABLISHED}%
>
> Let's restore IP_MINTTL/IPV6_MINHOPCOUNT for reqsk.
>
> Fixes: 26e3736090e1 ("ipv4: tcp: handle ICMP messages on TCP_NEW_SYN_RECV request sockets")
> Fixes: 2215089b2244 ("ipv6: tcp: handle ICMP messages on TCP_NEW_SYN_RECV request sockets")
> Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
> ---
Note the same bypass exists in the receive path : in tcp_v4_rcv() and
tcp_v6_rcv(), the TCP_NEW_SYN_RECV branch calls tcp_check_req() /
tcp_child_process() and returns before reaching the min_ttl /
min_hopcount check done after the process: label.
Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads