From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: stephen@networkplumber.org, hkalra@marvell.com,
Wei Hu <weh@microsoft.com>, Thomas Monjalon <thomas@monjalon.net>
Subject: [PATCH 5/9] net/mana: reset FD in interrupt handle
Date: Wed, 21 Oct 2026 11:23:14 +0200 [thread overview]
Message-ID: <20261021092318.1554295-6-david.marchand@redhat.com> (raw)
In-Reply-To: <20261021092318.1554295-1-david.marchand@redhat.com>
The interrupt handle references the ibverbs async_fd which is owned
by the ibverbs context, not by this driver. Clear the FD reference
before freeing the interrupt handle to avoid a spurious leak warning.
Fixes: d770ee9caed0 ("interrupts: warn on leaked FDs")
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
drivers/net/mana/mana.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/mana/mana.c b/drivers/net/mana/mana.c
index 30b0ce90d6..0ea6d9a54a 100644
--- a/drivers/net/mana/mana.c
+++ b/drivers/net/mana/mana.c
@@ -1796,6 +1796,8 @@ mana_reset_exit(struct mana_priv *priv)
else
DRV_LOG(DEBUG, "%d intr callback(s) removed", ret);
+ /* fd is owned by ibverbs, only clear reference here. */
+ rte_intr_fd_set(priv->intr_handle, -1);
rte_intr_instance_free(priv->intr_handle);
priv->intr_handle = NULL;
}
@@ -1915,6 +1917,8 @@ mana_intr_uninstall(struct mana_priv *priv)
return ret;
}
+ /* fd is owned by ibverbs, only clear reference here. */
+ rte_intr_fd_set(priv->intr_handle, -1);
rte_intr_instance_free(priv->intr_handle);
priv->intr_handle = NULL;
--
2.54.0
next prev parent reply other threads:[~2026-10-21 9:24 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-21 9:23 [PATCH 0/9] Interrupt fixes for leaks and warnings David Marchand
2026-10-21 9:23 ` [PATCH 1/9] eal/linux: fix FD leak in alarm subsystem David Marchand
2026-10-21 9:23 ` [PATCH 2/9] eal/linux: reset FD in interrupt handle for uevent David Marchand
2026-10-21 9:23 ` [PATCH 3/9] interrupts: do not duplicate interrupt handles David Marchand
2026-10-21 9:23 ` [PATCH 4/9] bus/pci: reset VFIO device FD after release David Marchand
2026-10-21 9:23 ` David Marchand [this message]
2026-10-21 9:23 ` [PATCH 6/9] net/memif: fix some interrupt FD leaks David Marchand
2026-10-21 9:23 ` [PATCH 7/9] net/memif: reset FD in interrupt handle David Marchand
2026-10-21 9:23 ` [PATCH 8/9] net/sxe2: " David Marchand
2026-10-21 9:23 ` [PATCH 9/9] raw/ifpga: " David Marchand
2026-10-24 13:21 ` [PATCH v2 00/12] Interrupt fixes for leaks and warnings David Marchand
2026-10-24 13:21 ` [PATCH v2 01/12] eal/linux: fix FD leak in alarm subsystem David Marchand
2026-10-24 13:21 ` [PATCH v2 02/12] eal/linux: reset FD in interrupt handle for uevent David Marchand
2026-10-24 14:07 ` Burakov, Anatoly
2026-10-24 13:21 ` [PATCH v2 03/12] interrupts: do not duplicate interrupt handles David Marchand
2026-10-24 14:11 ` Burakov, Anatoly
2026-10-26 15:39 ` David Marchand
2026-10-24 13:21 ` [PATCH v2 04/12] bus/pci: reset VFIO device FD after release David Marchand
2026-10-24 14:11 ` Burakov, Anatoly
2026-10-24 13:21 ` [PATCH v2 05/12] net/mana: reset FD in interrupt handle David Marchand
2026-10-24 13:21 ` [PATCH v2 06/12] net/memif: fix some interrupt FD leaks David Marchand
2026-10-24 13:21 ` [PATCH v2 07/12] net/memif: reset FD in interrupt handle David Marchand
2026-10-24 13:21 ` [PATCH v2 08/12] net/sxe2: " David Marchand
2026-10-24 13:21 ` [PATCH v2 09/12] raw/ifpga: " David Marchand
2026-10-24 13:21 ` [PATCH v2 10/12] eal/linux: fix closing of event FDs not owned by EAL David Marchand
2026-10-24 13:21 ` [PATCH v2 11/12] eal/linux: fix eventfd leaks when enabling interrupts David Marchand
2026-10-24 13:21 ` [PATCH v2 12/12] interrupts: warn on leaked event FDs David Marchand
2026-10-27 17:16 ` [PATCH v2 00/12] Interrupt fixes for leaks and warnings David Marchand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261021092318.1554295-6-david.marchand@redhat.com \
--to=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=hkalra@marvell.com \
--cc=stephen@networkplumber.org \
--cc=thomas@monjalon.net \
--cc=weh@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox