🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19451

Re: [PATCH net] xsk: reject TX checksum requests that overflow skb->csum_start

#19451
From: patchwork-bot+netdevbpf
Date: Thu, 19 Nov 2026 23:00
28 lines
9153 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 16 Nov 2026 16:28:34 +0000 you wrote:
> xsk_skb_metadata() sets the u16 skb->csum_start to hr + csum_start. With
> 64K pages, csum_start can be close to U16_MAX, so the sum can overflow.
> The checksum offset then becomes negative. With XDP_UMEM_TX_SW_CSUM,
> skb_checksum_help() triggers a warning. Without it, the device gets a
> CHECKSUM_PARTIAL skb with a negative offset.
> 
> Reject this with -EINVAL. Use the limit of skb_partial_csum_set(), which
> also rejects U16_MAX, the "not set" value of transport_header. That
> helper cannot be used here, as the skb built for an IFF_TX_SKB_NO_LINEAR
> device has no linear data.
> 
> [...]

Here is the summary with links:
  - [net] xsk: reject TX checksum requests that overflow skb->csum_start
    https://git.kernel.org/netdev/net/c/4fdfed6d0990

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179512920454.3911009.381821320115182795.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367410-linux-kernel-netdev=dewy.ru
References: <20261116162834.30087-1-tianyi@cloudflare.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367410-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] xsk: reject TX checksum requests that overflow
 skb->csum_start
