diff options
author | Andrey Ignatov <rdna@fb.com> | 2018-11-10 22:15:14 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-11-10 22:29:59 -0800 |
commit | 6c2afb674dbda9b736b8f09c976516e1e788860a (patch) | |
tree | 2d03d5868d7f12e7317816e72da7bd4fbdc7370d /tools/testing/selftests/bpf/test_sock_addr.c | |
parent | bpf: Allow narrow loads with offset > 0 (diff) | |
download | linux-dev-6c2afb674dbda9b736b8f09c976516e1e788860a.tar.xz linux-dev-6c2afb674dbda9b736b8f09c976516e1e788860a.zip |
selftests/bpf: Test narrow loads with off > 0 in test_verifier
Test the following narrow loads in test_verifier for context __sk_buff:
* off=1, size=1 - ok;
* off=2, size=1 - ok;
* off=3, size=1 - ok;
* off=0, size=2 - ok;
* off=1, size=2 - fail;
* off=0, size=2 - ok;
* off=3, size=2 - fail.
Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/test_sock_addr.c')
0 files changed, 0 insertions, 0 deletions