🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26206

Re: [PATCH wpan] ieee802154: atusb: complete each transmitted frame only once

#26206
From: Stefan Schmidt
Date: Thu, 03 Dec 2026 08:14
26 lines
8516 bytes
Hello Joas Antonio dos Santos.

On Tue, 10 Nov 2026 09:03:25 +0000, Joas Antonio dos Santos wrote:
> atusb_xmit() stores the frame being transmitted in atusb->tx_skb and
> atusb_tx_done() hands it to ieee802154_xmit_complete() or
> ieee802154_xmit_error(), both of which free it.  tx_skb is never
> cleared, and atusb_in_good() calls atusb_tx_done() for every one or two
> byte bulk-in transfer it receives from the device.
> 
> A device that sends a second tx completion report after a transmit
> therefore makes the driver free the same skb again, and drop
> phy->ongoing_txs once more.  A report sent before the first transmit
> calls the completion helpers with a NULL skb, which frees nothing but
> still drops phy->ongoing_txs.  The stale pointer is also left behind when
> usb_submit_urb() fails in atusb_xmit() and mac802154 frees the skb.
> 
> [...]

Applied to wpan/wpan.git, thanks!

[1/1] ieee802154: atusb: complete each transmitted frame only once
      https://git.kernel.org/wpan/wpan/c/bc10f5da3e77

