Article View: linux.kernel.netdev
Article #1451[PATCH net-next v3 3/8] ibmveth: disable the reset work before unregister in remove
From: Mingming Cao
Date: Fri, 09 Oct 2026 18:32
Date: Fri, 09 Oct 2026 18:32
38 lines
10672 bytes
10672 bytes
ibmveth_remove() cancels the reset work before unregister_netdev(),
but NAPI keeps running until unregister closes the device and can
queue the reset again, on an interrupt enable failure, a bad
free_map entry or a bad RX slot. The reset can then run on the
adapter after free_netdev(), or reopen the device during unregister.
Use disable_work_sync(), which waits for a running reset and keeps
the work from being queued again. A bad RX slot also makes poll
spin, which can stall unregister; a later patch in this series
fixes that.
Found by AI-assisted review of the ibmveth multi-queue RX series and
confirmed by code inspection; it was not reproduced. Tested on a POWER10
LPAR with unbind and bind cycles under traffic. No kernel selftests
cover ibmveth.
Fixes: 2c91e2319ed9 ("net: ibmveth: Reset the adapter when unexpected states are detected")
Signed-off-by: Mingming Cao <mmc@linux.ibm.com>
---
drivers/net/ethernet/ibm/ibmveth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c
index 4665447997ea..cee0e9783b2a 100644
--- a/drivers/net/ethernet/ibm/ibmveth.c
+++ b/drivers/net/ethernet/ibm/ibmveth.c
@@ -1956,7 +1956,7 @@ static void ibmveth_remove(struct vio_dev *dev)
struct ibmveth_adapter *adapter = netdev_priv(netdev);
int i;
- cancel_work_sync(&adapter->work);
+ disable_work_sync(&adapter->work);
for (i = 0; i < IBMVETH_NUM_BUFF_POOLS; i++)
kobject_put(&adapter->rx_buff_pool[i].kobj);
--
2.50.1 (Apple Git-155)
Technical Details
Message-ID:
<20261009183258.18624-4-mmc@linux.ibm.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343908-linux-kernel-netdev=dewy.ruReferences:
<20261009183258.18624-1-mmc@linux.ibm.com>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-343908-linux-kernel-netdev=dewy.ru
From: mmc@linux.ibm.com (Mingming Cao)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v3 3/8] ibmveth: disable the reset work before unregister in remove
Date: Fri, 9 Oct 2026 11:32:53 -0700
Organization: Usenet Network
Message-ID: <20261009183258.18624-4-mmc@linux.ibm.com>
References: <20261009183258.18624-1-mmc@linux.ibm.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1172832"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:btxfwGWHrcO0Ym2ZJHnb61eqnJc= sha256:f1fPY2nLRAjQRykYdi+44To4EXXR+/961H3S2j2ve6A=
sha1:Jz1MooN8UkCQn8P7Z44g80f/GP4= sha256:FNiyN8txZri9W/2OvY1ACgiobEq6z0Wg6PUABnbKXD4=
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 294D910F79A; Fri, 9 Oct 2026 21:53:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.651
X-Spam-Status: No, score=-0.651 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-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 (2048-bit key)
header.d=ibm.com
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 W5l-DDpCMVzM;
Fri, 9 Oct 2026 21:53:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-343908-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=linux.ibm.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 0E11E10F797; Fri, 9 Oct 2026 21:53:17 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by tor.lore.kernel.org (Postfix) with ESMTP id 966FB3E8DA; Fri, 9 Oct 2026 18:47:52 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 551C9522EE2;
Fri, 9 Oct 2026 18:33:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="TfBAj4OR"
X-Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5])
(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 EFF0E5226A6;
Fri, 9 Oct 2026 18:33:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791570826; cv=none; b=XWbnlUcDU8IkqVgc0/3RuvPN51KV0kV0py6e24oEDplcbS9laGFviUnqrmcISuJHrn4os8gg6jP/ARoN7pnBCVcPWCNwGYmjoTr2kBIjDGGyqoQBgGPwQtMPN4qR7pfTzouhiDFGjksy2cahCf1LHka7ts6jKulHEF1SkLDYXcI=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791570826; c=relaxed/simple;
bh=8HFZEsLWtFuEu3DF/DjZYSzTklcfJcjKgbSiQeMTbyQ=;
h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:
MIME-Version; b=XAsFIkOrgGkVolAxLBMMcXN5+hBaMAB7diF5cXst4p6mp6ZwDe45l7MSlFBU9ubXJ/I7uomvHDzoVPzJrKAz4iX5y7glhY9iHUOsQi/6wypAmyFMEAC1arpiuH687KKwwB1bSxPHQlRaISSfV5MVKWCy6x8CpoxYEbKnr++lIPc=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=TfBAj4OR; arc=none smtp.client-ip=148.163.158.5
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com
X-Received: from pps.filterd (m0356516.ppops.net [127.0.0.1])
by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 699HZxP6592731;
Fri, 9 Oct 2026 18:33:23 GMT
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc
:content-transfer-encoding:date:from:in-reply-to:message-id
:mime-version:references:subject:to; s=pp1; bh=vU96N6Mg5oDnRAeCp
5sckE1d7IjMZBUWCSbSYQ92nJ8=; b=TfBAj4ORDVwz+OWC+XAY1JPvulMlJ7SyO
0NC5HeWplrZaZ2cizdtj2Z6pJ2dlAYW3QzSRhq2fsr8JHYaPSAKnnBnBXudY9T68
S2gP7yq9MebScveS5B0qIX4/v8R2iZryfCUZGVU4BCMw6eFrkMNniciiz/n0i44Q
g8bdUDzMDJ62rWsuDU78/6HMWBOyz0v8k7dRDYf33tDkiU+NDO00anUQH+3dCOlr
nnTxGHJH3VjtqEv9BbNPEy8WueOUM+AVWz9nfB6iJjF1CmlecGqbKZkAWWO4pGzL
0e3tR8LgOmbkR2Uk30lzqOZzLMD4DTiJmJcX6+xUfxln938dkuCeg==
X-Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220])
by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4h74tdg92u-1
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Fri, 09 Oct 2026 18:33:23 +0000 (GMT)
X-Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1])
by ppma12.dal12v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 699H8E6A1162502;
Fri, 9 Oct 2026 18:33:22 GMT
X-Received: from smtprelay01.wdc07v.mail.ibm.com ([172.16.1.68])
by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4h6v76t67u-1
(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);
Fri, 09 Oct 2026 18:33:22 +0000 (GMT)
X-Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101])
by smtprelay01.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 699IXJTE6030296
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
Fri, 9 Oct 2026 18:33:20 GMT
X-Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1])
by IMSVA (Postfix) with ESMTP id B3A0458062;
Fri, 9 Oct 2026 18:33:19 +0000 (GMT)
X-Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1])
by IMSVA (Postfix) with ESMTP id 7761D58051;
Fri, 9 Oct 2026 18:33:17 +0000 (GMT)
X-Received: from localhost.localdomain (unknown [9.67.110.242])
by smtpav02.dal12v.mail.ibm.com (Postfix) with ESMTP;
Fri, 9 Oct 2026 18:33:17 +0000 (GMT)
X-Cc: maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com,
chleroy@kernel.org, ritesh.list@gmail.com, sshegde@linux.ibm.com,
nnac123@linux.ibm.com, andrew+netdev@lunn.ch, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
horms@kernel.org, davemarq@linux.ibm.com, bjking1@linux.ibm.com
X-Mailer: git-send-email 2.39.3 (Apple Git-146)
X-In-Reply-To: <20261009183258.18624-1-mmc@linux.ibm.com>
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-TM-AS-GCONF: 00
X-Proofpoint-Reinject: loops=2 maxloops=12
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDA5MDA3MiBTYWx0ZWRfX//TaOy2uVBu+
A3N/RiJxsqd71+8HEF7CEqVdYsPSOp1zfi1D+SQTj65rm4rUgeLTpmVWCYN1GBhVlTv6zlPyXKK
VmjxDIRBQ3sURmieNDNw91oPCcpoXGoj/ZqeaO2kurZhvR2iyTiG6zeJcO1KDPe/185uoOQWNCm
JopcGp09v6t769yGHor2bgZjqPT2c5oAIBQzW/NiLAiYiK5olkJqbEusHD2O/0qZ9q/PoSRZeeG
OaqdxMTQADfd57p9a1Mz7nKSiZQcQ7JAAG40AjEwbGj9hYobNUuTFw1btwVNhR7BJN8OMOruPD6
+CILasUQK5HXdQHHZG/rg9QERwmdn8TV60oGPJPDDIdNULgjJskLaGVB0iYErUD9W4wbOJHlG61
fMi/8QD3fT8PEQMmEVuXFOyTvVumge0OS91PBJqPOd8slzgMXqM5kVXRSh8OJslSfwyoa6//zSu
sJUYvuiwUTBJfJxbFUA==
X-Authority-Analysis: v=2.4 cv=FqWQbGrq c=1 sm=1 tr=0 ts=6ac93373 cx=c_pps
a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17
a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22
a=Y2IxJ9c9Rs8Kov3niI8_:22 a=VnNF1IyMAAAA:8 a=IlR5_4QjEJt1gQzRlPQA:9
X-Proofpoint-GUID: GoKwrXzavvft7SUfYWxyVOPBf-xSxeE9
X-Proofpoint-Spam-Info: AW1haW4tMjYxMDA5MDA3MiBTYWx0ZWRfX8Or7oRNQgeK7
9T1WOfrwTGObFPpmeOhtLSp5BUt3ROYEhiJ9F4JaDoQbsrh2ZRicmGXS4ThPbk4D8erXgGfZBR2
kgGbUvFac1uxFZQdHYLp6M6qL6TbLes=
X-Proofpoint-ORIG-GUID: 34KJTnFigNck1AJQZKl2-BdFsvPqGq_5
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49
definitions=2026-10-09_05,2026-10-09_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
malwarescore=0 spamscore=0 suspectscore=0 priorityscore=1501 impostorscore=0
adultscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 clxscore=1015
classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610090072