Skip to content

bpf: __bpf_dynptr_data* and __str annotation

Song Liu bpf fsverity 1 version 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

  1. v1 Latest3 patches 0 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3bpf: Add __bpf_dynptr_data* for in kernel useinclude/linux/bpf.h kernel/bpf/helpers.c kernel/trace/bpf_trace.c+29 -40 repliesApplied
2/3bpf: Factor out helper check_reg_const_str()kernel/bpf/verifier.c+49 -360 repliesApplied
3/3bpf: Introduce KF_ARG_PTR_TO_CONST_STRDocumentation/bpf/kfuncs.rst kernel/bpf/verifier.c+43 -00 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchVadim FedorenkoAndrii Nakryiko
1/3A-b
2/3A-b A-b
3/3A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/3] bpf: __bpf_dynptr_data* and __str annotation

This set contains the first 3 patches of set [1]. Currently, [1] is waiting for [3] to be merged to bpf-next tree. So send these 3 patches first to unblock other works, such as [2]. This set is verified with new version of
[1] in CI run [4].

Changes since v12 of [1]:
1. Reuse bpf_dynptr_slice() in __bpf_dynptr_data(). (Andrii)
2. Add Acked-by from Vadim Fedorenko.

[1] https://lore.kernel.org/bpf/[email protected]/
[2] https://lore.kernel.org/bpf/[email protected]/
[3] https://lore.kernel.org/bpf/[email protected]/
[4] https://github.com/kernel-patches/bpf/actions/runs/6779945063/job/18427926114

Song Liu (3):
bpf: Add __bpf_dynptr_data* for in kernel use
bpf: Factor out helper check_reg_const_str()
bpf: Introduce KF_ARG_PTR_TO_CONST_STR

 Documentation/bpf/kfuncs.rst |  24 ++++++++
 include/linux/bpf.h          |   2 +
 kernel/bpf/helpers.c         |  19 +++++++
 kernel/bpf/verifier.c        | 104 +++++++++++++++++++++++------------
 kernel/trace/bpf_trace.c     |  12 ++--
 5 files changed, 121 insertions(+), 40 deletions(-)

--
2.34.1