diff options
author | 2017-06-13 15:52:14 -0700 | |
---|---|---|
committer | 2017-06-14 14:56:25 -0400 | |
commit | 18f3d6be6be124316d3abfee667c5e8b88dec100 (patch) | |
tree | bc04b4c45c52a732e1d92c7348e3a1354bfd47f6 /include/linux/socket.h | |
parent | bpf: permits narrower load from bpf program context fields (diff) | |
download | wireguard-linux-18f3d6be6be124316d3abfee667c5e8b88dec100.tar.xz wireguard-linux-18f3d6be6be124316d3abfee667c5e8b88dec100.zip |
selftests/bpf: Add test cases to test narrower ctx field loads
Add test cases in test_verifier and test_progs.
Negative tests are added in test_verifier as well.
The test in test_progs will compare the value of narrower ctx field
load result vs. the masked value of normal full-field load result,
and will fail if they are not the same.
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/socket.h')
0 files changed, 0 insertions, 0 deletions