diff options
author | Jakub Sitnicki <jakub@cloudflare.com> | 2022-01-30 12:55:18 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii.nakryiko@gmail.com> | 2022-02-04 10:27:02 -0800 |
commit | 9f276b240b2e4a9e0a1446fdc02ce7e593d90242 (patch) | |
tree | 46915abc248df7dc4c834641a36f8d02c0b2d017 /src | |
parent | 9a6406573367245e32ca9eda8c4ffd2e5b4d7487 (diff) | |
download | libbpf-9f276b240b2e4a9e0a1446fdc02ce7e593d90242.tar.gz |
selftests/bpf: Extend verifier and bpf_sock tests for dst_port loads
Add coverage to the verifier tests and tests for reading bpf_sock fields to
ensure that 32-bit, 16-bit, and 8-bit loads from dst_port field are allowed
only at intended offsets and produce expected values.
While 16-bit and 8-bit access to dst_port field is straight-forward, 32-bit
wide loads need be allowed and produce a zero-padded 16-bit value for
backward compatibility.
Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/r/20220130115518.213259-3-jakub@cloudflare.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions