aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_sysctl_loop1.c
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2020-09-08 10:57:03 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-09-08 18:04:07 -0700
commite6054fc1f865ac46936a6b5517ae2d36554c94f8 (patch)
tree5becefbbc55a9fdf4d430224f063c63eab8a2cec /tools/testing/selftests/bpf/progs/test_sysctl_loop1.c
parentbpf: Permit map_ptr arithmetic with opcode add and offset 0 (diff)
downloadlinux-dev-e6054fc1f865ac46936a6b5517ae2d36554c94f8.tar.xz
linux-dev-e6054fc1f865ac46936a6b5517ae2d36554c94f8.zip
selftests/bpf: Add test for map_ptr arithmetic
Change selftest map_ptr_kern.c with disabling inlining for one of subtests, which will fail the test without previous verifier change. Also added to verifier test for both "map_ptr += scalar" and "scalar += map_ptr" arithmetic. Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200908175703.2463721-1-yhs@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_sysctl_loop1.c')
0 files changed, 0 insertions, 0 deletions