lkml.org 
[lkml]   [2020]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH bpf 0/5] bpf: fix map permissions check and cleanup code around
    Date
    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(-)

    --
    2.20.1

    \
     
     \ /
      Last update: 2020-05-27 21:00    [W:2.740 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site