]> www.infradead.org Git - users/dwmw2/linux.git/commit
bareudp: Pull inner IP header in bareudp_udp_encap_recv().
authorGuillaume Nault <gnault@redhat.com>
Wed, 11 Sep 2024 09:20:58 +0000 (11:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Sep 2024 03:30:15 +0000 (20:30 -0700)
commit45fa29c85117170b0508790f878b13ec6593c888
tree1b73c1137695a9d5da5ead2176aef124918f7c44
parent5abfdfd402699ce7c1e81d1a25bc37f60f7741ff
bareudp: Pull inner IP header in bareudp_udp_encap_recv().

Bareudp reads the inner IP header to get the ECN value. Therefore, it
needs to ensure that it's part of the skb's linear data.

This is similar to the vxlan and geneve fixes for that same problem:
  * commit f7789419137b ("vxlan: Pull inner IP header in vxlan_rcv().")
  * commit 1ca1ba465e55 ("geneve: make sure to pull inner header in
    geneve_rx()")

Fixes: 571912c69f0e ("net: UDP tunnel encapsulation module for tunnelling different protocols like MPLS, IP, NSH etc.")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/5205940067c40218a70fbb888080466b2fc288db.1726046181.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bareudp.c