Article View: linux.kernel.netdev
Article #19920Re: [PATCH net v4] net: hso: fix stashed tx skb leak and replay race
From: Jakub Kicinski
Date: Fri, 20 Nov 2026 18:28
Date: Fri, 20 Nov 2026 18:28
11 lines
8246 bytes
8246 bytes
On Wed, 18 Nov 2026 22:16:58 +0800 Aibing Chen wrote: > hso_net_start_xmit() stashes the skb in odev->skb_tx_buf and stops the > queue when hso_get_activity() reports -EAGAIN, which happens when the > USB device is suspended or no longer configured. If the interface is > then brought down, or the device is disconnected, that skb is simply > left behind: hso_net_close() and hso_free_net_device() never release > it, and hso_net_open() clears the pointer, so the skb and its data > buffer are leaked. Please stop submitting patches in reply to existing threads.
Technical Details
Message-ID:
<20261120102841.260c53f2@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368078-linux-kernel-netdev=dewy.ruReferences:
<20261117084732.297-1-chenaibing@cmss.chinamobile.com> <20261118141658.1381-1-chenaibing@cmss.chinamobile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368078-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v4] net: hso: fix stashed tx skb leak and replay race Date: Fri, 20 Nov 2026 10:28:41 -0800 Organization: Usenet Network Message-ID: <20261120102841.260c53f2@kernel.org> References: <20261117084732.297-1-chenaibing@cmss.chinamobile.com> <20261118141658.1381-1-chenaibing@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3233828"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ALLrKn4EP+69EX21DhHJbe6o//s= sha256:9baHCKBNAbglQr+txszq2p3kHGjXXmE4AZ1f5OW26RA= sha1:f3BTkIqQlWtN4fe1YCpVLuISfjo= sha256:u5mKlV7d7UzyJ2Lq+CCkqt7vKF+vauohadwynvKIiBg= 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 6D693115A42; Fri, 20 Nov 2026 21:31:45 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=kernel.org 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 RUXNpKO3fBMo; Fri, 20 Nov 2026 21:31:42 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-368078-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id EE56A115A15; Fri, 20 Nov 2026 21:31:33 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 2270D88718; Fri, 20 Nov 2026 18:28:46 +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=1795199323; b=mAV8asu5nC7RizwnNlp4nOKH29/RRGjevqNIxZ9kf3/7dn23OM3FyAijsvhAvTDG3Kta Wzn8LspEmtfoS2K+hRFoprV31USpTywS7Dc9q5QsvxS0R7uIfR+wOEFeGNwhnBLdSycB0 HVNbf9WVteDJ7bDEreGezi2eD+g2B/OG8sF0RmHUmna+dDEWU78K6wV/Q2pNtJodKMHtm Z2Ph0lVBs8eSQEBFEIXQMWg8VwJLDe7uE/ma5R1Zq+f/h/Jb+hhYLYlmxj1wX7t++ETuj /UU0AhE7dVsYYenx5lGtzn3vqxBADghA1l+/ftuOsVByXyc8r32t1zVIJphytCz05+g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795199323; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject: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; bh=wU0nwzufMaP61MtihLdeXpseUgGJVAyxVeg48jVu7Wk=; b=wtStkISQ5j30jDaiejE7Dw/fLtiG41WHKIMH67VQTUjwdZz7RfoWnmxn1EkGtbFXQ6sK LLnT0Yz2vv+EDpw4Qtpx1xkg0dEKKd93d+q4K3K8HTZCplK/A69p1YJceKnwZuuL/+0Si 3gBWnDjw5nKli5yVZmyQTcG6PMMitQ7ZN3F8G1Bc/s/PDLp3Qfq5UImM8FbwvEOoY0fpI 5gsLKfCOzNu+dq5opWNDLt9RlxdUoftmsRt7OBaR85LH8E1kdnjvD2dXh6FGOyWH+sFrF lgjqlDQSXX0NSnx85/rYqenzo281n/KDHKFc8R81rP1bl8WEnyQZ4ZVC4Civy81jLrw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="En/PzgCb"; 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 B0553606A33F; Fri, 20 Nov 2026 18:28:43 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=En/PzgCb X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795199322; b=Mbv9XjRA0/9mqMD51uy18oQ4EnRxoHoZ62kswIH3aE8HT+vIZOpIF6+jHrc4BdDgkB4l o88DWspTK5+Nz8mtHD47jcgjqwKy1bNHiS1yJkn9tJQk569kYbjiCU+JyNb+FhxaPBHSi U29f2SwL3Ip/eDglDaVcRZr82I1+Xpc5KiputO66McoxW4/WZUsJ9PIiBRMfpDtl8nHfe ByFvL8Buy/d4/AA8cHljEANPTmKYTsv1a0RmCJMEl0veV5cxgUw2a23wHI0aoisLTZHQC rESBopqerbDWVqPY7T65eD/SDrxV/CWXJ1tSjZ7PZgh76sGc/twSaO4yR9Oewjvksjw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795199322; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=wU0nwzufMaP61MtihLdeXpseUgGJVAyxVeg48jVu7Wk=; b=5fWZoykn2hLjS+F0dlCj9vaD2tzEmyYev1Hhu/zJXLnu7thMn0nA+03LwZR4A9Pznn59 hETbdku0S0iHvBPOhdvuklLI3FC8obqVb1uiYkVXYAo4ZmgIworX4rz7nR2/QnVtP5gv0 VHgpNvRMaDznwW43AE7P6nPK2gKrHRNdTu8lKHl40Bnaqj6++syUnwrHYfxxyWORea3zZ ZteJU5Tw2rzpDkKrACBRm1Gz4kXXy0eUIvgTLYb3HblgAXf1XubDsPxM85LtXST+q2M2I 5yIBabwiWrepAJEQgTWizWcmspA7CL1miviMxnx/QF9LblU6RH78z0hM+3+MRZH/gAQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="En/PzgCb"; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE721606A32C; Fri, 20 Nov 2026 18:28:42 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3391D1F000CF; Fri, 20 Nov 2026 18:28:42 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795199322; bh=wU0nwzufMaP61MtihLdeXpseUgGJVAyxVeg48jVu7Wk=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=En/PzgCbLuakLil6cMyBsPFphXJC4c2ZBo2fQ7cQfyqQRPIP9QDbR31xdueCic2ki nsAuwg2L4mF6GpLAzupFYcbL58nD5TdctL9qJr9d6nxKdWywkWd2UZBw8lxeeSu0xG N09KhYgMuq3BevlF28K4X07Gsl2f0V327gKlNT6YuQGD32pYlRVgoAKo3sdQH+SJA0 2nZUqi6pd7JuTJ3z47pP2Jvti1QwAQgmpatJx96KxHCI1/daP56qpX2gqZmkY1SrHz M+tYlPBs8i3DgAQYUi0v5tUSdJSDrOdPtH12M5UjNv0nW791wSBdR4PrrLplimsKLL 44/hzqSbWjRlg== X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261118141658.1381-1-chenaibing@cmss.chinamobile.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