🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5332

[PATCH net 0/2] net: usb: cdc_ncm/cdc_mbim: fix netpoll lockup in tx_fixup

#5332
From: Nicolai Buchwitz
Date: Tue, 20 Oct 2026 07:16
26 lines
9345 bytes
Mikkel reported lockups with netconsole on a cdc_ncm device. Further
analysis showed that netpoll calls ndo_start_xmit() with IRQs off but
BHs on while holding the txq lock, and the spin_unlock_bh() in the
tx_fixup paths runs pending softirqs. A transmit from one of them then
spins on that txq lock.

Patch 1 fixes cdc_ncm. Mikkel reproduced the lockup and tested the fix.
Patch 2 fixes the same code in cdc_mbim and is untested.

Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
---
Nicolai Buchwitz (2):
      net: usb: cdc_ncm: don't enable BHs in tx_fixup under netpoll
      net: usb: cdc_mbim: don't enable BHs in tx_fixup under netpoll

 drivers/net/usb/cdc_mbim.c | 6 ++++--
 drivers/net/usb/cdc_ncm.c  | 8 ++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)
---
base-commit: 044ad3c90d9d2df2c5cb3325ae17b4e9603a311f
change-id: 20261020-cdc-ncm-netpoll-d7a7f69dd2cc

Best regards,
--  
Nicolai Buchwitz <nb@tipi-net.de>
Technical Details
Message-ID: <20261020-cdc-ncm-netpoll-v1-0-682184384b49@tipi-net.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349082-linux-kernel-netdev=dewy.ru

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-349082-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 0/2] net: usb: cdc_ncm/cdc_mbim: fix netpoll lockup in
 tx_fixup
