mbox series

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

Message ID 20240910144111.1464912-1-chen.dylane@gmail.com (mailing list archive)
Headers show
Series bpf: Add percpu map value size check | expand

Message

Tao Chen Sept. 10, 2024, 2:41 p.m. UTC
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(+)

Comments

patchwork-bot+netdevbpf@kernel.org Sept. 11, 2024, 8:30 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:

On Tue, 10 Sep 2024 22:41:09 +0800 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [v3,bpf-next,1/2] bpf: Check percpu map value size first
    https://git.kernel.org/bpf/bpf-next/c/1d244784be6b
  - [v3,bpf-next,2/2] bpf/selftests: Check errno when percpu map value size exceeds
    https://git.kernel.org/bpf/bpf-next/c/7eab3a58ac7b

You are awesome, thank you!