🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16753

Re: [PATCH net 1/3] igb: fix RTNL assertion when resuming from runtime suspend

#16753
From: Antonio Quartulli
Date: Sun, 15 Nov 2026 19:37
28 lines
10349 bytes
On 13/11/2026 11:58, Antonio Quartulli wrote:
> Since commit ac8c58f5b535 ("igb: fix deadlock caused by taking RTNL in
> RPM resume path") __igb_resume() doesn't take RTNL for runtime resume,
> but __igb_open() still calls netif_set_real_num_{tx,rx}_queues(), which
> require it. An asynchronous runtime resume (e.g. after the link comes
> back) then triggers "RTNL: assertion failed".
> 
> The queue counts only change on paths that re-open the device under
> RTNL (ethtool -L, SR-IOV reconfiguration): set them in igb_open() only,
> as igc does since commit 6f31d6b643a3 ("igc: Refactor runtime power
> management flow").
> 
> Fixes: ac8c58f5b535 ("igb: fix deadlock caused by taking RTNL in RPM resume path")
> Cc: stable@vger.kernel.org
> Closes: https://bugzilla.ipfire.org/show_bug.cgi?id=13562
> Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Sashiko reported an interesting finding that is worth fixing.
Will spin v2.

pw-bot: cr

-- 
Antonio Quartulli

CEO and Co-Founder
Mandelbit Srl
https://www.mandelbit.com
Technical Details
Message-ID: <fc4b8168-d8b9-426b-95c5-4a24e93f46b9@mandelbit.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363829-linux-kernel-netdev=dewy.ru
References: <20261113105835.3821433-1-antonio@mandelbit.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363829-linux-kernel-netdev=dewy.ru
From: antonio@mandelbit.com (Antonio Quartulli)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 1/3] igb: fix RTNL assertion when resuming from
 runtime suspend
Date: Sun, 15 Nov 2026 20:37:43 +0100
Organization: Usenet Network
Message-ID: <fc4b8168-d8b9-426b-95c5-4a24e93f46b9@mandelbit.com>
References: <20261113105835.3821433-1-antonio@mandelbit.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1884851"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:tvIuMQM1uUPlu5CFHU1D/AShoNQ= sha256:dC0j0qAIbBW6xWQpCCbhOPI5Z616pvg5cMs70QPLhG8=
	sha1:nIkIcUU2su87ViOfsOLxaSgcohI= sha256:qfROyCeaoaADWp5FqYjxpgBoY7yXwLB+ey+VdE5oAPU=
Content-Language: en-US
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 38F9A114A4E; Sun, 15 Nov 2026 22:38:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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, 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=mandelbit.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 fwobMoKdxDxD;
	Sun, 15 Nov 2026 22:38:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363829-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mandelbit.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 87218114A4C; Sun, 15 Nov 2026 22:38:02 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id AB5652C3E9; Sun, 15 Nov 2026 19:37:59 +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=1794771478;
	b=EQIms1F33aOMMm5JNl2vpQCwWz5jaI/8nF0F0MWkHj8y86fq2/fmWhDlEuScllTz+R8d
	 0vn6bsyAdD/3m/3OwP8E9ttQqPiU4s3CfIhlsOUCykYjNSIaBEx2cyFh3/B68VqE8qQrA
	 0MkZpzjEfFiMZ2ghyDPwM+1JQecVFgwt+6WGdFbiRN2icVNuxlRetZL7lj6bUcY40y3My
	 +eQ+GM6+7RtbAIAvPOMD6T6IeCG9tgFjWFb+f8ytSW1C6wuFdkbrNuZZU7q3fKQEe03ks
	 BkDsiful/Bmz6fFexJkumi45YdSyRjxOAL+ncI6lvmYEREzZkkAY1vvQwbbIGUCmsOQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794771478;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 User-Agent:Subject:To:Cc:References:Content-Language:From:
	 Organization:In-Reply-To:Content-Type:Content-Transfer-Encoding:
	 X-Rspamd-Queue-Id;
	bh=isEsQrrx0hL73b1p5Jr6MlaLz4dtBNblQFsunuEj6v8=;
	b=U23mlHsQAcYbgWQL+Eb2lkzzvZ2tEvLAU8s7b1mgpdv/JeP0y6h90T3UPRwOJByHwR8R
	 KAPzW3CnNackpuakvTvABqgxUoP2C1hUe7RnY55dbk6Nlbc1B0hv3Cmau097NQIDYQ77Y
	 Bw0jRG5fRCtAc5QKWEuJbKmjTdJ3hjpiusPue9NX4GQjvwS89qykZEUf9t7AbXGxgsXiI
	 NIvx4JPj1AzvZmohfxJBdZ250uA+fcWDOB8gARj9INMyhdt3nxRK8o/FEzKnh5FEHAMsq
	 OujaHPbm2Gs8XydBkp6Yyo4bCaGFgKJF0r+q05bAD0R80/WQiIgYwdJYxvEUBMcqaqA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=GiSawGQk;
	dmarc=none header.from=mandelbit.com;
	spf=pass smtp.mailfrom=mandelbit.com;
	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 24290606A330;
	Sun, 15 Nov 2026 19:37:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=GiSawGQk
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.46
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794771477;
	b=SkYdmnBBT63v02Cfitt6Nmv2fcCIqWcx7gLCNCVnW8zrzqYozxMTnQ3daClndYKptwQ0
	 lWv0JGgezMAEZPsKyVyM12dhgUuBxTxpR4LJAxcu77Q3341AqMb0SrECNh0sR497yr/kA
	 ljCbN7gNU/SN8SAYrrAqpojDK4i7u03WL0lEFg6CrUcf05H4UfroogtPsDUt9bYhdQrmG
	 cj9GbH29YoGSKRXcgPXeLYLhAVLQIxXULVNWDUMrc+AUi6K0YLA0B+hma2PrIQMds1kw/
	 dbZcBBrzBM2TsilUYNJJ2fjmsLYKn5CkHzp74I8YAypvAzPYlwOwbYWvk5n3YSQqhWA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794771477;
	h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Date:MIME-Version:
	 User-Agent:Subject:To:Cc:References:Content-Language:From:
	 Organization:In-Reply-To:Content-Type:Content-Transfer-Encoding:
	 X-Rspamd-Queue-Id;
	bh=isEsQrrx0hL73b1p5Jr6MlaLz4dtBNblQFsunuEj6v8=;
	b=ekpF7ekvyOajQXE/vXp1G3tPRu7r2q6nSBNFHmYb71XnbNJ26ftrYs2OoFkyhyPqSAIb
	 4DIiCbny6ReBWvhVJHq8avZrlFs6yzYiLxe27qNcf0aRpgSszbAZFcMbdeiwmfLaB+45V
	 Ur1+cZNL5hz3ntjqVVOpvlazgFNixvWPhjBoFgRIWHm5X2FB/ihysvsNmjrS4OhNn9+Rd
	 KyeC2pL9QGVpe2gIGRsIPf1IfZvo0jwGdECYJwHND6yJl7apCAI3/px6wH0ZA4jM5Tu2H
	 5vqzi9EMRc5AnJa0NkpNM6DZtr8FuyRIc/r0Q+DcjezEOR3vbS72NczEBGRKfWtW0RQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=mandelbit.com;
	spf=pass smtp.mailfrom=mandelbit.com;
	dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=GiSawGQk;
	arc=none smtp.remote-ip=195.10.208.46
X-Received: from mout-b-106.mailbox.org (mout-b-106.mailbox.org [195.10.208.46])
	(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 46CDF606A33F;
	Sun, 15 Nov 2026 19:37:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46CDF606A33F
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com
X-Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mout-b-106.mailbox.org (Postfix) with ESMTPS id 4jSLqt1NjvzNl6l;
	Sun, 15 Nov 2026 20:37:46 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com;
	s=MBO0001; t=1794771466;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=isEsQrrx0hL73b1p5Jr6MlaLz4dtBNblQFsunuEj6v8=;
	b=GiSawGQkORQPgxry110kOJKRxqQGGrmkoV1eGmHSj+S+ZUPrbQ01sfFAi3I1PaaN4YZR5J
	8zPNOf5PL2cluuIlUggromDPjMExlNdbJBkoCGDOTwfkw3p3TGxW/PiB9viFuXHr1RLCs5
	XKjtSxPeaYty0wdrgcBOTUviEXOrvnwdtXeNikySC/WDs3uEbID83zskgVyeMCtx+R/nBB
	A/DHIgJ4DkI6nrU1RIDkBy1tPvIHFSJOtMG5d4whFjbfpYb0Yw5kYlwx7R76B6XUDSUXE4
	VBTJfmCbZjrnQ5n08kWKWZRA8Q2Q/DXd1OxHFTigp1mwI4qXJrwqw6ENG2j3jA==
X-Authentication-Results: outgoing_mbo_mout;
	dkim=none;
	spf=pass (outgoing_mbo_mout: domain of antonio@mandelbit.com designates 2001:67c:2050:b231:465::202 as permitted sender) smtp.mailfrom=antonio@mandelbit.com
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-User-Agent: Mozilla Thunderbird
X-Cc: Tony Nguyen <anthony.l.nguyen@intel.com>,
 Przemek Kitszel <przemyslaw.kitszel@intel.com>,
 Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller"
 <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
 Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
 Heiner Kallweit <hkallweit1@gmail.com>, linux-kernel@vger.kernel.org,
 stable@vger.kernel.org
X-Organization: Mandelbit SRL
X-In-Reply-To: <20261113105835.3821433-1-antonio@mandelbit.com>
X-Rspamd-Queue-Id: 4jSLqt1NjvzNl6l