Date: Tue, 20 Oct 2026 09:16:54 +0200
Organization: Usenet Network
Message-ID: <20261020-cdc-ncm-netpoll-v1-0-682184384b49@tipi-net.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3800848"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:sxQbhJHzBpqr9YDd04CnNc7RAbk= sha256:VMP8q0PUBB+9uHY4uqElE6HDjmn+DMAA5buF+MfVcEQ=
	sha1:YX4e5JtbjDdxGAbxcJRIwKYF0aI= sha256:kSI3Url1fJv7dqc8LHlgRb5Jdbz9ez1kgFrFEeNPCIY=
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 1C3D2110C27; Tue, 20 Oct 2026 10:18:37 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, 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=tipi-net.de
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 pWHoEezNydGb;
	Tue, 20 Oct 2026 10:18:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-349082-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 8A800110C24; Tue, 20 Oct 2026 10:18:26 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 28F8F60F904; Tue, 20 Oct 2026 07:17:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792480643;
	b=MPM/46Sf0S0DS8Qwl20GuKT0ddYcX2Q7D57zs8mv/tR2U2DYcroOHtyxFwOGli3rMBLo
	 cQR8URSJpU2yYtvZoE5BZ7dVMNMBF3LuVLzKDKX/vjVe2KyvXmHHi4R2YF0r10bc0JY6X
	 XJkYKrAkWWETV9Vh7IX2M9iu6RrjyLa8PkNDkuHIszouRnO/mt0FBrcIAOJX7m5L+XgCk
	 J9kZR6kyaVfd6JQe5Dac6JZoemnJHoBXFhsXUdy0nbOWGyH220eYCirYRs4v4fbvw/2i3
	 wCDO4d1hLgI38BJAYo4b5hQsaFuaaBluEGRTiEXUw/GDSJYeBmEiFOpTg2lEsjOnf4A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792480643;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:
	 Subject:Date:Message-Id:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To:
	 Cc:X-Mailer:X-Last-TLS-Session-Version;
	bh=zKoG1Y27u5lxRf/K5y/SpxjMEPsJ6IGeF6f+oULx/sA=;
	b=JFP/R3F1l9YAllKPtJtH+UOHxxtcsFKIEhX06ZxKVtfUA3XErYPdSWBuG3QjJMmisfoj
	 5Qi639lhWsrYh7wIGY1dVkFDgmDz7RJKhBrPCde4KuFovPl8vEUvCzT5upL2HZiYxfyw2
	 7olN2ZNjYlHfcUur+VCtxS2QoF8siz/S3lf68hbD1nFSDPJSJ0VyJAwPzJoNeJnH3NtKZ
	 Zxu+1/9BWA7V4sxi65AmPxbO47gRS9J9LMTQT62ZyR+MSX6Xyh1mOBimwaFjYSMIZ66rB
	 lqF5KuJ8K543Omu5TdgHkI1U6KXEbn0gjJ9SXyL1HPpWQwmoHhf20VRLCpglyEdF6QQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=oCLxCk6L;
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 342E160A2601;
	Tue, 20 Oct 2026 07:17:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=oCLxCk6L
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792480637;
	b=HsUBhscXovPlwaQtiPAHZqvaXRFIW1FVpGkpLl9QNHze2AW59WBGUCBhBX1aRG7vVA8w
	 MwESqS49u4q4uWSWMWZ3sIvYBJTrwjzaDWzuYHCXNdL672cgvQGYnC+rYpIl2/d3KAjDt
	 Z5SBPCL9NjXGVSl2k8hmkHOH0wCUF4n9NZu7sLzprDA5K2mwOsXdKCdTKeJwBub1a7xyL
	 WsIM1isQn1XZb/lOtqbKyiviop1IFKdNkMClClEhGLrj78pRZ64NMR8yxK6wK+bGV1sBM
	 9Z6yWjRIsjwmrt3dWwYih13sZ6Z+ub5hHU6z2Xd+B+cL/gk5tJrUyfUX6nrvhA9Qw7w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792480637;
	h=DMARC-Filter:Received:DKIM-Signature:From:Subject:Date:Message-Id:
	 MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking:
	 X-Change-ID:To:Cc:X-Mailer:X-Last-TLS-Session-Version;
	bh=zKoG1Y27u5lxRf/K5y/SpxjMEPsJ6IGeF6f+oULx/sA=;
	b=EH6GDThlN3MBhSDrP0h0I9r4TOEq+MvBOoiw0QDuhai04spXxL77Vm5o7zwAKBbZ2Wpj
	 Yz/NwsQHyPJMHJjGqueepAWescFt7La1NslEpeeTJwAbz3T8hkhFtJK2yWjeknmV4rfSa
	 /gd4/HZcn9XAYHgC/u+oh+JqhDepjuRYRhQl+kJlUTOYO9qsy5r0ZjC9mDMeJBw+Cb6ph
	 29OhGpzg0lRNCLfJP/KBx8WVaViyixlncCDxQCaNzK+vGQhgVp/5lgERULMEcHNLGo5Zz
	 dLePA9HREiDUngoK+L9hEK8MeuNCYhSqZFQL7WL4ehp3J2pj7LGmcef8k7GH2fZKQkQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=oCLxCk6L;
	arc=none smtp.remote-ip=194.13.80.246
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(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 7C2A1606A319;
	Tue, 20 Oct 2026 07:17:13 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7C2A1606A319
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 05702A15A5;
	Tue, 20 Oct 2026 09:17:06 +0200 (CEST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1792480630; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding; bh=zKoG1Y27u5lxRf/K5y/SpxjMEPsJ6IGeF6f+oULx/sA=;
	b=oCLxCk6LYN9H1nikHlyUXQhBehQQp1G0JMqUAjS9c03psxicB9+0hPZpOgEwMaGl9nx7OG
	sTYURu0a2sk6jAG4DFzmSkE9KDk64QB4m4jE8LCsoc31AV5u52kcl16wDY5T7bGbWsYm6h
	yM3lpDCmzVROU/GUA3jZrUdzRLF19/fbYThzm6zbL+aGyEJQDMELC4C7NwBUuKdHw5hqGO
	8vyuGU9aeUGh4IETGR0IM8xPCaYBtt3D4R5SnjwzlUokMw/DoVvGi1yXOXEsZ51P+hDNtz
	Gvk5rpKh83XWo/NkGdg/D6CjAFs2TnJYWUcI/0Tds84z+rPPywZvwclRVOKpKQ==
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yWMQQqDQBAEvyJ9zsC6B8V8JeSgM2MyYlbZ1RAQ/
 +5qjtV01Yak0TThXmyI+rVkU8hQ3grwuw0vJZPM8M5XpfOOWJgCfyjoMk/jSFK3dV81Ip4Z2Zq
 j9va7ig/kE57/Ma3doLycLez7Af+Hjlt4AAAA
X-Change-ID: 20261020-cdc-ncm-netpoll-d7a7f69dd2cc
X-Cc: Breno Leitao <leitao@debian.org>, linux-usb@vger.kernel.org, 
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 
 Nicolai Buchwitz <nb@tipi-net.de>, Mikkel Eskildsen <mke@visotia.com>
X-Mailer: b4 0.16.0
X-Last-TLS-Session-Version: TLSv1.3