Skip to content

More gen_loader fixes #2

Daniel Borkmann bpf sashiko-reviews 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 Latest4 patches 1 replyApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4bpf: Reject exclusive maps for bpf_map_elem iteratorskernel/bpf/map_iter.c+4 -01 replyApplied
2/4libbpf: Guard add_data() against size overflowtools/lib/bpf/gen_loader.c+7 -10 repliesApplied
3/4selftests/bpf: Keep verifier_map_ptr exercising ops pointer accesstools/testing/selftests/bpf/progs/verifier_map_ptr.c+30 -40 repliesApplied
4/4selftests/bpf: Test that exclusive maps are rejected as iter targetstools/testing/selftests/bpf/prog_tests/map_excl.c+39 -00 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/4] More gen_loader fixes #2

Another small follow-up from the sashiko findings about signed loaders. In particular, closing the gap to reject exclusive maps in iterators.

Daniel Borkmann (4):
bpf: Reject exclusive maps for bpf_map_elem iterators
libbpf: Guard add_data() against size overflow selftests/bpf: Keep verifier_map_ptr exercising ops pointer access selftests/bpf: Test that exclusive maps are rejected as iter targets

 kernel/bpf/map_iter.c                         |  4 ++
 tools/lib/bpf/gen_loader.c                    |  8 +++-
 .../selftests/bpf/prog_tests/map_excl.c       | 39 +++++++++++++++++++
 .../selftests/bpf/progs/verifier_map_ptr.c    | 34 ++++++++++++++--
 4 files changed, 80 insertions(+), 5 deletions(-)
Signature · 1 line
2.43.0