[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181128075157.10980-1-bhole_prashant_q7@lab.ntt.co.jp>
Date: Wed, 28 Nov 2018 16:51:55 +0900
From: Prashant Bhole <bhole_prashant_q7@....ntt.co.jp>
To: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>
Cc: Prashant Bhole <bhole_prashant_q7@....ntt.co.jp>,
Mauricio Vasquez B <mauricio.vasquez@...ito.it>,
netdev@...r.kernel.org
Subject: [PATCH bpf 0/2] fix map_lookup_elem return value for queue/stack map
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
Powered by blists - more mailing lists