🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22935

Re: [PATCH net v1] mac802154: avoid extra skb references in RX queues

#22935
From: Stefan Schmidt
Date: Thu, 26 Nov 2026 07:28
23 lines
8274 bytes
Hello Xuanqiang Luo.

On Sat, 05 Sep 2026 14:15:23 +0800, Xuanqiang Luo wrote:
> __ieee802154_rx_handle_packet() passes each cloned skb to
> ieee802154_subif_frame() and does not release it after the call. The
> callee consumes the skb on every path: it either frees it, hands it to
> the networking stack, or stores it in a queued RX descriptor.
> 
> The beacon and MAC command paths nevertheless call skb_get() before
> storing the skb. The worker drops only that additional reference, leaving
> the original clone reference without an owner and leaking every queued
> skb.
> 
> [...]

Applied to wpan/wpan.git, thanks!

[1/1] mac802154: avoid extra skb references in RX queues
      https://git.kernel.org/wpan/wpan/c/6b4e5919526f

regards,
Stefan Schmidt
Technical Details
Message-ID: <179567678219.1859476.7303574828087613735.b4-ty@datenfreihafen.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-371919-linux-kernel-netdev=dewy.ru
References: <20260905061524.91223-1-xuanqiang.luo@linux.dev>

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-371919-linux-kernel-netdev=dewy.ru
From: stefan@datenfreihafen.org (Stefan Schmidt)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v1] mac802154: avoid extra skb references in RX queues
Date: Thu, 26 Nov 2026 08:28:15 +0100
Organization: Usenet Network
Message-ID: <179567678219.1859476.7303574828087613735.b4-ty@datenfreihafen.org>
References: <20260905061524.91223-1-xuanqiang.luo@linux.dev>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="406391"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Fjw+qzihLDPUK3T+F1bQA1tdn2M= sha256:SIzJfa4uFxQqbSwcxrzYx1lae5ySqmAbWZKASm1AnpU=
	sha1:qzmVCl1dAU8ycoeI44J8Qb8ya8s= sha256:oGOpz9WcLzsjKONudQgWBouzklZtrncSJEQb7jUsnLA=
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 95894125EB3; Thu, 26 Nov 2026 10:28:57 +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 l0fY5h69rZ3R;
	Thu, 26 Nov 2026 10:28:54 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-371919-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 62ABA125EB1; Thu, 26 Nov 2026 10:28:49 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 0DA422B678; Thu, 26 Nov 2026 07:28:47 +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=1795678124;
	b=bSJQu6BIweHd+r6uydwDf9GmFpDlgcZ3uz7ViTo6k+qKZKD+zelezHB04n82I6cX3pLf
	 PWu5RTKGK3VczOBF9KWP+hXtvSSJy/jnZP9seTAHbLVoX040dYbEs3gElsYiKSvOxp7sr
	 UcM9LsXFcLqkd5MTi147qOoxP4+48Te/WgSqn22oiSCznjSQppCgUKadfY7e4i4K2nlCP
	 kCoW+wCtl6jlb/haG6l53MxCeIaTzKsg13Ef9Z12ZPR3XocIQ3ql5dv7pcqweQtz8Gmbu
	 dDa9ffdu+JPJb+JZIMuBWN0RwoiN0lK8ACWv6PJIaQbzOuJnQQVdXXHEaxswCA4zMbg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795678124;
	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=9er3puoTvMyRaWiL3gMCIc4iB91P1C4PLn8ZexfgLKY=;
	b=xnnkPfcouXawz8pVZJT/IBHc8mz6ky0Pd7Ll/aB6iL0o9aGdU5pKtoUVrTt5Kk/lOzlb
	 qcWwoZsPvG4EUNiOpFPRoRDcNebMrWOiJmnVrfcGYgmR5x3dz4eB6y/JN0isKsnljGnV1
	 RvEVVfYLLt7xGXZZlAZC/DUi5mQlndbe94cpEyrSWWkxdaOEXvlSgmpHp6b78XKnMjWJr
	 XWVRajctbEpVd6JxU5z3VlvwiZ4zjaMWdTnlW3i18V0MIedpn61w3OivuM2MWVMgZJ/Hn
	 9z3Ppe+XygCDM+VNmb8DxfuDik6uRq3LLnfDhfuXOrnA21LCn++XkF+dyxJbKY5gZZA==
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 66FEC606A33A;
	Thu, 26 Nov 2026 07:28:44 +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=1795678118;
	b=Rrn0WCcXNCGRglPgEIwhsLw66611ThXxz9nVW0oFk5Uwp53PyxWOULWzzba3J+cJX1ST
	 RRhVuR6lUCqMWq+BaBULrCG4CsrgTuzr1vXb+Z82drv+N/8P1QZQon2jTIsdpk3CW8Pi3
	 kvc9cDnqQ8nZ3GM60D/ZF0tN00P/zqO71PZkQyKggAESLSKg4OIj93FU8wTrlTEVaUxIy
	 GeGZyr5VMvilumlIW+dMRG986giiNnAP6rWML+JJjP3iYlRCG+R+JVrPMHk71k1oiZX7a
	 /d4BEJp2g9Yd9jO/PbWEjcNV1Ccgbpvp/vk+uXM4hIZAZkgiTpYvQID0VW25m/CGAJQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795678118;
	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=9er3puoTvMyRaWiL3gMCIc4iB91P1C4PLn8ZexfgLKY=;
	b=Gw8ZNtGGAr6KXCI4kVA/ZpZShyTMzhSZya31QVgM7ewaLoWfOf+2atG67lDAbw8s2g5N
	 4ij6syHOt2Qhpf1HfR0QudpdLA8jEosTFDewqKtVW+erhjIOc+9JX4oshDZ7hpz3xK3Yl
	 p6UvnAZOzc7EY8yEVSgjfTIVCU0KP5wiKhjeHX2itxZSY728x/u7FzCdgewU6H1zChuiu
	 YJw5+ZR0ohiNzE3ZselSopkjcxyUe/lSGb0FvbeULaeTSSZwY2HggPeVlhP9x+TMkZDon
	 NH/3fFGD7xSwHUFdc+ZX/N6gCqoEtXbXivWol7Ow/EWZ7mQNjKsPAMEmk9jrplEphbA==
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) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6862D606A31C;
	Thu, 26 Nov 2026 07:28:36 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6862D606A31C
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 DD0AEC06DB;
	Thu, 26 Nov 2026 08:28:27 +0100 (CET)
X-Cc: Stefan Schmidt <stefan@datenfreihafen.org>,
	netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	alex.aring@gmail.com,
	miquel.raynal@bootlin.com,
	david.girault@qorvo.com,
	davem@davemloft.net,
	kuba@kernel.org,
	pabeni@redhat.com,
	horms@kernel.org,
	stable@vger.kernel.org,
	Xuanqiang Luo <luoxuanqiang@kylinos.cn>,
	Eric Dumazet <edumazet@kernel.org>
X-Mailer: git-send-email 2.56.1
X-In-Reply-To: <20260905061524.91223-1-xuanqiang.luo@linux.dev>
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