Date: Thu, 19 Nov 2026 23:00:04 +0000
Organization: Usenet Network
Message-ID: <179512920454.3911009.381821320115182795.git-patchwork-notify@kernel.org>
References: <20261116162834.30087-1-tianyi@cloudflare.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3004767"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:KpUvgje4GakdUztke785KEou6K8= sha256:BuSUjOAIlcqzAXHOICP7pj/WK9Him2jKl4GTbpo9f+o=
	sha1:xHrK3RfASn2YIZp69QfhTz0VZ1k= sha256:xvudN6dfI46U4B70bBh/YTfGKjE2sod9kT5ETAZ7ObE=
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 95C001157EC; Fri, 20 Nov 2026 02:00:24 +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 HsQHLVltO0Ry;
	Fri, 20 Nov 2026 02:00:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367410-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id C39C111574B; Fri, 20 Nov 2026 02:00:12 +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 3F8D0100DCF; Thu, 19 Nov 2026 23:00:09 +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=1795129207;
	b=IabejEv38XiSdHegFoX9bLHp20YHsTvbnZr1NwGa3Jgd58IJIR5ihMjpu9rdXDDQ8yQ6
	 +TkuK4gU7PT6bQ31NOYWjDCazR+vrLz3z9Ph4K4EDUGZCtiUUEQQUZmnzrFj+Qat+d+6x
	 O2HnBXY8KUd3Rsk89IYypQkzMQCUgiaYBOc9TLHy6gUlDFgdLmi5biecYBoLOR8mrVtNR
	 FChTXBCFP0czcKTwx7fjs7evTkiAqkXZNOXd/J4qHy5er9TlaikIVAPhc9SsfE7eJSwzp
	 zUpOkMsCq8kIS+Aj44jbdoT7/BQItnoaP71eGAKoFWTtrU5vzzTQGnaY16RBQ9mmoLA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795129207;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=ZwNqfd/ODl08kn0gCF5pEuaFr4IKC9hu1iMaP7bAi+w=;
	b=QbGvPCH71RjtzH6jeMMjOka04CGQ+XQQZE2zVAL5daW77a/OsTIXlsGs06jMj1/mfqce
	 i6ByzoyLzQ+GpC67s11RbqvZBVNKvu6XeWz38/SkjBGVc+rzAFmQxEeGWDJWV0jFOOzyy
	 BBDwKIssWGI5n+c/C+lcfAekM4KATwO1nw0zLxBNuaz7HbicYjpyYDXE4DTIF93uov9x2
	 ipj/o4bzcUBhpkhhtcIcoJ0O2oQFnod5KQ+5zuTdflar93hXf65dDQobvg7IbZOdcLu1Q
	 4YbTWXAFhSUgpES79HBhVLKI22irG0AAHn8iImKwX1FfCGbDF6mRmgmV1t9hNSt4hyw==
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=hjEfug11;
	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 289D1606A33D;
	Thu, 19 Nov 2026 23:00:07 +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=hjEfug11
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=1795129206;
	b=uuHUsUkI0eZ6VQM886leKWjvdvWhqbhI//yNcB0+8XjUaAdm6mc4RuQum+/Uxe9Wcvun
	 ugvImAOZQXTeVJgxl/mbZaX1YW+grRYd7ofuuo1OGlrLuTesWmuip8LOSpO4UFBXn1MDJ
	 JY7w3T/TKG5OJfw4t5VVz8uEjY1DoiukAiKGyYVg7wts8oEGF9Xc2EPaTG91MJ/JrrPP7
	 ughxGAn0tFZXdcNSme3iIU6NsAO8Oy9v3uFPSyyEP81ZXNRXbwYZVW6LCqvzK9s/MMk8y
	 NnknzkY5+BnMexj1lYac24X1b0sN6gpDSn5c/Pu0291RnQjpwb3P16NN/ofx4120QUw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795129206;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=ZwNqfd/ODl08kn0gCF5pEuaFr4IKC9hu1iMaP7bAi+w=;
	b=Uea6pJl7JpJSHS0Dn8BGSSyTbPquJHJHUfRV8fKeHhnt4oo6B8MYDXUHYDkQ3vG+dZD0
	 v1AQjW3SMfhZuAh/tZX9YYO5xAL2CsnTFo3B34b3sSmblzTrmiTjskHnf0rs/lZGr01aM
	 4RemRRjY/tvnwuRwCEsK2XuAkEU63VaxbUen8eSFKCxhJWG2ZW5cXS2zFgkiB9M0+23FN
	 haTwWJIPirGQX984cF5k7eJ3E2h3LSCKT/iUHu/y58xKe0z8zAiVuaRZ1VzLOJDKNP8xo
	 5eMX1tULNSbBhf5o0CpWDiW0vOEChnb7zyw+DDEN5EoftJY5IkqfKx4ljBqLAV07RbA==
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=hjEfug11;
	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 485E1606A32A;
	Thu, 19 Nov 2026 23:00:05 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF3F81F000C4;
	Thu, 19 Nov 2026 23:00:05 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795129205;
	bh=ZwNqfd/ODl08kn0gCF5pEuaFr4IKC9hu1iMaP7bAi+w=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=hjEfug11oE92j5tXZnKI2dU2lpKVZByphynV1t9qBCKA3qnOSJdOtboGH7dLBkaci
	 teyO3+hIN9gSRdI3jQ2as2DogtUQJ7CMg9Z5moIRD9uGG7/19Sb7UP3bx0iskm/k5L
	 WCOtMStCPiTLa90UUfGM1ekSipAI3e1OI2Gqj/KPP60jBO5Y/9PP7j232IoGhHMs7A
	 DDHgn/0+jLA0TUsRugXSKNZEQKsX/sssfQUCg/EAphdW3v7Ofz9r7sCbOGnzZdf5D6
	 wCcczJMJ5bEP9QrzKoC/I4y1AFXp4vpLvMUL9DsKClT/MwVhv3+MNuBEs51sMUycQr
	 wGQpbUNMcs5jQ==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id B46AA3808209;
	Thu, 19 Nov 2026 23:00:05 +0000 (UTC)
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: <20261116162834.30087-1-tianyi@cloudflare.com>
X-Cc: netdev@vger.kernel.org, magnus.karlsson@intel.com,
 maciej.fijalkowski@intel.com, sdf@fomichev.me, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
 ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org,
 john.fastabend@gmail.com, yoong.siang.song@intel.com,
 kerneljasonxing@gmail.com, bpf@vger.kernel.org, linux-kernel@vger.kernel.org,
 kernel-team@cloudflare.com, tianyi.gao@linux.dev, sashiko-bot@kernel.org