diff options
| author | Hungyu Lin <dennylin0707@gmail.com> | 2026-11-23 03:40:47 +0000 |
|---|---|---|
| committer | Willem de Bruijn <willemb@google.com> | 2026-11-25 21:10:35 -0500 |
| commit | ef3e21c61baa74e39a49b75318bd4541562ec43f (patch) | |
| tree | 01cdac3dd99c4e1bc40a81443861203291c04848 /tools/perf/scripts | |
| parent | e50436deae925d1b95b01936e2499428c4782a6a (diff) | |
net/tcp-ao: fix reset key lookup for IPv4 segments on IPv6 listeners
tcp_ao_prepare_reset() looks up the key for a reset that is sent on
behalf of a listener by the address of the peer. It takes that address
from the IPv6 header whenever the listener is an AF_INET6 socket, also
when the segment is an IPv4 one that arrived on a dual-stack listener.
The address is then read from the middle of the IPv4 header, the key of
the peer is not found and the reset is not sent.
The v4-mapped check that follows does not help: it looks at
sk->sk_v6_daddr, which is the unspecified address for a listener, and
it runs after the address has been picked.
Take the family and the address from the protocol of the segment
instead of the family of the socket.
Fixes: 06b22ef29591 ("net/tcp: Wire TCP-AO to request sockets")
Cc: stable@vger.kernel.org
Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Acked-by: Dmitry Safonov <0x7f454c46@gmail.com>
Link: https://patch.msgid.link/20261123034047.56745-1-dennylin0707@gmail.com
Signed-off-by: Willem de Bruijn <willemb@google.com>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
