summaryrefslogtreecommitdiffstats
path: root/tools/virtio/virtio_test.c
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2017-11-12 23:49:11 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-14 08:20:03 +0100
commitb6ff63911232c2823e2763371ec4462ac64cc331 (patch)
tree9fb5554961eecb8be5a8de7b84675fc6708afb32 /tools/virtio/virtio_test.c
parentbpf: change helper bpf_probe_read arg2 type to ARG_CONST_SIZE_OR_ZERO (diff)
downloadlinux-b6ff63911232c2823e2763371ec4462ac64cc331.tar.xz
linux-b6ff63911232c2823e2763371ec4462ac64cc331.zip
bpf: fix and add test cases for ARG_CONST_SIZE_OR_ZERO semantics change
Fix a few test cases to allow non-NULL map/packet/stack pointer with size = 0. Change a few tests using bpf_probe_read to use bpf_probe_write_user so ARG_CONST_SIZE arg can still be properly tested. One existing test case already covers size = 0 with non-NULL packet pointer, so add additional tests so all cases of size = 0 and 0 <= size <= legal_upper_bound with non-NULL map/packet/stack pointer are covered. Signed-off-by: Yonghong Song <yhs@fb.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/virtio/virtio_test.c')
0 files changed, 0 insertions, 0 deletions