From patchwork Wed Sep 1 17:14:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bodong Wang X-Patchwork-Id: 1523331 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H09fN4HS4z9sX3; Thu, 2 Sep 2021 03:14:52 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mLTog-0002lK-Je; Wed, 01 Sep 2021 17:14:26 +0000 Received: from mail-il-dmz.mellanox.com ([193.47.165.129] helo=mellanox.co.il) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mLToe-0002l9-5a for kernel-team@lists.ubuntu.com; Wed, 01 Sep 2021 17:14:24 +0000 Received: from Internal Mail-Server by MTLPINE1 (envelope-from bodong@nvidia.com) with SMTP; 1 Sep 2021 20:14:22 +0300 Received: from sw-mtx-016.mtx.labs.mlnx. (sw-mtx-016.mtx.labs.mlnx [10.9.150.102]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 181HEKOh025421; Wed, 1 Sep 2021 20:14:21 +0300 From: Bodong Wang To: kernel-team@lists.ubuntu.com Subject: [SRU][F:linux-bluefield][PATCH V2 0/9] Fix fragmentation support for TC connection tracking Date: Wed, 1 Sep 2021 12:14:11 -0500 Message-Id: <1630516460-16421-1-git-send-email-bodong@nvidia.com> X-Mailer: git-send-email 1.8.3.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: maord@nvidia.com, majd@nvidia.com MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" When using OVS with tc to offload connection tracking flows, sending udp/icmp fragmented traffic will cause call trace with NULL dereference. This series contains 7 patches from upstream which fix act_ct handling of fragmented packets. And revert a patch which is covered by the 7 upstream patches. V0->V1: Fix backport commit message for patch 1/8 V1->v2: Add new patch from Davide for better backporting. Fix backport commit message for the patches which can't be applied cleanly. Davide Caratti (1): net/sched: act_ct: fix wild memory access when clearing fragments Maor Dickman (1): Revert "net/sched: act_ct: Fix skb double-free in tcf_ct_handle_fragments() error flow" liujian (1): net/sched: The error lable position is corrected in ct_init_module wenxu (6): net/sched: act_ct: fix restore the qdisc_skb_cb after defrag net/sched: act_ct: fix miss set mru for ovs after defrag in act_ct net/sched: fix miss init the mru in qdisc_skb_cb net/sched: act_mirred: refactor the handle of xmit net/sched: sch_frag: add generic packet fragment support. ipv6: add ipv6_fragment hook in ipv6_stub include/linux/skbuff.h | 1 + include/net/act_api.h | 6 ++ include/net/ipv6_stubs.h | 2 + include/net/sch_generic.h | 8 +-- net/core/dev.c | 2 + net/ipv6/addrconf_core.c | 8 +++ net/ipv6/af_inet6.c | 1 + net/openvswitch/flow.c | 1 + net/sched/Makefile | 1 + net/sched/act_api.c | 16 +++++ net/sched/act_ct.c | 33 +++++++--- net/sched/act_mirred.c | 21 +++++-- net/sched/cls_api.c | 1 + net/sched/sch_frag.c | 150 ++++++++++++++++++++++++++++++++++++++++++++++ 14 files changed, 233 insertions(+), 18 deletions(-) create mode 100644 net/sched/sch_frag.c Acked-by: Tim Gardner Acked-by: Stefan Bader