🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25356

Re: [PATCH net v2 2/4] xdp: Size zero-copy skbs from the data, not the frame size

#25356
From: Björn Töpel
Date: Tue, 01 Dec 2026 15:58
14 lines
8557 bytes
netdev-bot+sashiko@kernel.org writes:

> [Severity: Medium]
> Does this description make the overflow look harder to hit than it is?

Yes, agreed. With 2K chunks, no UMEM headroom and the default MTU, a
full-size frame that a program passes on ice, idpf or gve already
overwrites the shared info of the new skb. Head needs 256 + 1514 + 320 =
2090 bytes and gets 2048, so up to 48 bytes of the shared info come from
the packet.

The fix is the same for both cases, so I'd rather not respin only for
the changelog.
Technical Details
Message-ID: <874icxouv7.fsf@all.your.base.are.belong.to.us>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375204-linux-kernel-netdev=dewy.ru
References: <20261130123737.125432-3-bjorn@kernel.org> <179612875635.3146.8031227810272631513@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375204-linux-kernel-netdev=dewy.ru
From: bjorn@kernel.org (Björn Töpel)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 2/4] xdp: Size zero-copy skbs from the data, not
 the frame size
Date: Tue, 01 Dec 2026 16:58:52 +0100
Organization: Usenet Network
Message-ID: <874icxouv7.fsf@all.your.base.are.belong.to.us>
References: <20261130123737.125432-3-bjorn@kernel.org>
 <179612875635.3146.8031227810272631513@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
	logging-data="1754989"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:r6dk9dbgQvkC+digu0uwSOLOiGI= sha256:Ama6AQaCzBoO0uZrLenWuEoAjoK54RAJAHD4hCa0gbE=
	sha1:KVbvgU2hQFdQgp6r9S+sypRoUvg= sha256:LGrAx/D7TjC4Ys1z6K537JzTOSChnGbklERfluZeWiI=
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 9F48511740B; Tue,  1 Dec 2026 18:59:15 +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 QmJQl_X-w7QD;
	Tue,  1 Dec 2026 18:59:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375204-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 7DE1B117407; Tue,  1 Dec 2026 18:59:04 +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 9C9E229FAC; Tue,  1 Dec 2026 15:59:01 +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=1796140740;
	b=ogf0Qb9H98g4q+jQ69d7r0zZGvAhkwfR9qYxGt/3yo7mt8I+yD2va5X8IEVChCkkN+IX
	 Ck7jUXI5JoSJmN6mZEuOZE6K/VPApKWn2dhziEB7pKk+fmAJu6hzCnWihWrWPgtn3MVhn
	 0DufX+M1qjvLZPS3NR6+1DIVF/1KoYsdXegFwozfg5nvZpRRaoLe33w0baVuTocGxcqO3
	 Vp/s2dAxP/zYgtilPD/1XyFul3I70GJy6753ijFx6z+cqDf66NyLY8oSfRHCRsIhi6XXa
	 /oeTKGkOSJIcJLMNFFphYCZngXB3LD130zfXVDRq8t2xCvR4+Z6VrWr4nq0lUlc0jtQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796140740;
	h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject:
	 In-Reply-To:References:Date:Message-ID:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type;
	bh=txk8zDNJL6KthPqsHuETQ4MO/mMGYkoTfhnD02V4n7c=;
	b=gRjZa3vnzko/LpJNnogxjciQ5v+QYBxwPcXO+ENAg6lxfQS74oR7vzxqxlWMH+JHmBW3
	 CFyezujfWrD58KLpBT/buT+VcUst+xG641H/FzSae64SHaCvUnqylrDy/ez7i7ZMQ6EhY
	 dRHOrWjPJzWLEL4dl+t6IfbfLegEEQvH4iAzbF/X39zizJh58GKJFaMaI3f+37hVOLDFC
	 owIVjW4tZLtAktGkhnrZkovTh6CXwoSCrkn7yGu8TtLbQEAAxBIi+kOdIYEYtRTXBcTgf
	 HMjxpNZqLhSAyeyBsCUZrkozNkyZHpCKpPT7qdRr+Om92S13d1WqW+UXQuahEkf3gAA==
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=SV6VuSgK;
	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 DAB95606A329;
	Tue,  1 Dec 2026 15:59:00 +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=SV6VuSgK
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=1796140735;
	b=CBz9+DdsbFQSKFyti2LH1s3OlR0/8dHlPTu1VwoWkXMt9+jNK0kx73jIYKKMIAhV9B/G
	 +LwZqDjLVOjy08EleOo25CSZWRzit0++xe4jnNn0XX0tem5T3hJsfS4DZ97y2GJcnmILm
	 jR/E7yF59rFWi48RlZN65m1rpNXk+rMCNhiJofrgTKwaWHZGuZsCChidpNeVzrOFIt6zj
	 Tw9Txt0Dpc2TSKe4b6Cw2CFL1qtvN4kEgBDQLx36GM4q9x8fyKermlkc/y/j6j8rwLGTk
	 ysQYlJaWqiiJHiiq0xdhqAV1rcxWWT+cR8JVcbza9mrSjPs0UOMXD402NBSb8S9izFw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796140735;
	h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References:
	 Date:Message-ID:MIME-Version:Content-Type;
	bh=txk8zDNJL6KthPqsHuETQ4MO/mMGYkoTfhnD02V4n7c=;
	b=TrRrp/DI6/BZwdN0A/PyrhNBOJoZNjcYVFOWhxJWNka/vBjFiFeDU4TSS4PzgKQKL+sV
	 bw6QlNx98RUmBP01wMmZiklgFKkGd+jiv30q/jAK0V76FTx9t83gI84OgT45cvVzLrUiW
	 BBqWYQUN7G2Xs6ugdxR7WDrMWBubp9Zd0XJ6l6YWmBAmfgegYvA88plG3M6tMi8SUleKP
	 j+EYnYUG/9d6DV3ksOgV5uMSB46mAkOEVrFBbca9Y6Py6ZlundASLuDwtfjbw8GklqvTP
	 8zS42evRIbgSMF09sDqMn7dn1ZNJOa9awVp3SVXHluJbpDHPnms+faBwI0adWjEXaDw==
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=SV6VuSgK;
	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 05B74606A320;
	Tue,  1 Dec 2026 15:58:54 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 536DD1F00893;
	Tue,  1 Dec 2026 15:58:54 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796140734;
	bh=txk8zDNJL6KthPqsHuETQ4MO/mMGYkoTfhnD02V4n7c=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date;
	b=SV6VuSgKzN+m3nL1VAkmgEh3q0rtYzgCaBW8PsF3Kbmg/duGMFtzjF3C6ThfzSmyi
	 ZCBj+FX4eOHe2JC6c1x+d2uKFAkPRcyAmSLNQJwaKAYDAu4QdHzK6VLDWGS+jCyn/R
	 JpHOgNegkhaCoqm3VuF43BM74rEeiIczPy0GRN/XUwshl78Xvc6kyD7WR6XzSgmpnO
	 MRHrMlKpV80JztMvuHJJoxx+75+UGvBbW3Emm/SeOPaKkx+usTt/GCmMX8jk0VlDUl
	 337shuSWuHtPG17+uXcMv6HCcmk439LlrRQ3g1ie4gmee2oRzMnQ2wdZez2LicoV7S
	 0PCzdrwwFcncQ==
X-Cc: magnus.karlsson@intel.com, maciej.fijalkowski@intel.com,
 aleksander.lobakin@intel.com, ast@kernel.org, daniel@iogearbox.net,
 hawk@kernel.org, john.fastabend@gmail.com, andrii@kernel.org,
 eddyz87@gmail.com, memxor@gmail.com, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
 willemb@google.com, netdev@vger.kernel.org, bpf@vger.kernel.org,
 horms@kernel.org, sdf@fomichev.me, martin.lau@linux.dev, song@kernel.org,
 yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com,
 ihor.solodrai@linux.dev, anthony.l.nguyen@intel.com,
 przemyslaw.kitszel@intel.com, intel-wired-lan@lists.osuosl.org,
 clecigne@google.com
X-In-Reply-To: <179612875635.3146.8031227810272631513@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