BPF List
 help / color / mirror / Atom feed
* [PATCH stable 6.18 0/6] bpf: verifier: linked register tests and fixes
@ 2026-07-17  4:39 Shung-Hsi Yu
  2026-07-17  4:40 ` [PATCH stable 6.18 1/6] selftests: bpf: Add test for multiple syncs from linked register Shung-Hsi Yu
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Shung-Hsi Yu @ 2026-07-17  4:39 UTC (permalink / raw)
  To: bpf; +Cc: Shung-Hsi Yu

This patchset mainly aims to backport upstream commit 1b327732c846
("bpf: Clear delta when clearing reg id for non-{add,sub} ops") (patch
4), and its selftests patch in commit cac16ce1e378 ("selftests/bpf: Add
tests for stale delta leaking through id reassignment") (patch 6). While
doing so, I find that a BPF selftests patches are missing as context, so
backported them along to import coverage.

The full list of patches that were backported are:
1. "selftests/bpf: Add tests for stale delta leaking through id reassignment"
2. "selftests/bpf: Add tests for delta tracking when src_reg == dst_reg"
3. "bpf: Clear delta when clearing reg id for non-{add,sub} ops"
4. "selftests/bpf: Add a test cases for sync_linked_regs regarding zext propagation"
5. "selftests/bpf: Add tests for improved linked register tracking"
6. "selftests: bpf: Add test for multiple syncs from linked register"

I have confirmed that after this patchset is applied, BPF selftests
(test_progs*, test_verifier, and test_maps) still passes on x86_64[1] and
aarch64[2].

1: https://github.com/kernel-patches/linux-stable/actions/runs/29553646000/job/87801246946
2: https://github.com/kernel-patches/linux-stable/actions/runs/29553646000/job/87801246917

Daniel Borkmann (4):
  selftests/bpf: Add a test cases for sync_linked_regs regarding zext
    propagation
  bpf: Clear delta when clearing reg id for non-{add,sub} ops
  selftests/bpf: Add tests for delta tracking when src_reg == dst_reg
  selftests/bpf: Add tests for stale delta leaking through id
    reassignment

Puranjay Mohan (2):
  selftests: bpf: Add test for multiple syncs from linked register
  selftests/bpf: Add tests for improved linked register tracking

 kernel/bpf/verifier.c                         |  50 +-
 .../bpf/progs/verifier_linked_scalars.c       | 556 +++++++++++++++++-
 2 files changed, 580 insertions(+), 26 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-07-17  4:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17  4:39 [PATCH stable 6.18 0/6] bpf: verifier: linked register tests and fixes Shung-Hsi Yu
2026-07-17  4:40 ` [PATCH stable 6.18 1/6] selftests: bpf: Add test for multiple syncs from linked register Shung-Hsi Yu
2026-07-17  4:40 ` [PATCH stable 6.18 2/6] selftests/bpf: Add tests for improved linked register tracking Shung-Hsi Yu
2026-07-17  4:40 ` [PATCH stable 6.18 3/6] selftests/bpf: Add a test cases for sync_linked_regs regarding zext propagation Shung-Hsi Yu
2026-07-17  4:40 ` [PATCH stable 6.18 4/6] bpf: Clear delta when clearing reg id for non-{add,sub} ops Shung-Hsi Yu
2026-07-17  4:40 ` [PATCH stable 6.18 5/6] selftests/bpf: Add tests for delta tracking when src_reg == dst_reg Shung-Hsi Yu
2026-07-17  4:40 ` [PATCH stable 6.18 6/6] selftests/bpf: Add tests for stale delta leaking through id reassignment Shung-Hsi Yu
2026-07-17  4:46 ` [PATCH stable 6.18 0/6] bpf: verifier: linked register tests and fixes Shung-Hsi Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox