aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorOmar Ramadan <omar@blockcast.net>2026-10-04 19:11:59 +0300
committerJakub Kicinski <kuba@kernel.org>2026-10-07 19:04:12 -0700
commit47bb8dfbe1d214d6031fdd7b9215e381d9675f73 (patch)
tree0d9d0868313e4c22dcf73706d54f52be3087fc65 /scripts/Makefile.thinlto
parente1000e: Fix out-of-bounds MMIO access by validating BAR0 size (diff)
amt: mark relay data as a UDP tunnel packet before sending it
amt_send_multicast_data() encapsulates the multicast packet in AMT + UDP + IP headers, but unlike other UDP tunnels it never calls udp_tunnel_handle_offloads(). If tx checksum offload is enabled on the amt device (off by default), GSO packets (e.g. from a UDP_SEGMENT sender) reach amt_dev_xmit() unsegmented. They are then sent with neither skb->encapsulation nor SKB_GSO_UDP_TUNNEL_CSUM set, and the lower device drops them: __udp_gso_segment() fails because csum_start does not match the (outer) transport header. Call udp_tunnel_handle_offloads(skb, true), as other UDP tunnels do. udp_csum is true because udp_tunnel_xmit_skb() is called with nocheck == false. Also reset the mac header of the copy before recording the inner headers. amt_dev_xmit() pulled the Ethernet header without moving mac_header, so inner_mac_header would point 14 bytes before the inner IP header. That makes tnl_hlen negative in __skb_udp_tunnel_segment(). Suggested-by: Eric Dumazet <edumazet@kernel.org> Signed-off-by: Omar Ramadan <omar@blockcast.net> Link: https://patch.msgid.link/20261004161200.27196-2-omar@blockcast.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions