🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25766

Re: [PATCH net v2 1/4] ieee802154: cc2520: ensure tailroom before skb_put() in promiscuous TX

#25766
From: Stefan Schmidt
Date: Wed, 02 Dec 2026 12:16
33 lines
8654 bytes
Hello Hui Peng.

On Mon, 21 Sep 2026 07:42:04 +0000, Hui Peng wrote:
> In cc2520_tx(), when priv->promiscuous is enabled, skb_put(skb, 2) is
> called unconditionally to append the 2-byte software CRC without checking
> whether the skb has at least 2 bytes of tailroom, triggering
> skb_over_panic when skb_tailroom(skb) < 2:
> 
>   skbuff: skb_over_panic: text:ffffffffc080071a len:386 put:2
>   kernel BUG at net/core/skbuff.c:214!
>   Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
>   RIP: 0010:skb_panic+0x170/0x172
>   Call Trace:
>    <TASK>
>    skb_put.cold+0x23/0x23
>    cc2520_tx.constprop.0.isra.0+0x8a/0x1d0
> 
> [...]

Applied to wpan/wpan.git, thanks!

[1/4] ieee802154: cc2520: ensure tailroom before skb_put() in promiscuous TX
      https://git.kernel.org/wpan/wpan/c/07cea87df087
[2/4] ieee802154: cc2520: flush fifop_irqwork before destroying buffer_mutex in probe
      https://git.kernel.org/wpan/wpan/c/3b5b47d6c91c
[3/4] ieee802154: mcr20a: drop corrupted RX frames instead of reading 125 stale bytes
      https://git.kernel.org/wpan/wpan/c/7e81761c90c9
[4/4] ieee802154: mcr20a: fix 1-byte out-of-bounds read in mcr20a_handle_tx()
      https://git.kernel.org/wpan/wpan/c/3e55353ea9c7

regards,
Stefan Schmidt
Technical Details
Message-ID: <179621376050.4008582.1804800093169027009.b4-ty@datenfreihafen.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375757-linux-kernel-netdev=dewy.ru
References: <20260919213639.3316625-1-benquike@gmail.com> <20260921074207.2289391-1-benquike@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375757-linux-kernel-netdev=dewy.ru
From: stefan@datenfreihafen.org (Stefan Schmidt)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 1/4] ieee802154: cc2520: ensure tailroom before skb_put() in promiscuous TX
Date: Wed,  2 Dec 2026 13:16:05 +0100
Organization: Usenet Network
Message-ID: <179621376050.4008582.1804800093169027009.b4-ty@datenfreihafen.org>
References: <20260919213639.3316625-1-benquike@gmail.com> <20260921074207.2289391-1-benquike@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1967664"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Ea84LU7mZNYDHAtjDvV6wGLbzYs= sha256:JeH++DBxNsAFlLRYgsJi1pkgouxdmxTTXYAqVkYPmtM=
	sha1:9GKpm6wwA28v2ogP14gqRxTG6eM= sha256:3r51wvkFpu+TBojKMWDXZGsEY2zNpqwlRmvQpOY9Jrc=
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 1F488117620; Wed,  2 Dec 2026 15:16:26 +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 M6untC0eXY-v;
	Wed,  2 Dec 2026 15:16:22 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375757-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 C0CF71175D9; Wed,  2 Dec 2026 15:16:18 +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 E43D3320A2; Wed,  2 Dec 2026 12:16:15 +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=1796213774;
	b=Z124neA4+UE/URs5BN6pl/EigbWDTIf21TwyUX7MDjfiPEnOf1BLST6sirbq72kDACmi
	 Exl9XDCimFzrtJu2+pkd7oF3rAhBpeZ7zFy73rn1SgU1vUYvTkDRwqGfCF/ct46pn1QWS
	 lenyp041sSmO8wZ4rXmK2G9TbiC950HKCSGPs9GZXtwGX9TgGwWDvh/2eonkIpk9stRr1
	 qUxnf0zCpHGje7FEnidqpyueDdB22eqypEzEO20fgaJzvGvopdqDT42W6aBRGhmegdtjp
	 mo6L+SFR+oWat6b86V0HqvH5Pqzs9BSsOr5pa/KamcLsD+y2NZHlIGARsKNX34VLImQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796213774;
	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=+/+E0ayGvktuL+B4zoX61McPsEoIewdFKpfzUJ74/bM=;
	b=Xhtb7pSLUJ3SgJ8/lhfZevMRDpPbp3m3IL40lNLfg+X4ammJ2NoP9tIsmPAsQYZd+5rC
	 3N81SuMossBwsvszsPlB4D4TsIaDGUroCdj5I5829UNhXe/c+CmwJQNT3Ao4EohkScUAd
	 6SxrffwsHxsGpbkIemYRnqCtKLCkSIVC5xWVDKgkz+e3WXb2B/bMeacKHj3LpPGRNImwD
	 X8Wr1P1GVqYoIpudQO7PnqSAYlVZr2y+XG6osZ8LtZVSo4kG4/EVxqRj+9TzaDeiF7j8R
	 r2eghpKIIR1cpiOaWaUFJZBhbma1ZUNoS6SajKEf/VN/0ImmYHe4TsljbHGZq5gZFnA==
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 E39E1606A336;
	Wed,  2 Dec 2026 12:16:14 +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=1796213774;
	b=rDNLGbXwoTJMjWMDX83ZOMN7zZzjStoBxUjmZgASzH+tNYuUutWgmo4vPNQDitMsCUkb
	 gF31HpbTn6v+ZjA7UY6LQja8IRy8R3C1wIYXQH6t+JJg2yHHMmSHwBZrwzoH+oIPomhUS
	 wnoe1C552lCJ21vGXbGq/yzu08B0lVi6GYECC3MiRN+JdMR5Jq5BPBgw5uuKrdKMjGUds
	 Y8X8vhJRG/61+1omQ2jnCxA+uvrqoivusuAHy7QlKaLxye6kkwrYoGhFWlptAJ0FIi+MW
	 7qUsCxiBxOxDGREm0jTxpZ9+H4+I8iBI15RibPUPzYG7ZHLZXAnY2K7oAb7U1iWOsXA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796213774;
	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=+/+E0ayGvktuL+B4zoX61McPsEoIewdFKpfzUJ74/bM=;
	b=AJuj1LwTjVekP7aafVpmwTNT32WH/YhMrLK/KJSlWPoQszPQlgPlYfIjcOf1mEfsQCVn
	 L/Ku/PIEgxStYmzbr2I46nHTom7RlkRm7pkZKMajYHaoJzzeYhpxRgRxirpDEszmjs9sJ
	 l8ELNN2mbGWWJ+A0EnHVf07h6ybSp84YGb5AfXcrE6jxNzzQNEoEpRp7jVqkxjaUKY8e8
	 mROwyfsGsev7LFaCxUfDBb7EXbP4QgDg9VlfozJuq4KclQcMOMo0Bq6odIQW72eLk+rsY
	 GEZzxaYCq5VhynZXhHMxTtrFPGEUpKpYW15YbKV8trfYaeo53+iitxWWeLqu2ect6aA==
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 D24F8606A325;
	Wed,  2 Dec 2026 12:16:13 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D24F8606A325
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 7DF50C0338;
	Wed,  2 Dec 2026 13:16:11 +0100 (CET)
X-Cc: Stefan Schmidt <stefan@datenfreihafen.org>,
	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: <20260921074207.2289391-1-benquike@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