From 049058fe384f7610ad3b8cf9d3e014e6bf6068b4 Mon Sep 17 00:00:00 2001 From: Stephen Suryaputra Date: Thu, 27 Jan 2022 18:49:14 +0800 Subject: [PATCH] vrf: Reset IPCB/IP6CB when processing outbound pkts in vrf dev xmit stable inclusion from linux-4.19.220 commit 3d50e0b57cf4fffd6216629f45a2bf4946c65f56 -------------------------------- commit ee201011c1e1563c114a55c86eb164b236f18e84 upstream. IPCB/IP6CB need to be initialized when processing outbound v4 or v6 pkts in the codepath of vrf device xmit function so that leftover garbage doesn't cause futher code that uses the CB to incorrectly process the pkt. One occasion of the issue might occur when MPLS route uses the vrf device as the outgoing device such as when the route is added using "ip -f mpls route add