From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18109C433F5 for ; Mon, 6 Dec 2021 15:26:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350602AbhLFP3n (ORCPT ); Mon, 6 Dec 2021 10:29:43 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:59920 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386343AbhLFP00 (ORCPT ); Mon, 6 Dec 2021 10:26:26 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 72E20B810F1; Mon, 6 Dec 2021 15:22:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDAC2C341C2; Mon, 6 Dec 2021 15:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1638804175; bh=o2rDX7IKR8CAJvmX8dSpIL7IvFuBa1b4vHoLgUGXj6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ncMiowxYchZToEicZS4mTEV711xgLh+zmHonUYz7tUXPGvwJ55Fgl+8bWN8h0ovJc 2oC1mHsdoDICMbFKz4MkaXeixy7P0L8+WR6kXYCcxqzvLc/JZycwBS+ab4vWQU1FaI JLpF7fnFHVkePt9IPy0xKUWaI/AkvHcw72Fui1nM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Suryaputra , David Ahern , Jakub Kicinski Subject: [PATCH 5.15 053/207] vrf: Reset IPCB/IP6CB when processing outbound pkts in vrf dev xmit Date: Mon, 6 Dec 2021 15:55:07 +0100 Message-Id: <20211206145612.071081377@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211206145610.172203682@linuxfoundation.org> References: <20211206145610.172203682@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Stephen Suryaputra 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