]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bareudp: Pull inner IP header on xmit.
authorGuillaume Nault <gnault@redhat.com>
Wed, 11 Sep 2024 09:21:05 +0000 (11:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:47 +0000 (15:10 +0200)
commit64ad2aac64c815793061b59485280a040ce5615f
tree2efe8cd1d5ee68f880df0fd9ccca0922024b5753
parentb293c9d814733f3dde5c104e1f56ada450d440d3
bareudp: Pull inner IP header on xmit.

[ Upstream commit c471236b2359e6b27388475dd04fff0a5e2bf922 ]

Both bareudp_xmit_skb() and bareudp6_xmit_skb() read their skb's inner
IP header to get its ECN value (with ip_tunnel_ecn_encap()). Therefore
we need to ensure that the inner IP header is part of the skb's linear
data.

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/267328222f0a11519c6de04c640a4f87a38ea9ed.1726046181.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/bareudp.c