🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5140

Re: [BUG] cdc_ncm: soft lockup with netconsole over an AX88179B dock

#5140
From: Nicolai Buchwitz
Date: Mon, 19 Oct 2026 14:42
39 lines
7197 bytes
Hi Mikkel

On 19.10.2026 15:48, Mikkel Eskildsen wrote:
> Hi,
> 
> My laptop panicked with a soft lockup on 2026-10-16 and again on 
> 2026-10-19 while netconsole was running over a USB dock NIC that uses 
> cdc_ncm. Both times the laptop was docked and netconsole was on that 
> interface. I have turned netconsole off for now.

I was able to reproduce the issue with a similar device.

Seems like netconsole holds the tx lock while the cdc_ncm driver
lets pending network work run in the middle of the send.
... which then starves on the lock netconsole still holds.

Below is a patch which hopefully fixes the issue.

> 
> The trace below is from pstore. The netconsole thread on CPU15 is in 
> netpoll_send_skb -> usbnet_start_xmit -> cdc_ncm_tx_fixup. The 
> spin_unlock_bh() in cdc_ncm_tx_fixup runs pending softirqs, TCP RX 
> sends a packet and it spins in sch_direct_xmit. My guess is that it 
> waits for the eth0 tx queue lock that netpoll already holds. The other 
> CPUs then wait on the socket lock until the watchdog panics.
> 
> The first panic looks the same, but pstore lost the part with the 
> netconsole thread.
> 

> [...]

> I can test a patch if that helps. Is this a known issue?

https://github.com/nbuchwitz/linux/commit/319cb0933e2eaf984b98906ebddb55befb4e2996

> 
> Mikkel
Technical Details
Message-ID: <6aaea20ede0bd16a5138bc126f3ec897@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-348630-linux-kernel-netdev=dewy.ru
References: <PRAP189MB185019A5A8D411482BB6E0CDA9982@PRAP189MB1850.EURP189.PROD.OUTLOOK.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-348630-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [BUG] cdc_ncm: soft lockup with netconsole over an AX88179B dock
Date: Mon, 19 Oct 2026 16:42:02 +0200
Organization: Usenet Network
Message-ID: <6aaea20ede0bd16a5138bc126f3ec897@tipi-net.de>
References: <PRAP189MB185019A5A8D411482BB6E0CDA9982@PRAP189MB1850.EURP189.PROD.OUTLOOK.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3710963"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:vs505wmrDxmNXoeElEmHliX5tVA= sha256:mFfk66clYq/W371aYnHPjr5F97RnCt3t0/hVSxmzZLc=
	sha1:yMnb6dkvSzKRPpFNvxMzDJjyQfA= sha256:R6UdsjMroGGwqu7sve41L4BG0+ezHY8ePRVjSWsVzdQ=
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 332DB110B2F; Mon, 19 Oct 2026 23:56:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, 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 K0umSdS5NFJR;
	Mon, 19 Oct 2026 23:56:56 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-348630-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 6BCCB110B2B; Mon, 19 Oct 2026 23:56:49 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sin.lore.kernel.org (Postfix) with ESMTP id 02202E8651; Mon, 19 Oct 2026 14:58:14 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id DB1A359F508;
	Mon, 19 Oct 2026 14:42:10 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b="n8aGCNXm"
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(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 BA7C6491B12;
	Mon, 19 Oct 2026 14:42:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.13.80.246
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792420930; cv=none; b=sK/FO4Ix6Hb9TCfe0ddqrynXFV7UzF0jZuhKWqJoh/w3yfHkxTP/sbaEJFFTSoDO2aoH9zKZ3lyNRay2F7AgELFB449lgtkD27bUNeXtHO3pIiSfqpgx/VbO6f+jMZpzI/wyBV6eQVC6R2KReclpeRtQufb80SP/H5a6TWyRvL4=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792420930; c=relaxed/simple;
	bh=+CcE//8LwHV5giiOzprhXnBLjNfbqHe6aALXRB3Ow80=;
	h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References:
	 Message-ID:Content-Type; b=oZpm9DMUNqO38jmObRi41HdToJlxjB6rAl/cMTLbf5MLAxifPq7MWeeQXFI4bAgs2bPinU9WX+/96O2laSBB1ETlv0ZJIM+Z/JespVFNQpn/tSQa9UwWF/eOWx5NH6oWJpcvpmRn+PfEIuwQxIN7t/7e+B/eFFIuj5zcfMS7mRI=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b=n8aGCNXm; arc=none smtp.client-ip=194.13.80.246
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 354A4A156A;
	Mon, 19 Oct 2026 16:42:02 +0200 (CEST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1792420922; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=gdPAFwtkiyGOrrmpDJKuYvH8c98AWepp1hYqr6NQ5+A=;
	b=n8aGCNXms/uv7CzfapYewb+6FNb5I6XxvEM2THqbJ+0eVNxdgBR1CdLKSwAiP6yTZtl/+T
	BiQqHZgfXpvS/NVyOU+x9fYvXTl8J12rfCsyzJmNMvgf2INH5/p1d/4S6eYV3h2jcQEj9l
	o+84ZZILEiA1SxvgRTuXJUt2fvcPfJClCXVIpnSDaZHosUzqijz3rUU12HJui/Fsu0yAXN
	7jzCW2uzfRSZCfzjayRdU41IZp0mee9yAWAwg4xw6oOzsA5Lui9jZFpYEJXTTSYPv7P/Qm
	6BLxQydaKShJXXDOQt3fMgc/1q/5/coEb+FuAJ4cbj0GsgOqc0ysVXApbKaD5A==
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-Cc: Oliver Neukum <oneukum@suse.com>, Breno Leitao <leitao@debian.org>,
 netdev@vger.kernel.org, linux-usb@vger.kernel.org, Jakub Kicinski
 <kuba@kernel.org>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni
 <pabeni@redhat.com>
X-In-Reply-To: <PRAP189MB185019A5A8D411482BB6E0CDA9982@PRAP189MB1850.EURP189.PROD.OUTLOOK.COM>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3