BPF List
 help / color / mirror / Atom feed
* [v3 PATCH bpf-next 0/2] bpf: Add percpu map value size check
@ 2024-09-10 14:41 Tao Chen
  2024-09-10 14:41 ` [v3 PATCH bpf-next 1/2] bpf: Check percpu map value size first Tao Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tao Chen @ 2024-09-10 14:41 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Song Liu, Hou Tao, Yonghong Song,
	John Fastabend, KP Singh, Stanislav Fomichev
  Cc: Tao Chen, bpf, linux-kernel

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(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-11 20:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10 14:41 [v3 PATCH bpf-next 0/2] bpf: Add percpu map value size check Tao Chen
2024-09-10 14:41 ` [v3 PATCH bpf-next 1/2] bpf: Check percpu map value size first Tao Chen
2024-09-10 14:41 ` [v3 PATCH bpf-next 2/2] bpf/selftests: Check errno when percpu map value size exceeds Tao Chen
2024-09-11 20:30 ` [v3 PATCH bpf-next 0/2] bpf: Add percpu map value size check patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox