🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6987

Re: [PATCH bpf-next v2] bpf: Use memmove() to load bytes from an skb and an xdp_buff

#6987
From: patchwork-bot+netdevbpf
Date: Sat, 24 Oct 2026 04:00
26 lines
9041 bytes
Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Thu, 22 Oct 2026 16:53:11 +0530 you wrote:
> bpf_dynptr_read() on an skb or xdp dynptr ends in bpf_skb_load_bytes()
> or bpf_xdp_load_bytes(). The destination can be a slice of the same
> packet, so it can overlap the source, which memcpy() does not allow.
> On x86 with FSRM memcpy() copies forward, so a destination above the
> source gets the first bytes repeated:
> 
>   p = bpf_dynptr_slice_rdwr(&ptr, 8, NULL, 64);
>   bpf_dynptr_read(p, 64, &ptr, 0, 0);
> 
> [...]

Here is the summary with links:
  - [bpf-next,v2] bpf: Use memmove() to load bytes from an skb and an xdp_buff
    https://git.kernel.org/bpf/bpf/c/b93cf2c8a055

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179281440907.1452471.10626063487064025333.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351302-linux-kernel-netdev=dewy.ru
References: <20261022112312.31563-1-ayushmanrout27@gmail.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-351302-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH bpf-next v2] bpf: Use memmove() to load bytes from an skb
 and
 an xdp_buff
Date: Sat, 24 Oct 2026 04:00:09 +0000
Organization: Usenet Network
Message-ID: <179281440907.1452471.10626063487064025333.git-patchwork-notify@kernel.org>
References: <20261022112312.31563-1-ayushmanrout27@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="676648"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Ur/t/9tyU/trbZTgqOXR50lRMNA= sha256:mBolun5cY2n1tZj9jDPoLt8HTJRWBQaih4I9kt65K1Y=
	sha1:rDZe3oKRXMpIo9c2geVteg1JdtI= sha256:Smma2npsOClpwMvtiXx7RcztHeNixR0hie2cP67xejc=
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 7F3E11115E3; Sat, 24 Oct 2026 07:02:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.739
X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, 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 LAmHOhFCX8H2;
	Sat, 24 Oct 2026 07:02:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351302-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 EC5F81115B2; Sat, 24 Oct 2026 07:02:42 +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 11B163B5BA; Sat, 24 Oct 2026 04:00:12 +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=1792814412;
	b=0YEsdenGHzRmUerCGnOqVQN1zL37aVGP2JxCgqQSkZC3iFOVu7vMQAsXydsSIuR8qbjx
	 Ugm4y+Pk2XWpOEFK+MjyeKOVjwwY9nuf70DVQDLI6M9eD4gIC+Orsa+QTzFsV6jsBH2VP
	 XjgjKdixs6cMZ7TApjAWfpySYNKv6qKncJaxK6Q2CQ5xpEOnjrYccurm2Cl5PYuetLqNP
	 kcjrGRwUeRXgCJVpkVKF+jah1/zF1MjL5HqjToUnY3PAGlSLTVQ6e8Dfm6UNYz/1OWn2V
	 UhslvVhzau1ekV2NWwOGUhm2JbIx3pTyTVdhqCp9H8SQMYKfTpvfZ+OG8nVrtC34rUQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792814412;
	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=pj7x8YuGt0pgB1PYOp/bih6oBnaUdEGTISR4jtMdBN4=;
	b=u9VahyGUmGgKTtlHAaWze87rX64j2R/0SzoN5wp1AlOyyE2ZJmr36pxTyW6tRXLLIx3i
	 CcrWNMt9sxi95sBccSqlxmC9k3ING0lrk+n47fYYAGKh6OYeSq8YKZy/P29ZxB4ZNJsEr
	 PVFFqnyhPitRe9p4FR3M9MQTooTBze/Ty93dg0YpYpabcRWKyt7o5/3KYuG7lH7YCql/f
	 y4+u4NfRjMX4b/WuNawNBJm9BiJX2M796Akt1wI7WKXrnVWntkVlXDwbQmaYaGj+JpLvF
	 dj9AZLHKb+nw6PXwQl2Ac9s2dKiASFn0wX5mV1t8OS2iQUuX2/HJ8lMuStdYFBSCeyg==
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="Ot2D/KNE";
	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 DCBC3606A31A;
	Sat, 24 Oct 2026 04:00:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ot2D/KNE
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=1792814411;
	b=zZkbDw6rk/BvIrfmCznaKCFenLWQ3ge4TY+rpHsttC16JrYZjcDIvt1d2oIKYIQ2ZroD
	 O2BxUNx9JRojhcGKFBUNXnsfWs15kXSA6ieeCdJdckcNlCerz0xpu17RMldbZUNIhrSHn
	 D2K7JWSTRAXHfbhGul0cf8k5Ldp+SH8vF0JYDgGr46tqRjtkZ2A/uLTOW3nysWV431x9j
	 ymjgShdt5KKkEzDM8r44lbB3mhx9Ju5eugvHkd5sLYRBuedELOVMwbFOkoAAlc3imZmRU
	 pAQabygXOZ87Q5oNeYexrxGfCIqFpmz3kT/BCrTU6CqKGm0cwdLnFERRz9ThN+19zwQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792814411;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=pj7x8YuGt0pgB1PYOp/bih6oBnaUdEGTISR4jtMdBN4=;
	b=A1zKuAb9NRoeM7p4YIPFEeEf2hAXbLAUrtZ4asRCx3X1iJa/DiTqVYxvXpDgqw6DDlWb
	 6XT9tW42B6jIzFEYgOnrx6mHSA3cacxuql7x9nxsd8LYIRaWOzc0vKXFwOOCj9PvvYGJi
	 XqNms2XJ/lOouf+w/3n3lWH1on7nn0T/L2l1vk0yXEv6xZvtnyYmMH3amVY30fpMM/aft
	 50Bvwk1CrRxQFmng32w1MuZZ4J15eZJJlZwqzXWWDUHudf7jpuYlG4WeWBS6At+W4wxyN
	 5ayCx38gH1NWXES3RWUB/K1iEXS2ji2MvMnGiT2W7OZIAHd9brP5Qhc8jOL04mtS42A==
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="Ot2D/KNE";
	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 B679D606A31E;
	Sat, 24 Oct 2026 04:00:10 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C2EB1F01825;
	Sat, 24 Oct 2026 04:00:10 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792814410;
	bh=pj7x8YuGt0pgB1PYOp/bih6oBnaUdEGTISR4jtMdBN4=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=Ot2D/KNEoZj54uqTVWQUdMayibFXqRBGxHlxp7YVwLTgVWqEv9ligngi8nqTwtlL0
	 mu6Db4VEQRZ/BxZEixBTzKt53vGgjPnaDZPg3nPnTielem7FsE585j9fffkTBndeOa
	 QJOfVYQy5DVae+iAv0CQk20IU8QUKcUXXQ5WHZdgQyUQAQPAqhDtmZf92EghOiAuop
	 LzJMyAzj5kv128qo8MREDSkf/rZTIZwwTfxQveHyHRMKyF8SSUEa+CEZpxmU1Sj9Rb
	 5UI8RfLsO0LYaplpwaXo7vIqOPODUG15BehQIaMVDh06ZEAuybdJQeGJ153J48ftf4
	 jEQjPVN+AJ9GA==
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 815F0391B17A;
	Sat, 24 Oct 2026 04:00:10 +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: <20261022112312.31563-1-ayushmanrout27@gmail.com>
X-Cc: bpf@vger.kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com,
 sdf@fomichev.me, martin.lau@linux.dev, ast@kernel.org, andrii@kernel.org,
 eddyz87@gmail.com, memxor@gmail.com, song@kernel.org,
 yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com,
 ihor.solodrai@linux.dev, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, hawk@kernel.org,
 drosen@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org