Skip to content

bpf: Add percpu map value size check

Tao Chen bpf lkml 3 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. v3 Latest2 patches 0 repliesApplied 2/2
  2. v22 patches 5 repliesSuperseded
  3. v1 RFC1 patch 2 repliesSuperseded

Patches in v3 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Check percpu map value size firstkernel/bpf/arraymap.c kernel/bpf/hashtab.c+6 -00 repliesApplied
2/2bpf/selftests: Check errno when percpu map value size exceedstools/testing/selftests/bpf/map_tests/map_percpu_stats.c+18 -00 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJiri OlsaAndrii Nakryiko
1/2A-b A-b
2/2

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

Read the v3 thread

Cover letter [v3 PATCH bpf-next 0/2] bpf: Add percpu map value size check

Check percpu map value size first and add the test case in selftest.

Change list:
- v2 -> v3:
- use bpf_map_create API and mv test case in map_percpu_stats.c
- v1 -> v2:
- round up map value size with 8 bytes in patch 1
- add selftest case in patch 2

Tao Chen (2):
bpf: Check percpu map value size first bpf/selftests: Check errno when percpu map value size exceeds

 kernel/bpf/arraymap.c                          |  3 +++
 kernel/bpf/hashtab.c                           |  3 +++
 .../selftests/bpf/map_tests/map_percpu_stats.c | 18 ++++++++++++++++++
 3 files changed, 24 insertions(+)
Signature · 1 line
2.43.0