Article View: linux.kernel.netdev
Article #1744Re: [PATCH bpf v2 0/2] bpf: test_run: Fix false -EBADMSG with BPF_F_TEST_SKB_CHECKSUM_COMPLETE
From: patchwork-bot+netdevbpf
Date: Sat, 10 Oct 2026 15:10
Date: Sat, 10 Oct 2026 15:10
30 lines
7029 bytes
7029 bytes
Hello:
This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Fri, 9 Oct 2026 20:47:46 +0300 you wrote:
> BPF_PROG_TEST_RUN with BPF_F_TEST_SKB_CHECKSUM_COMPLETE returns -EBADMSG
> for correct tc programs that call bpf_skb_change_tail(). The helper
> moves the skb to CHECKSUM_NONE and leaves skb->csum stale, but the
> post-run check added by commit a3cfe84cca28 ("bpf: Add CHECKSUM_COMPLETE
> to bpf test progs") still compares against it.
>
> Patch 1 only does the check while the skb is still CHECKSUM_COMPLETE.
> Patch 2 adds selftests for a trim, a grow followed by a write, and a
> negative case that keeps the skb CHECKSUM_COMPLETE with a stale
> skb->csum.
>
> [...]
Here is the summary with links:
- [bpf,v2,1/2] bpf: test_run: Fix false -EBADMSG after skb leaves CHECKSUM_COMPLETE
https://git.kernel.org/bpf/bpf-next/c/36edb1c7738d
- [bpf,v2,2/2] selftests/bpf: Cover test_run csum validation after bpf_skb_change_tail()
https://git.kernel.org/bpf/bpf-next/c/2e6be13e8ca4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179164500577.1749710.5161743070579518895.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-344256-linux-kernel-netdev=dewy.ruReferences:
<20261009174755.22026-1-skokovmaksimevg@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-344256-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH bpf v2 0/2] bpf: test_run: Fix false -EBADMSG with BPF_F_TEST_SKB_CHECKSUM_COMPLETE Date: Sat, 10 Oct 2026 15:10:05 +0000 Organization: Usenet Network Message-ID: <179164500577.1749710.5161743070579518895.git-patchwork-notify@kernel.org> References: <20261009174755.22026-1-skokovmaksimevg@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1354934"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+RDF/eYg7qVqQJa//eILdHXY35s= sha256:Wh+mRvUzzCrSalZHPFaRq9adDOtHunoPPjRZWTHuzok= sha1:9rFkrx+wTtIi0Jr7kyjXL6TgdwI= sha256:yVlh2oIB1XBmHue2k7Bs5qLgOzxqXyxzolGzdFxvIt8= 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 63EC910F919; Sat, 10 Oct 2026 18:10:22 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.341 X-Spam-Status: No, score=-1.341 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, 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 KjB6t6vj9Z7A; Sat, 10 Oct 2026 18:10:18 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344256-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 49FFE10F7D8; Sat, 10 Oct 2026 18:10:14 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 54FFF34D9B; Sat, 10 Oct 2026 15:10:09 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F1083AEB35; Sat, 10 Oct 2026 15:10:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XgRvk6hy" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36C8F3A4F30; Sat, 10 Oct 2026 15:10:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791645008; cv=none; b=i4qUgv8CtOXkv5HhPiOQU+9pFXIjbFkF3RFv4y8IAo52hoJFT8vt5e4VUVFxJiDDocLwZHaS6zkbnlp6nDelYLU4e0qX9au/rE6sQ6YNCBswIuRPbJVNyxub3lCyHW0egyOHQdgYeBsO4znN/u6589teC2ZPIrOhQnrlBdqgylE= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791645008; c=relaxed/simple; bh=7TzmRUknXQSJrq9WJMQRYRamiQx4i6DwhPve3C9Gzi4=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=Few3P7A8GH/u8nl/ey7V2eIPsGqBme1g6cvLDyNQsVr8u+azmFevLcxysv3A3ejeEGDBHh/hSLf1E6OMRup6nGBgi73dD3zJKtJpQ/vKsAKL0Pm/XDhC6rDrD6Pcl0yGhJCK955z2ELt2FFEvLbVZD5OzRmLTgTVTLv19KHeIqU= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XgRvk6hy; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07B7B1F000FF; Sat, 10 Oct 2026 15:10:07 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791645007; bh=jdRqn0CteQ8ui9tg7Wb1RJhtBeZiOr+dZgR8ULZBbjc=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=XgRvk6hyb7XLEne/8laQzOCK2H32X7IGWq2ONyNb3O5aZ2/Ol1LlhNf9+kzwcM9jO rMFwa+02/jltfu4hVpsnyzxFb2WnXzAitKGKdza8BJLXMI68yC81agWI4wJvihx5wR neYxkSgVHVyPSRVkn4PkJM6Ig4ApVXLCNTA0hNHNMg82L5P3s8FXzuzELKF7+rJ4He 7JbwQcP9NT+eZ+abMS8B/9GcVHGdNDoTliSIuhyXqO7vfyTqrmSydZmkuRrbChFKlF a8wH5Fh3mu5Ibk3Yb8lj+CCdGpHlmFUZ+Ero08agROQfhmgqFhaevfpISJ78ZCf6IR 00i5jLpMHhQAA== 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 F140B380DBDA; Sat, 10 Oct 2026 15:10:06 +0000 (UTC) X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261009174755.22026-1-skokovmaksimevg@gmail.com> X-Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, memxor@gmail.com, emil@etsalapatis.com, ihor.solodrai@linux.dev, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, shuah@kernel.org, vadim.fedorenko@linux.dev, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org