More gen_loader fixes
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
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | bpf: Reject exclusive maps as inner maps in map-in-mapkernel/ | +4 | 1 reply | Applied |
| 2/7 | bpf: Drop redundant hash_buf from map_get_hash operationinclude/ kernel/ kernel/ | +6 | 0 replies | Applied |
| 3/7 | libbpf: Reject non-exclusive metadata maps in the signed loaderinclude/ kernel/ tools/ | +25 | 0 replies | Applied |
| 4/7 | libbpf: Skip initial_value override on signed loaderstools/ | +24 | 0 replies | Applied |
| 5/7 | libbpf: Skip max_entries override on signed loaderstools/ | +11 | 0 replies | Applied |
| 6/7 | selftests/bpf: Adjust verifier_map_ptr for the map's excl fieldtools/ | +5 | 0 replies | Applied |
| 7/7 | selftests/bpf: Test that exclusive maps are rejected in map-in-maptools/ | +46 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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