diff options
| author | Antonio Quartulli <antonio@mandelbit.com> | 2026-11-10 12:33:06 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-11-12 10:18:08 -0800 |
| commit | 612b8376e8112a6f9caaedc25fa48ac42e02826d (patch) | |
| tree | 4383137ff9e9f3aa8892db59860a3823256a4b8d /rust/kernel/alloc/kvec/errors.rs | |
| parent | ef42e79a45536c2b0dbf88a461ca67ae1de8c9af (diff) | |
udp_tunnel: don't treat IPv4 sockets bound to an address as wildcard
With IPv6 enabled, sk_saddr_any() checks sk_v6_rcv_saddr also for
AF_INET sockets, where it is always zero. An IPv4 tunnel socket bound to
a specific address (e.g. fou or geneve with "local") ends up in the GRO
lookup fast path, although another socket may bind the same port on a
different address: GRO then hands that socket's packets to the tunnel's
gro_receive.
Check the IPv6 address only for AF_INET6 sockets.
Fixes: a36283e2b683 ("udp_tunnel: create a fastpath GRO lookup.")
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20261110113306.3698438-1-antonio@mandelbit.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
