mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
ip_tunnel: Set network header properly for IP_ECN_decapsulate()
[ Upstream commite96f2e7c43] In ip_tunnel_rcv(), set skb->network_header to inner IP header before IP_ECN_decapsulate(). Without the fix, IP_ECN_decapsulate() takes outer IP header as inner IP header, possibly causing error messages or packet drops. Note that this skb_reset_network_header() call was in this spot when the original feature for checking consistency of ECN bits through tunnels was added ineccc1bb8d4("tunnel: drop packet if ECN present with not-ECT"). It was only removed from this spot in3d7b46cd20("ip_tunnel: push generic protocol handling to ip_tunnel module."). Fixes:3d7b46cd20("ip_tunnel: push generic protocol handling to ip_tunnel module.") Reported-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: Ying Cai <ycai@google.com> Acked-by: Neal Cardwell <ncardwell@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
935ec25dfa
commit
22b2efbb5a
1 changed files with 2 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue