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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux