Article View: linux.kernel.netdev
Article #12688Re: [PATCH] net: ipa: Fix runtime PM reference leak in ipa_remove()
From: Wentao Liang
Date: Sun, 08 Nov 2026 10:25
Date: Sun, 08 Nov 2026 10:25
35 lines
9713 bytes
9713 bytes
Hi Alex,
Sorry for the very late reply, and for the noise.
You are right that this is already fixed, and I should have caught it
before posting. 6b9eaa61ff2df ("net: ipa: balance runtime PM reference on
remove error") makes the same change, and it has been in mainline since
v7.3-rc1. I rechecked ipa_remove() in the current tree, and that error
path now releases the reference:
dev_err(dev, "Failed to stop modem (%pe), leaking resources\n",
ERR_PTR(ret));
pm_runtime_put_noidle(dev);
return;
so the usage count is balanced there and there is nothing left to fix.
The patch needs no v2; please disregard it. The patchwork entry already
shows as not applicable.
You asked how I found the problem. The candidate came from our static
analysis tooling, which flagged the missing put on that error path. I
then used DeepSeek and GPT-6.1 Sol to audit the finding and to help write
the change, and I reviewed the result myself before sending it.
What I got wrong is that the diff was prepared from an old snapshot
(v7.1-rc4 based) and I did not check the current tree before posting, so
I missed that the fix had already landed. That is on me, and I am sorry
for the review time it cost you.
I am going through the outstanding feedback on my patches by hand now,
thread by thread, and will answer each one.
Thanks,
Wentao
Technical Details
Message-ID:
<20261108102500.3182111-1-vulab@iscas.ac.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-358672-linux-kernel-netdev=dewy.ruReferences:
<20260917115115.2149796-1-vulab@iscas.ac.cn> <7509f005-709d-46d5-8554-b9d2fd0cd218@ieee.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-358672-linux-kernel-netdev=dewy.ru From: vulab@iscas.ac.cn (Wentao Liang) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] net: ipa: Fix runtime PM reference leak in ipa_remove() Date: Sun, 08 Nov 2026 10:25:00 +0000 Organization: Usenet Network Message-ID: <20261108102500.3182111-1-vulab@iscas.ac.cn> References: <20260917115115.2149796-1-vulab@iscas.ac.cn> <7509f005-709d-46d5-8554-b9d2fd0cd218@ieee.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="107974"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1rbc2Pu+TFnLRT5HBGPE7BAAbqQ= sha256:QhUcsBOfda6HSO4/pLxdUihZ3siK27jApQXcmOYKzK0= sha1:pdsPLwArgiiGtpD9UgeJ9zO4i8M= sha256:5+EoFphGMPaBJK10ap5c6n5wg7I5PJIqsfRbZLnMukA= 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 C71AB113542; Sun, 8 Nov 2026 13:41:48 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.951 X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=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-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 Su-7LVBN-rOc; Sun, 8 Nov 2026 13:41:44 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358672-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=iscas.ac.cn X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 0E8BD11078C; Sun, 8 Nov 2026 13:41:41 +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 EFA604575F; Sun, 8 Nov 2026 10:40:28 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1794134428; b=gDzE0SZzNkoNTUz8wWqEVmtAJUMGSMef4zhGjEn/1F0k7z0RmMpQbZ1hFX1oT7SLXwlV v4F12b8lTrVIBOllZK+q+MfCCBcuob59YKlOMBIxkgSxoZWGsjCrXYCJdFSQ/cHqeJwEL BsDTNZaBdPV5zcRb2IxkBxwqxg3UUQRevOA+BFW2MQnjH4X+qAEeATgaBN7L45p25MOXQ cTpWjNosf/fcussBDOiWUYG52PmGzeQC+uvbRwetPAL16i1m3sADmGVZ5vvSDtOnZVzQZ mkOpD3ZF5b1C8rAR8PkjXOudbdGuiGAM8UOKmrIqOjHGoScKRbC7DC+0XC1KAtuR4Uw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794134428; h=X-Original-To:Received:DMARC-Filter:Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Transfer-Encoding:X-CM-TRANSID: X-Coremail-Antispam:X-CM-SenderInfo; bh=KCWFTyxsO2oXRIWR/uErpcygqVWYIb4tVbxQuCZPJVY=; b=D37oPbm2nOJcvi5OC0CWlYuhZB/UKc0j6nfOxpLUFAwvIqim4b6Cv9fOGBhhm68IjGJt WkURFbIMOqtDeL1ChM27VjIVWafYPxXLDh1mBcm4V+K36Y/ZbtKH2cPMuhW9NBpbcfiSh dbK7hMuYlV/V8e1LlOu24NgtIjeMlNK7RaJp8kEXk+FSrQWcKyCQATpmu9ZnPKrRJV/cu H7MsAvwHqejiwoi4KhFWVSB6VibmOn+rbbqkqIkT/6edoDWVrupsW5pHjDDqhp28PZq+t 7XusC8TX3N2a4aZMSVGphF13CH/Yf+eptlOOj8H0mbmcR4jnmaa2RAoOTtsiRawgLaA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=iscas.ac.cn; spf=pass smtp.mailfrom=iscas.ac.cn; arc=fail 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 BD730606A336; Sun, 8 Nov 2026 10:40:28 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=159.226.251.25 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794134418; b=ZPaywBPd/g4gWC9tzkBbZLnmFHxv8wOnOFil0mRrIlaEBcukcnLFWxLVOpMXCUKBUToT r5Iq6gkqvYSjd38afUG+aFMQVjk/8l6zQN5X346/UzZc2WRUSM75VDPggVZMbIySUdkS0 cLNbvEnXdio/UXpsm1F5+WvaUGmhZN+tW+h5JotaXxZnTpmsxv4GMboy21ItXQMLpE61O tDMNRcS4sh5ern0mwKRwL7gRkBkfavH5YWiKA6gxTq6dHyvZ23na8PkI6jBd6u+a7fkqA JFmUGWjxDtTEYJLrBCyouEa1ICi9+YIwabi2bKQAe+uEeenkQzaQ2/p/foqgDuZDQHA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794134418; h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-ID:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding: X-CM-TRANSID:X-Coremail-Antispam:X-Originating-IP:X-CM-SenderInfo; bh=KCWFTyxsO2oXRIWR/uErpcygqVWYIb4tVbxQuCZPJVY=; b=D5WK0kVaXtpoaIJftGnvV75IpwsqnZ9FmarCk0ZwX/320uc15fc21Zq2dZY/2OHzqLOq VvSWaQT5FB5wWluCfj/n46zvR0bVNYKsztiOKwb9TBEkNOOcSkDTkFcKPDhTVZukIk4w/ TQ4FS45Q2pUcWj/jT6Gt4PomsFZkF4VyJT1cFIf6bZT2+h7H7WbLLAA33DXevcYfrmpze 5ZMqJal8X4Pv5mUDyokWjmXUO2YP+BrudSrLwpSl0YJcUi94P4rIRKSVuKspzeBVpDo2A BbpH+9KZwzPpvhzbL4VVM9zGilhTBc7m/CWnefy32mUmxhiKMUIudEll+ibWHrulaSg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=iscas.ac.cn; spf=pass smtp.mailfrom=iscas.ac.cn; arc=none smtp.remote-ip=159.226.251.25 X-Received: from cstnet.cn (smtp25.cstnet.cn [159.226.251.25]) (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 A3F58606A320; Sun, 8 Nov 2026 10:40:16 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A3F58606A320 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iscas.ac.cn X-Received: from [172.100.0.8] (unknown [36.110.52.2]) by APP-05 (Coremail) with SMTP id zQCowABX8reHUfBqA6eZAA--.38380S2; Sun, 08 Nov 2026 18:40:07 +0800 (CST) X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, elder@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, vulab@iscas.ac.cn X-In-Reply-To: <7509f005-709d-46d5-8554-b9d2fd0cd218@ieee.org> 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-CM-TRANSID: zQCowABX8reHUfBqA6eZAA--.38380S2 X-Coremail-Antispam: 1UD129KBjvJXoWxJr1DJFy8Jr1DZF4UZw1xAFb_yoW8Jw1fpF Z3Kan8KrnxKrn2yws7Aa1IqaySvrZYyr45GFykGa40yw15XFy7trWYgF1j9a13Cr4rXrZr tr4Y93Z3J3ykJa7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUU9G1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AE w4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2 IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2 jsIE14v26F4UJVW0owA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c 8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_ Jw1lYx0Ex4A2jsIE14v26F4UJVW0owAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr4 1lF7I21c0EjII2zVCS5cI20VAGYxC7M4IIrI8v6xkF7I0E8cxan2IY04v7MxkF7I0En4kS 14v26r1q6r43MxAIw28IcxkI7VAKI48JMxAIw28IcVCjz48v1sIEY20_Gr43Wr1UJr1l4I 8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AK xVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcV AFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8I cIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r 4UJVWxJrUvcSsGvfC2KfnxnUUI43ZEXa7VU8nNVPUUUUU== X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiBggFA2rv4zKpNAADsC