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

Tao Chen posted 2 patches 2 months, 3 weeks ago
There is a newer version of this series
kernel/bpf/arraymap.c                         |  3 ++
kernel/bpf/hashtab.c                          |  3 ++
.../selftests/bpf/prog_tests/map_init.c       | 32 +++++++++++++++++++
.../selftests/bpf/progs/test_map_init.c       |  6 ++++
4 files changed, 44 insertions(+)
[v2 PATCH bpf-next 0/2] bpf: Add percpu map value size check
Posted by Tao Chen 2 months, 3 weeks ago
Check percpu map value size first and add the test case in selftest.

Change list:
- 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/prog_tests/map_init.c       | 32 +++++++++++++++++++
 .../selftests/bpf/progs/test_map_init.c       |  6 ++++
 4 files changed, 44 insertions(+)

-- 
2.25.1
Re: [v2 PATCH bpf-next 0/2] bpf: Add percpu map value size check
Posted by Jiri Olsa 2 months, 3 weeks ago
On Mon, Sep 09, 2024 at 03:13:44PM +0800, Tao Chen wrote:
> Check percpu map value size first and add the test case in selftest.
> 
> Change list:
> - 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

lgtm

Acked-by: Jiri Olsa <jolsa@kernel.org>

jirka

> 
>  kernel/bpf/arraymap.c                         |  3 ++
>  kernel/bpf/hashtab.c                          |  3 ++
>  .../selftests/bpf/prog_tests/map_init.c       | 32 +++++++++++++++++++
>  .../selftests/bpf/progs/test_map_init.c       |  6 ++++
>  4 files changed, 44 insertions(+)
> 
> -- 
> 2.25.1
> 
>