🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6510

Re: [BUG] net/sched: act_csum can checksum beyond a short IPv6 jumbogram skb

#6510
From: Andrew Lunn
Date: Thu, 22 Oct 2026 15:36
17 lines
9059 bytes
On Thu, Oct 22, 2026 at 02:46:53PM +0000, shaos wrote:
> Hello,
> 
> An unprivileged process with namespace-scoped CAP_NET_ADMIN and CAP_NET_RAW installs a csum action for UDP-Lite and sends a 300-byte IPv6 frame with a Jumbo Payload value of 0xffffffca and UDP-Lite coverage longer than the bytes present. The jumbo-length addition wraps the pull-length check, while the later checksum path still uses the unwrapped length.

Please configure your editor to wrap lines at around 70
characters. Standard netiquette rules should be used on mailing lists.

Flooding the netdev list with bug reports like this will just result
in them being directed to /dev/null.

If you want to do something useful, fix the issue. Please do it
slowly, one bug report at a time, so you can learn how to do it
correctly without wasting peoples time.

   Andrew
Technical Details
Message-ID: <76f5a903-90cc-4eeb-8afc-99b5cd89b75d@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350663-linux-kernel-netdev=dewy.ru
References: <20261022144653.60550-1-shawnq1@163.com>

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-350663-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [BUG] net/sched: act_csum can checksum beyond a short IPv6
 jumbogram skb
Date: Thu, 22 Oct 2026 17:36:18 +0200
Organization: Usenet Network
Message-ID: <76f5a903-90cc-4eeb-8afc-99b5cd89b75d@lunn.ch>
References: <20261022144653.60550-1-shawnq1@163.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="246893"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:nAvjctZBVXSXdvIC8J8z8IPnfuU= sha256:ouUettsdv14uKOHaeVgag8WFbh1gd268RqqBP9l9un8=
	sha1:Q4xuRL+40b4OmbQo3jkEvHLZVEc= sha256:/49Aqe3ERhKhkh4CohY+FB90vc+HRUN+6E47ZJ7/Qmk=
Content-Disposition: inline
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 0CAF31112DF; Thu, 22 Oct 2026 18:40:57 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	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 (1024-bit key)
	header.d=lunn.ch
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 Ei3TLXzdQ_Q2;
	Thu, 22 Oct 2026 18:40:53 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350663-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 668CF1112CD; Thu, 22 Oct 2026 18:40:44 +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 970AE3D5A9; Thu, 22 Oct 2026 15:36:40 +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=1792683400;
	b=bWUfJpZ7S6O0uRu7kevPggvvlLJyCwWPU/3GuMPVLr8uQJnIAHovurC9gX0WE9i5pQp8
	 g8Tm1PiBKyVVwmx1qI3USdtpEzf5d834zEg5RUYBPwf+d2qDQYRZk65HKcclZdRLoKJtU
	 6uMzAa2k2N4dbtt6VK2JHMj0kFcT8DbzpLCviEiupkho2Vj9JEuXikewsknVOLRJRJZFr
	 +IMAlztswtGUMSMNh5ZSWrO49IchHqxfzb29vXKLzCYSX8FtVTCVmFXms+syWFseTgsHz
	 miYzYLrsVND+DIUUv40fMxWmvQcBz3T0srgjGfRZ+TzVIyJA3SECkflnDWoqKO+Zs9g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792683400;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=BlPHtfzLH8dsb30F83yqKhUEwXui1hXO5a4OUJGPcFc=;
	b=Gg17yXq/xujHtb5XcBMJv+IXMjAVM6yG0eLgW+baUzrSJY8n6M8sKAOyzhWEK6LcE7M0
	 klQJFStfbFtuHVyvbj/p4OKCXDdyF6V4poeuX5BUsxd4C1g4lz2lCXjUJKt+9VxnNuc0/
	 QVrwWmul5pRW78OT4pXZNX5rrJK28Gb3B6p99EuWznl4E/ZXr7lIglGg6dA08tljwek5R
	 h/HjggRm77Y0XTaqqSh2BNUiQ0pinm98uISr68p74MJDi5TbU3/KjxXTDn/m4SOWmLoGI
	 pRoegQkX2974WMuO0tt1JR2vuvGs0EN7k9vnhcHQVIv1YhT9vbubXO/kfFsJpgHRv4w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=heZTRl0r;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 6DD5E606A321;
	Thu, 22 Oct 2026 15:36:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=heZTRl0r
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792683393;
	b=mvackGjdNJVqI294Wv1HXyRDOoWw97EhDH90wqOo1jPJ+521832WlRx0ESUI21Bu70el
	 n2khz82Gm3I0D/5TMs3ibDeGFBngna2w6SQ8fwtnVnyXddMiKaAE7Q4mWkINZvDrP3ntO
	 NzAZXiW1zeP+AlU6FZCz3Nu5oHxIUvs80RF849d3ZDFMxEu1+SR7SfemlWorWAbE6wdv1
	 LkvJaS76Eweokd785T0+SjURkEfnKFlyVmSTxkly6uhrt/zvLmBja/y9Y/iTluDa9kB7v
	 4gHuimxAzdgrO/zz5i/p+NWz8zpslQsL5l1qJT5Yl4em/XuqQrx93LxhN1bdlp+C8mA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792683393;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=BlPHtfzLH8dsb30F83yqKhUEwXui1hXO5a4OUJGPcFc=;
	b=MNDttxobSheDW9MHb7VZK3/BS9ULNoYBBqUOlptf6sdVTRAc+AtSPJPn7y+F6YuO+phG
	 DvYyxPWNNvMINEOJK8Dc5926VCu7c3pmLpMudYNTnnRmG04exiWuH4UgwRCHHbqwBzT1U
	 rutKEiSLl9f3gDehZva0ZOGVVKjbeuaRfDXgaqDggHLY6cFxaT1VTydZuGNYpov7uhuPE
	 8uRjU/WkP327Q+MpsvTaLwJxF5jdyzyDX3igaZwS3bowCEsPi14Opk1aZ8vJVLo22WBWn
	 x04YPhRlqCmtybVxutQHkm9vRUPE6Nken4VGMwPdNGg5dZYn+q1q/egueCk7vDeVsrg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=heZTRl0r;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0EDE606A31A;
	Thu, 22 Oct 2026 15:36:32 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C0EDE606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=BlPHtfzLH8dsb30F83yqKhUEwXui1hXO5a4OUJGPcFc=; b=heZTRl0r7SNZtglBRzLGDzf7jR
	6sFtHsMvhpI3sbMk6XJNHScjLhcwmoPWsLWTpyeP/F6wzdwTZ5o3j/9CMgTj7OIyPF3UGEsMU5Orf
	WZByC9txKcEpZXE1efLSs7MFOTR9bQ+M11gW0DRIzvqLQTy+TYrxh1E1ZLO79OpYvWVY=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xJuq2-00CHfF-5V; Thu, 22 Oct 2026 17:36:18 +0200
X-Cc: jhs@mojatatu.com, Jiri Pirko <jiri@resnulli.us>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, security@kernel.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-In-Reply-To: <20261022144653.60550-1-shawnq1@163.com>