regards,
Stefan Schmidt
Technical Details
Message-ID: <179628563627.233542.12025786720116701404.b4-ty@datenfreihafen.org>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376396-linux-kernel-netdev=dewy.ru
References: <20261110-atusb-tx-once-v1-1-43e2b92f2072@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376396-linux-kernel-netdev=dewy.ru
From: stefan@datenfreihafen.org (Stefan Schmidt)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH wpan] ieee802154: atusb: complete each transmitted frame only once
Date: Thu,  3 Dec 2026 09:14:10 +0100
Organization: Usenet Network
Message-ID: <179628563627.233542.12025786720116701404.b4-ty@datenfreihafen.org>
References: <20261110-atusb-tx-once-v1-1-43e2b92f2072@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2433004"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:gYentNycHJ12rtUNYRkNJwK2cec= sha256:Oq2nRASx7kxvXrDsg31S71+tDHAcB42bu/rnd7YsMtQ=
	sha1:CRQ+XDn4LjpWfm+2fJYPuSyFFVY= sha256:UISyRK1ip2Q7riqEODBgiUx9IP+k+iKoj0w8hqireLc=
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 D707F11710A; Thu,  3 Dec 2026 11:14:41 +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 pXeD56eLZTqy;
	Thu,  3 Dec 2026 11:14:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376396-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=datenfreihafen.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 73F1D117869; Thu,  3 Dec 2026 11:14:28 +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 807BC2D051; Thu,  3 Dec 2026 08:14:24 +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=1796285664;
	b=bLoG37y6l6fyG9Wyb3FUCLzo0AzCIlckKm9rfFJpNAQ0bGqGs3T8cbdSJE+K2o5rYNLI
	 FReZFkTVEogej8vVLT6y2XVzMpRcINrSzcDNmrPRyXEeNKko7oYhN8OUSL9vhKjjh5Gqb
	 zKjY4+49X1AjDPGwqyrRp6J3YV8BbFDGCZB94BtM9gLKPjJ0Xy5XH6T1qw6oP2HhaZIsk
	 WnaUbjb9kEjDSepwNrZLb0KJae8IU74pZ7ZolQXXI9TLxPizjDj78xjEA4Lo5Bc57wWQG
	 2IwlSsS65tJWjZJjTR0c1xLxLj8y3VBqcez10bk4sFVKW19NwtWUVgY1pfVhZAebf5A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796285664;
	h=X-Original-To:Received:DMARC-Filter:Received:From:To:Cc:Subject:Date:
	 Message-ID:X-Mailer: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=5/Gpmt2cSPgM0lcha6qw7gHyZ+uMWAUaAesgD2i1PaE=;
	b=Ra6QKh0MDVujJy6fTvG9Xax8/K8+t1RN5gI/72ktSWjpAMzsB+K+q0GOQgG1TOTfs7sq
	 dS6BGBUUdjpBE8dnlztnCmP1gUBiewHmSf9O7Kru0HGuKbT9LcAf5bSPnHAw9LYUdlvLV
	 jwL1OgAxTuD4OByVez4mZuHGWnjJ3mSrwd9QybbxyNprKjr8CxdapjrdRr72TN977wop4
	 2onjjnh78CA8Y+mpkgdM8QDn5T/XYq3JXTxIBMuNM6YeNS/FBE8a0trNpsNdHnNGh2Urg
	 l6R1yx36Av6BJZX7BNkDNo0hk4JJigxsXuMJxWuNpnrBe1An5l4IEQu5VxdVe0L+Dww==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=datenfreihafen.org;
	spf=pass smtp.mailfrom=datenfreihafen.org;
	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 5A50D606A32D;
	Thu,  3 Dec 2026 08:14:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=78.47.171.185
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796285658;
	b=s0QLVdhzFYE+YysUJ6Gcr11iUJDD5lAn8WCO4fS2YH5xgQEzPtEzbAXws6q8P3rgRCNh
	 uWmfFrau/zC3Rq5x89k9yIYzkyaqoOFSuS0sXDju9lU4GX6skrWDNaVHt/t5HR01pbysP
	 7HtTxUKl06chZqojjxFOdGOcuzKmfxQAEnXo8tT6z7MR+UcBwuTOsqJntFWUgve7qPgxK
	 repQgzWMTFPO3hV3Y1VyIuNjs0nO7XUbCquuxiIxBZ1qWJ3lnEt8QMvYwrxruwMaikihW
	 RkDyNDEF0pXD15A/kQz+fD92koBlx5DJrZryG6Onl0WNweJDDAZ6r3VTeTokfJocfWw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796285658;
	h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=5/Gpmt2cSPgM0lcha6qw7gHyZ+uMWAUaAesgD2i1PaE=;
	b=p0Zgrev9i2uwUg8qAHphVVbTibP0fxsDliSQQyRsz9D4pFh+JyKBjnP6efPKVME9DB1I
	 9sFzCjPcwENZpMuHIZWNJ3MK0ZbdazZshgkQiAz1WqIEavn/VE7JVxrhOuinUSmZoTGRS
	 x0Fm1e0Ib6IdwNRE9MKWSYcHnt71LEQKUbt8D/dxgTsyfkuFgu7C6wkupK7L6IoyVukQq
	 c++nlXl2YrbzIJJjoTh8e7o8RQBnyB928uYR9lb0w4E7MDNgTv5PPp+Er+xKyXCuNco4w
	 5nrn61kG3Sg96Ryz6Hb6caJR6gNhdebCo0wqTXoaKkIcK6GHBQI2DE9nhpHcEcrqbcw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=datenfreihafen.org;
	spf=pass smtp.mailfrom=datenfreihafen.org;
	arc=none smtp.remote-ip=78.47.171.185
X-Received: from proxima.lasnet.de (proxima.lasnet.de [78.47.171.185])
	(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 4498D606A322;
	Thu,  3 Dec 2026 08:14:18 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4498D606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=datenfreihafen.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=datenfreihafen.org
X-Received: from work.datenfreihafen.local (unknown [46.253.254.165])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	(Authenticated sender: stefan@sostec.de)
	by proxima.lasnet.de (Postfix) with ESMTPSA id 2070FC07F4;
	Thu,  3 Dec 2026 09:14:15 +0100 (CET)
X-Cc: Stefan Schmidt <stefan@datenfreihafen.org>,
	andrew+netdev@lunn.ch,
	davem@davemloft.net,
	edumazet@kernel.org,
	kuba@kernel.org,
	pabeni@redhat.com,
	linux-wpan@vger.kernel.org,
	netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
X-Mailer: git-send-email 2.56.1
X-In-Reply-To: <20261110-atusb-tx-once-v1-1-43e2b92f2072@gmail.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