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 D4740606A336 for ; Tue, 1 Dec 2026 11:01:21 +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=N0hzgp3e Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90203402E1; Tue, 1 Dec 2026 12:01:20 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTPS id 547A640289 for ; Tue, 1 Dec 2026 12:01:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796122879; x=1827658879; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hKEI7RUhAFJlaeSYAl2hmMHHaxvJK+W4zyXfuRbEqCk=; b=N0hzgp3e+NxsaSy5Mg1VJ/y95vqKKSqWqymN7pJuLqkMyiNGS3yGFs/p DOfdPL0NrTAPOkXQ7orcqiD/GMdmSxpEtmOXb12QthEO1tA5HJGa+IVs0 hkYlyUcZ147DzpGDM2fTvvYwC+g+rTw/TJCoeBeH8NEuSpla5SHiIymhq sLzfmv++pgs5iEmDarWrfUqplxErL5qXHpDtroJgs5TIVixCVfiSBS1w9 jeOcRW4ub8yCxwSDxdM+i5yIhFfCoEmE2Cy0bpV90/r5h8T9n7I02MuwT WMCQZNwy27OQMZVt0dkhqdiu0Yv+Qb6B5kaIHj18e5erdmzD9S/3kIgHq A==; X-CSE-ConnectionGUID: SX0m18zTRx610mepX2WtJw== X-CSE-MsgGUID: xsDwsC1BSC+GGnBbQDWlCg== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4839253" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="4839253" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 03:01:18 -0800 X-CSE-ConnectionGUID: 8FUJmQd1RqSAeJP2OGRt5w== X-CSE-MsgGUID: w0LwN1q7StOdQQuFaP6WVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="13055218" Received: from pae.iind.intel.com (HELO PAE-35.iind.intel.com) ([10.49.105.82]) by orviesa004.jf.intel.com with ESMTP; 01 Dec 2026 03:01:16 -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 v2 0/9] net/ixgbe: fix memory and resource leaks Date: Tue, 1 Dec 2026 10:55:11 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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 V2-changes: - patch 5: fail PCI removal if a representor cannot be released - patch 8: new, report the VF reset event only once the interrupt handler is done with the device - patch 9 (patch 8 in v1): mention closing the port from the reset callback in the commit message 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. Not a leak fix but it makes the VF interrupt handler stop using the device once it has reported a PF reset, so that the port can be closed from the event callback. h. VF interrupt callback when it is running during close Anurag Mandal (9): 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 use after free in interrupt handler net/ixgbe: fix VF interrupt callback leak on close drivers/net/intel/ixgbe/ixgbe_ethdev.c | 75 +++++++++++++------ drivers/net/intel/ixgbe/ixgbe_rxtx.c | 34 ++++++++- .../net/intel/ixgbe/ixgbe_vf_representor.c | 5 +- 3 files changed, 88 insertions(+), 26 deletions(-) -- 2.25.1