From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 536DD1F00893; Tue, 1 Dec 2026 15:58:54 +0000 (UTC) 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== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: netdev-bot+sashiko@kernel.org 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 Subject: Re: [PATCH net v2 2/4] xdp: Size zero-copy skbs from the data, not the frame size In-Reply-To: <179612875635.3146.8031227810272631513@kernel.org> References: <20261130123737.125432-3-bjorn@kernel.org> <179612875635.3146.8031227810272631513@kernel.org> Date: Tue, 01 Dec 2026 16:58:52 +0100 Message-ID: <874icxouv7.fsf@all.your.base.are.belong.to.us> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain 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.