Skip to content

bpf: fix map permissions check and cleanup code around

Anton Protopopov bpf linux-kselftest lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5selftests/bpf: fix a typo in test_mapstools/testing/selftests/bpf/test_maps.c+1 -10 replies
2/5selftests/bpf: cleanup some file descriptors in test_mapstools/testing/selftests/bpf/test_maps.c+4 -00 replies
3/5selftests/bpf: cleanup comments in test_mapstools/testing/selftests/bpf/test_maps.c+3 -30 replies
4/5bpf: fix map permissions checkkernel/bpf/syscall.c+2 -10 replies
5/5selftests/bpf: add tests for write-only stacks/queuestools/testing/selftests/bpf/test_maps.c+39 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf 0/5] bpf: fix map permissions check and cleanup code around

This series fixes a bug in the map_lookup_and_delete_elem() function which should check for the FMODE_CAN_READ bit, because it returns data to user space. The rest of commits fix some typos and comment in selftests and extend the test_map_wronly test to cover the new check for the BPF_MAP_TYPE_STACK and BPF_MAP_TYPE_QUEUE map types.

Anton Protopopov (5):
selftests/bpf: fix a typo in test_maps selftests/bpf: cleanup some file descriptors in test_maps selftests/bpf: cleanup comments in test_maps
bpf: fix map permissions check
selftests/bpf: add tests for write-only stacks/queues

 kernel/bpf/syscall.c                    |  3 +-
 tools/testing/selftests/bpf/test_maps.c | 52 ++++++++++++++++++++++---
 2 files changed, 49 insertions(+), 6 deletions(-)
Signature · 1 line
2.20.1