From: Kumar Kartikeya Dwivedi <memxor@gmail.com>
To: bpf@vger.kernel.org
Cc: Alexei Starovoitov <ast@kernel.org>,
Andrii Nakryiko <andrii@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Eduard Zingerman <eddyz87@gmail.com>,
Emil Tsalapatis <emil@etsalapatis.com>,
Nicholas Carlini <npc@anthropic.com>,
kkd@meta.com, kernel-team@meta.com
Subject: [PATCH bpf v3 0/7] Misc bug fixes - part 5
Date: Mon, 14 Sep 2026 15:16:50 +0200 [thread overview]
Message-ID: <20260914131701.2529725-1-memxor@gmail.com> (raw)
A set of miscellaneous fixes for bugs reported by Nicholas. See commit
logs for details.
Changelog:
----------
v2 -> v3
v2: https://lore.kernel.org/bpf/20260905083418.3723623-1-memxor@gmail.com
* Propagate cancellation from constant blinding through both JIT fallback
paths instead of rechecking fatal signals in bpf_check(). (Eduard)
* Preserve packet-pointer displacement by comparing range bases, without
extending the generic ID map. Veristat showed identical verdicts and
successful-program instruction/state counts across 2773 loads. (Eduard,
Alexei)
* Reduce the packet pruning regression to 20 instructions and force state
checkpoints. (Alexei, BPF CI)
* Reject unsupported CO-RE poisoning targets in the shared relocation
code instead of adding a CFG fall-through check. (Alexei)
* Cover unsupported poison targets and supported relocations in dead code,
including both halves of ldimm64.
* Assign callback value IDs unconditionally and compare inner-map lookup
IDs through check_ids(); explain the bug with a small program. (Eduard)
* Move map_uid beside the other IDs and shrink frameno to preserve the
register state size, keeping the existing memcmp() ranges.
* Consolidate callback tests into the existing spinlock tests and reuse
their map fixtures. Retain one-element and nested locking controls, and
check nonzero IDs in timer, workqueue, and task-work callbacks. Clarify
the inner-map lookup test description. (BPF CI)
v1 -> v2
v1: https://lore.kernel.org/bpf/20260905070003.3193366-1-memxor@gmail.com
* Address inner map corner case for callback map value patch.
* Drop patch 2 since the test can be flaky.
Kumar Kartikeya Dwivedi (7):
bpf: Make post-verification instruction rewrites killable
bpf: Preserve packet pointer class displacement in regsafe()
selftests/bpf: Test packet pointer class displacement pruning
bpf: Restrict CO-RE poisoning to relocatable instructions
selftests/bpf: Test CO-RE instruction poisoning restrictions
bpf: Assign lock identity to callback map values
selftests/bpf: Check callback map value lock identity
include/linux/bpf_verifier.h | 24 +--
kernel/bpf/core.c | 19 +-
kernel/bpf/fixups.c | 24 ++-
kernel/bpf/states.c | 9 +-
kernel/bpf/verifier.c | 15 +-
tools/lib/bpf/relo_core.c | 28 +--
.../selftests/bpf/prog_tests/cb_refs.c | 2 +-
.../selftests/bpf/prog_tests/core_reloc_raw.c | 168 ++++++++++++++++++
.../selftests/bpf/prog_tests/spin_lock.c | 33 +++-
.../selftests/bpf/progs/test_spin_lock_fail.c | 167 ++++++++++++++++-
.../progs/verifier_xdp_direct_packet_access.c | 35 ++++
11 files changed, 477 insertions(+), 47 deletions(-)
base-commit: ee363e055895364039bf28348ff13c615afad4ba
--
2.53.0
next reply other threads:[~2026-09-14 13:17 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 13:16 Kumar Kartikeya Dwivedi [this message]
2026-09-14 13:16 ` [PATCH bpf v3 1/7] bpf: Make post-verification instruction rewrites killable Kumar Kartikeya Dwivedi
2026-09-14 14:30 ` bot+bpf-ci
2026-09-14 18:52 ` Eduard Zingerman
2026-09-14 13:16 ` [PATCH bpf v3 2/7] bpf: Preserve packet pointer class displacement in regsafe() Kumar Kartikeya Dwivedi
2026-09-14 14:30 ` bot+bpf-ci
2026-09-14 18:53 ` Eduard Zingerman
2026-09-14 13:16 ` [PATCH bpf v3 3/7] selftests/bpf: Test packet pointer class displacement pruning Kumar Kartikeya Dwivedi
2026-09-14 13:16 ` [PATCH bpf v3 4/7] bpf: Restrict CO-RE poisoning to relocatable instructions Kumar Kartikeya Dwivedi
2026-09-14 14:08 ` sashiko-bot
2026-09-14 14:15 ` bot+bpf-ci
2026-09-14 20:13 ` Eduard Zingerman
2026-09-14 19:54 ` Andrii Nakryiko
2026-09-14 20:21 ` Alexei Starovoitov
2026-09-14 20:42 ` Kumar Kartikeya Dwivedi
2026-09-14 21:02 ` Andrii Nakryiko
2026-09-14 20:09 ` Eduard Zingerman
2026-09-14 13:16 ` [PATCH bpf v3 5/7] selftests/bpf: Test CO-RE instruction poisoning restrictions Kumar Kartikeya Dwivedi
2026-09-14 14:30 ` bot+bpf-ci
2026-09-14 20:46 ` Eduard Zingerman
2026-09-14 13:16 ` [PATCH bpf v3 6/7] bpf: Assign lock identity to callback map values Kumar Kartikeya Dwivedi
2026-09-14 14:30 ` bot+bpf-ci
2026-09-14 19:33 ` Eduard Zingerman
2026-09-14 13:16 ` [PATCH bpf v3 7/7] selftests/bpf: Check callback map value lock identity Kumar Kartikeya Dwivedi
2026-09-14 14:45 ` bot+bpf-ci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260914131701.2529725-1-memxor@gmail.com \
--to=memxor@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=emil@etsalapatis.com \
--cc=kernel-team@meta.com \
--cc=kkd@meta.com \
--cc=npc@anthropic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.