🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #1008

Re: [PATCH] net: atlantic: only free the PTP IRQ after a successful request

#1008
From: Runyu Xiao
Date: Fri, 09 Oct 2026 01:28
23 lines
7006 bytes
Hi Simon,

> Whether the issue was actually triggered, or is only theoretical
> (e.g. found by code inspection). If it was triggered please include
> the symptoms, like the stack trace or error messages.
>
> What hardware the change was tested on. For driver fixes please
> mention the device (and if relevant firmware version) used for
> testing, or say that the change was not tested on real hardware.

The issue was identified by code inspection and was not reproduced at
runtime. In legacy INTx mode, aq_ptp_irq_alloc() skips request_irq() and
returns -EINVAL. The aq_ndev_open() error path then calls aq_nic_stop(),
which invokes aq_ptp_irq_free(); before this change, that path could call
free_irq() without a matching request_irq(). The expected IRQ-core warning
is "Trying to free already-free IRQ", but I did not capture a runtime
warning or stack trace.

I did not test this on real Aquantia Atlantic hardware or firmware.

Thanks,
Runyu
Technical Details
Message-ID: <20261009012900.1098973-1-runyu.xiao@seu.edu.cn>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343384-linux-kernel-netdev=dewy.ru
References: <20260930074023.2943213-1-runyu.xiao@seu.edu.cn> <179075425701.31693.17457011245131119734@kernel.org> <20261006165557.GO83879@horms.kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343384-linux-kernel-netdev=dewy.ru
From: runyu.xiao@seu.edu.cn (Runyu Xiao)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: atlantic: only free the PTP IRQ after a successful request
Date: Fri,  9 Oct 2026 09:28:59 +0800
Organization: Usenet Network
Message-ID: <20261009012900.1098973-1-runyu.xiao@seu.edu.cn>
References: <20260930074023.2943213-1-runyu.xiao@seu.edu.cn> <179075425701.31693.17457011245131119734@kernel.org> <20261006165557.GO83879@horms.kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1010896"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:o7rt1SCsquGe+5ulO68Ue3DOt3M= sha256:jLts2Q6pjcPHlCRcazKfYOx3EDPbpRqOPgZzqnXLHNs=
	sha1:ZZgFJBwRI1yHCjc7DqEN4x8DHew= sha256:xFiEZ8OnpQchHYffXAyvfaqWy4hoHRd/94HbQUsWVH8=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id AC49D10F58D; Fri,  9 Oct 2026 04:30:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.751
X-Spam-Status: No, score=-0.751 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=seu.edu.cn
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Gyg4MQDm8CKT;
	Fri,  9 Oct 2026 04:30:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-343384-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=seu.edu.cn
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 049AF10E9C2; Fri,  9 Oct 2026 04:30:21 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 4AE4847D93; Fri,  9 Oct 2026 01:29:25 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 060D6CA6F;
	Fri,  9 Oct 2026 01:29:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=seu.edu.cn header.i=@seu.edu.cn header.b="PIvbZRxs"
X-Received: from mail-m155101.qiye.163.com (mail-m155101.qiye.163.com [101.71.155.101])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0804D25228D;
	Fri,  9 Oct 2026 01:29:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=101.71.155.101
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791509363; cv=none; b=VD0SiuKmXIhrjSfHUSgFVa8xqxD8VP/d3W6hsLJ3FIAXedo61ytFmwCczuKOTjepWaBb28ccQU2lsP0um3JH/ub8xFPjjRbEHsstH1C5WL2GdHPCKj/kOGBgbgj5tsUUmOxdEuV7vtIGy/D3riE2NI3jfT1AqphOUD7gP+8O/ps=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791509363; c=relaxed/simple;
	bh=sEHnVK+cGI77dBADCJ0be5zStEW7wq7MOe8uU18EpjA=;
	h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:
	 MIME-Version; b=q4CRsyTjFwfGCvGqeQHreGbNCqQXFT3HxTGblJCDkyDJ93a5+Akh0B6WmZNvw+HTA51eKYAWCYVnlJUfSE+luFPP2+rJX+zIbe8sPCBdeCxyrT8Fz2o8fqy2vpxHQe/RoIKPRi2T7so2JJ2rtWyDlIxqUrc+Ix8+YrQlkkF4eHU=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=seu.edu.cn; spf=pass smtp.mailfrom=seu.edu.cn; dkim=pass (1024-bit key) header.d=seu.edu.cn header.i=@seu.edu.cn header.b=PIvbZRxs; arc=none smtp.client-ip=101.71.155.101
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=seu.edu.cn
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=seu.edu.cn
X-Received: from PC-202605011814.localdomain (unknown [58.241.16.34])
	by smtp.qiye.163.com (Hmail) with ESMTP id 505d38da4;
	Fri, 9 Oct 2026 09:29:07 +0800 (GMT+08:00)
X-Cc: netdev-bot+sinfo@kernel.org,
	Sukhdeep Singh <sukhdeeps@marvell.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Richard Cochran <richardcochran@gmail.com>,
	netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	stable@vger.kernel.org,
	Jianhao Xu <jianhao.xu@seu.edu.cn>
X-Mailer: git-send-email 2.34.1
X-In-Reply-To: <20261006165557.GO83879@horms.kernel.org>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-HM-Tid: 0aa11e473a7c03a1kunm611c7a0b42a27a
X-HM-MType: 10
X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly
	tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVkaHktMVkxDHUwaHR1OHUlMHVYeHw
	5VEwETFhoSFyQUDg9ZV1kYEgtZQVlOQ1VJT0pVSk1VSE9ZV1kWGg8SFR0UWUFZT0tIVUpLSUhOQ0
	NVSktLVUtZBg++
X-DKIM-Signature: a=rsa-sha256;
	b=PIvbZRxsKHbGjKHSx4hyng7e9bSBxSJFujO/Rx8bkX10sxnitH7hkpFwyoOdHX05H1XqkP44bPe1/hYD0QfSBeHmNtSY43qQGmpFFEY5x8Bg1XMNl26YLSZ8kolvXelwjYOd3jgOcTK/azLOEAhqu3qCFhsbc7WTU8EMB1J18YU=; c=relaxed/relaxed; s=default; d=seu.edu.cn; v=1;
	bh=sEHnVK+cGI77dBADCJ0be5zStEW7wq7MOe8uU18EpjA=;
	h=date:mime-version:subject:message-id:from;