This set fixes map_lookup_elem return value for queue/stack map.
Also adds verifier tests to check whether verifier prevents lookup on
these maps.

Note that patch 2 isn't dependant on patch 1. The verifier prevents
lookup on queue/stack map because key size is zero.

Prashant Bhole (2):
  bpf: queue/stack map, fix return value of map_lookup_elem
  bpf: test_verifier, test for lookup on queue/stack maps

 kernel/bpf/queue_stack_maps.c               |  2 +-
 tools/testing/selftests/bpf/test_verifier.c | 52 +++++++++++++++++++++
 2 files changed, 53 insertions(+), 1 deletion(-)

-- 
2.17.2


Reply via email to