Skip to content

Follow ups for kptr series

Kumar Kartikeya Dwivedi bpf 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesApplied 4/4
  2. v14 patches 5 repliesSuperseded

Changes in v2 from the cover letter

v1: https://lore.kernel.org/bpf/[email protected]

* Add Fixes tag to patch 1
* Fix test_progs-noalu32 failure in CI due to different alloc_insn (Alexei)
* Remove per-CPU struct, use global struct (Alexei)

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4bpf: Fix sparse warning for bpf_kptr_xchg_protoinclude/linux/bpf.h+1 -00 repliesApplied
2/4bpf: Prepare prog_test_struct kfuncs for runtime testsnet/bpf/test_run.c tools/testing/selftests/bpf/verifier/map_kptr.c+19 -80 repliesApplied
3/4selftests/bpf: Add negative C tests for kptrstools/testing/selftests/bpf/prog_tests/map_kptr.c tools/testing/selftests/bpf/progs/map_kptr_fail.c+504 -13 repliesApplied
4/4selftests/bpf: Add tests for kptr_ref refcountingtools/testing/selftests/bpf/prog_tests/map_kptr.c tools/testing/selftests/bpf/progs/map_kptr.c+128 -50 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/4] Follow ups for kptr series

Fix a build time warning, and address comments from Alexei on the merged version [0].

[0]: https://lore.kernel.org/bpf/[email protected]

Changelog:
----------
v1 -> v2
v1: https://lore.kernel.org/bpf/[email protected]

* Add Fixes tag to patch 1
* Fix test_progs-noalu32 failure in CI due to different alloc_insn (Alexei)
* Remove per-CPU struct, use global struct (Alexei)

Kumar Kartikeya Dwivedi (4):
bpf: Fix sparse warning for bpf_kptr_xchg_proto
bpf: Prepare prog_test_struct kfuncs for runtime tests selftests/bpf: Add negative C tests for kptrs selftests/bpf: Add tests for kptr_ref refcounting

 include/linux/bpf.h                           |   1 +
 net/bpf/test_run.c                            |  23 +-
 .../selftests/bpf/prog_tests/map_kptr.c       | 108 ++++-
 tools/testing/selftests/bpf/progs/map_kptr.c  | 106 ++++-
 .../selftests/bpf/progs/map_kptr_fail.c       | 418 ++++++++++++++++++
 .../testing/selftests/bpf/verifier/map_kptr.c |   4 +-
 6 files changed, 649 insertions(+), 11 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/progs/map_kptr_fail.c
Signature · 1 line
2.35.1