🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #9219

Re: [PATCH bpf v2 0/2] bpf: Fix overlapping copies in bpf_dynptr_copy()

#9219
From: patchwork-bot+netdevbpf
Date: Sun, 01 Nov 2026 01:20
28 lines
8864 bytes
Hello:

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

On Mon, 26 Oct 2026 21:58:07 +0530 you wrote:
> bpf_dynptr_copy() can corrupt data when both ranges are in the same xdp
> packet and overlap: a slice of one range is used as the buffer for
> __bpf_dynptr_read() or __bpf_dynptr_write(), and the chunk loop always
> copies forward.
> 
> Patch 1 does not use a slice as the buffer for a copy within one packet
> and copies from the end when the destination is above the source.
> Patch 2 adds selftests. They pass with the fix.
> 
> [...]

Here is the summary with links:
  - [bpf,v2,1/2] bpf: Fix bpf_dynptr_copy() for overlapping ranges in one packet
    https://git.kernel.org/bpf/bpf/c/696f0954e3b6
  - [bpf,v2,2/2] selftests/bpf: Test overlapping dynptr copies on xdp frags
    https://git.kernel.org/bpf/bpf/c/8f92b56d228d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179349600580.2297828.9362269929771966458.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-354170-linux-kernel-netdev=dewy.ru
References: <20261026162810.12862-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-354170-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH bpf v2 0/2] bpf: Fix overlapping copies in
 bpf_dynptr_copy()
