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

2020-05-28 Thread Daniel Borkmann
On Wed, May 27, 2020 at 06:56:55PM +, Anton Protopopov wrote: > 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 exten

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

2020-05-27 Thread Anton Protopopov
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_STAC