From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22178606A32A for ; Sun, 29 Nov 2026 13:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=dz5ueU4V Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57C89402B2; Sun, 29 Nov 2026 14:58:37 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTPS id 7DE8C40272 for ; Sun, 29 Nov 2026 14:58:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795960716; x=1827496716; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=LbxJ8zE/7RSbBKHgxa6SasGkgTeY+tqPHUul6o7cNDY=; b=dz5ueU4VsRxTKiDHl4d3g7lD8RXtQW35WUqO3K+E02XylztrpzPEzPfn RZnEUO4QT7re2bIvF7I6/aXe96gDEufK+QpWxcGX4g8Rl8Umtoe54vy8h 2yLivHYGL/IDrEpZZLYHSX0fNnqQgCEUvXEw7gbKxATw81ywY9miSV8SH XioM+T41Yd9UCpvffiPojjYJw3wWlTSZ6aG0YLG2TDxrSqYYCsONAKAJx gnWpFgR8toDPOn/BaZicrPgH2HNdSdKDApnyMhc0c03q/8czJmT/IK3fZ HCg4M3HIP7E0/BEOHjcIdW1kWvv3mR4cArjl2ANcFyoPaZdO4/8oY8KG8 A==; X-CSE-ConnectionGUID: 5rctd3ARSmyPrK7ukIGrsw== X-CSE-MsgGUID: 4KHRZphqRG6aw4/Sqx9eQg== X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4707242" X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="4707242" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 05:58:34 -0800 X-CSE-ConnectionGUID: uXXKE7RaQCaMoeOdlR9nSw== X-CSE-MsgGUID: PrvckOl5R7ag1ZI94P9MZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="12775215" Received: from pae.iind.intel.com (HELO PAE-35.iind.intel.com) ([10.49.105.82]) by orviesa006.jf.intel.com with ESMTP; 29 Nov 2026 05:58:32 -0800 From: Anurag Mandal To: dev@dpdk.org Cc: bruce.richardson@intel.com, vladimir.medvedkin@intel.com, anatoly.burakov@intel.com, Anurag Mandal Subject: [PATCH 0/8] net/ixgbe: fix memory and resource leaks Date: Sun, 29 Nov 2026 13:53:05 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 This patch series fixes memory and resource leaks in the ixgbe PMD. 1. The first patch fixes a regression from 26.07: since the common Tx path frees mbufs during descriptor cleanup, stopping an ixgbe Tx queue that uses a scalar path (full-featured or simple) drops mbufs without freeing them. Repeated port stop/start cycles exhaust the mempool. 2. The other patches fix leaks on error paths and in device lifecycle operations: a. Tx queue structure when the descriptor ring cannot be reserved b. Rx mbufs when a failed runtime queue start is retried c. MAC address arrays on every PF and VF device reset d. VF representor ports, which are never released e. security context when the dynamic mbuf field registration fails f. Rx interrupt eventfds when device start fails g. VF interrupt callback when it is running during close Anurag Mandal (8): net/ixgbe: fix Tx mbuf leak on queue stop net/ixgbe: fix Tx queue leak on ring allocation failure net/ixgbe: fix Rx mbuf leak on queue start failure net/ixgbe: fix MAC address leak on device reset net/ixgbe: fix VF representor port leak net/ixgbe: fix security context leak on init failure net/ixgbe: fix eventfd leak on start failure net/ixgbe: fix VF interrupt callback leak on close drivers/net/intel/ixgbe/ixgbe_ethdev.c | 46 +++++++++++++------ drivers/net/intel/ixgbe/ixgbe_rxtx.c | 34 ++++++++++++-- .../net/intel/ixgbe/ixgbe_vf_representor.c | 5 +- 3 files changed, 67 insertions(+), 18 deletions(-) -- 2.25.1