Date: Sun, 01 Nov 2026 01:20:05 +0000
Organization: Usenet Network
Message-ID: <179349600580.2297828.9362269929771966458.git-patchwork-notify@kernel.org>
References: <20261026162810.12862-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="2595180"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Uc7hnVgeHU462mAQNGDTyK4pLYs= sha256:JRiJ+IA8rxiTJ3bnSZ11EmVDDsr9hVPRcGFr2imXfQ0=
	sha1:K1+gpbjNY+PsFUOCf4kww8wtl/M= sha256:QW8TQGDP+VLm3xp3KZB96DCLP0zPFtRxk8Ol0Dv8UvU=
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 560C11122CB; Sun,  1 Nov 2026 04:20:48 +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 estfub6F9Sn9;
	Sun,  1 Nov 2026 04:20:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354170-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 AC8471121B7; Sun,  1 Nov 2026 04:20:35 +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 8B28529E80; Sun,  1 Nov 2026 01:20:24 +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=1793496024;
	b=uf7ZYfhKt2ew7ApJxuUu1J7eVsQa5zP2t4Mrw3H0fz9CnuMahkRZOhbTdXm9rSLhwm8K
	 GcIekXjbhIkQp+JRyLeYjjxr1BPy2FatyyAnyf7NMonMGmWqHMh2uDIWl+UEeJ33kgBEn
	 jij2InxpWGbV6yPHHRcoh7KJhFNPljM58tJhgdHrYa6zjXT/YEu1T79EHg/vps7DHH+6j
	 y5s9ULlO5CsBaR5dBKvotrcksKSV7MSwlFn7QIJokFrYlFjoROwT9hxEmbM9WkPpAqfjr
	 pS390DkikxXaPKio42qk4oRo9FYL8JfZwk07qZUYtgtx3ZpHBd8rmNmPW5ZeGzZaYkw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793496024;
	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=dvpzB0yzQjGhBjkYwzzjz5S+INhesgIz56ILGUC/Uy4=;
	b=VecRxkxmZb9fEfAJKBR1fdbTsxX/6c96un5TMspIBceeJ897waNYYngyCmivWCl9xpGI
	 N4s74kPvGNxmOfX1uzv1U0ml5z8n6566ayZWF8M50bPh8xVE64V3qoNeLtZR8dPo5WCoc
	 bTWUXffW77MSLsH8m+XI7ygXbSU9t0TDgN3y6LmTdmg1HbNE/YDgYVziFHdo7nUVfY+Xa
	 En4gurO67lECxPBw739hLRHaxhkAwg6CGu+tfQ+7A9xu2gkD6S1gFEsdCr5pCxNaImsod
	 9ohdW0NcNrDQRyrM0g4fe+JfU7dNbvw3hJNu/49r7eXgYxE92+uQ9sqMeHQ2OoWYeYA==
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=LESISDDS;
	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 3E6CE606A324;
	Sun,  1 Nov 2026 01:20:24 +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=LESISDDS
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=1793496008;
	b=MxVzj9riRP5FRSRIyucC7QdbTtI+kk75MHdrGpkuZ1sjVmvF9vN+bdHIQZ0pIUCqhAiV
	 dPJ31XTHReJk3VRUNYFVnyYjo3Gbk1BxE+STTmeLc6oBCi4+ZAyTtbiCSkVwVHXn2WJZC
	 G4wISgoba58DnIx4WY96Wltz1UPbHoYBUDULM1bE79ZW3WSOJjXJm50SyS1DM5Zs1SHdl
	 m7+dXUIKnXU/z8LAUEOZgNKEp2zajOw+YmmthxBKPNRNFnhEAwZdGJ1smVWnX/9ECCC5S
	 PoYXHpahvuvA+3z76EZvhEjL2aTLDLoDda2jRrWfHJMy3Db++YGqAkejdHDxflANwYw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793496008;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=dvpzB0yzQjGhBjkYwzzjz5S+INhesgIz56ILGUC/Uy4=;
	b=yRm4T2UtHgtD4M5VQ+jbmgE8YYYwaLzAzFc8xQKI3YmRTiwfsh3SvWXHOfItPtHGJ3XN
	 Y4QA9pIGkc6jO3g2ZB1gPctvXyoWe0TlBjNkSl1F1DVuy6ZI1NO+jEfxncdV5qNO5i9Jy
	 WFtFD0VCUghETWNzamJqB7leFFjpYR0Aet3JTv9EuPhtyJskhvvxxhNym6+bIxMQCV4bl
	 gU0YE7XMfPeO4SDBslPHg+yP3P4fri0JSnWWOZ0c5pKBHMzJOoomGiw+OWd/d9qzzhiRO
	 FgjX++tsz2Y4ZyQE2neplggN6MkBHQSBx3kwVtRO/gsQdar2CaSzKEF0Jhz0YJSkf4A==
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=LESISDDS;
	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 0F530606A31A;
	Sun,  1 Nov 2026 01:20:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E6001F000C1;
	Sun,  1 Nov 2026 01:20:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793496007;
	bh=dvpzB0yzQjGhBjkYwzzjz5S+INhesgIz56ILGUC/Uy4=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=LESISDDSC7vHVwr+zYQA5bfOZdfj+K0LuvUPw2XPtC4ZKO+xjGLB2m30qRh3d/qnR
	 M7YjHUqKRfy47QAI7YzBzZwDaick0/rW6L+I6r0vtXDocZqYnLn1tqA+TtNJacOv0b
	 7fuB7sJHATwYrqVYdyFXUs5zWBu6pMTlvFtH4ctaNWW70yo8f0Aibu/UwnYT22MIQr
	 kRK7JEej1/XcYfXtCAbJoxeZpMCwikECA7VI9nq80OBxpIGceqXWroU6riq6qtahwy
	 FPfXfAMVhHjjQ+PLmzIfimHbUpDf+gP5eUc7U4hqWctAKmFRHraB7Rn6VlkPl/9Yrk
	 ky2KA+PEDcq0g==
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 0321F38003EB;
	Sun,  1 Nov 2026 01:20:07 +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: <20261026162810.12862-1-ayushmanrout27@gmail.com>
X-Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
 davem@davemloft.net, kuba@kernel.org, hawk@kernel.org,
 john.fastabend@gmail.com, sdf@fomichev.me, netdev@vger.kernel.org