Skip to content

More gen_loader fixes

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. v2 Latest7 patches 1 replyApplied 7/7

Changes in v2 from the cover letter

- Fixed up verifier_map_ptr selftest
- Added patch 1/2/6/7 with a new map-in-map fix and a redundant hash_buf memcpy cleanup as well as selftests

Patches in v2 All 7 applied

#Subject and filesSizeRepliesApplied
1/7bpf: Reject exclusive maps as inner maps in map-in-mapkernel/bpf/map_in_map.c+4 -11 replyApplied
2/7bpf: Drop redundant hash_buf from map_get_hash operationinclude/linux/bpf.h kernel/bpf/arraymap.c kernel/bpf/syscall.c+6 -100 repliesApplied
3/7libbpf: Reject non-exclusive metadata maps in the signed loaderinclude/linux/bpf.h kernel/bpf/syscall.c tools/lib/bpf/gen_loader.c+25 -00 repliesApplied
4/7libbpf: Skip initial_value override on signed loaderstools/lib/bpf/gen_loader.c+24 -150 repliesApplied
5/7libbpf: Skip max_entries override on signed loaderstools/lib/bpf/gen_loader.c+11 -20 repliesApplied
6/7selftests/bpf: Adjust verifier_map_ptr for the map's excl fieldtools/testing/selftests/bpf/progs/verifier_map_ptr.c+5 -30 repliesApplied
7/7selftests/bpf: Test that exclusive maps are rejected in map-in-maptools/testing/selftests/bpf/prog_tests/map_excl.c+46 -00 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/7] More gen_loader fixes

Follow-up fixes for the signed loader, includes also the recent sashiko findings.

v1->v2:
- Fixed up verifier_map_ptr selftest
- Added patch 1/2/6/7 with a new map-in-map fix and a redundant hash_buf memcpy cleanup as well as selftests

Daniel Borkmann (5):
bpf: Reject exclusive maps as inner maps in map-in-map
bpf: Drop redundant hash_buf from map_get_hash operation
libbpf: Skip initial_value override on signed loaders
libbpf: Skip max_entries override on signed loaders selftests/bpf: Test that exclusive maps are rejected in map-in-map

KP Singh (2):
libbpf: Reject non-exclusive metadata maps in the signed loader selftests/bpf: Adjust verifier_map_ptr for the map's excl field

 include/linux/bpf.h                           |  3 +-
 kernel/bpf/arraymap.c                         |  6 +-
 kernel/bpf/map_in_map.c                       |  5 +-
 kernel/bpf/syscall.c                          | 15 ++--
 tools/lib/bpf/gen_loader.c                    | 69 ++++++++++++++-----
 .../selftests/bpf/prog_tests/map_excl.c       | 46 +++++++++++++
 .../selftests/bpf/progs/verifier_map_ptr.c    |  8 ++-
 7 files changed, 121 insertions(+), 31 deletions(-)
Signature · 1 line
2.43.0