diff options
author | Jakub Sitnicki <[email protected]> | 2022-01-30 12:55:18 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-01-31 12:39:12 -0800 |
commit | 8f50f16ff39dd4e2d43d1548ca66925652f8aff7 (patch) | |
tree | 7dd90826ccc6a7f26688e8f790140ff96e6b43ea /scripts/gdb/vmlinux-gdb.py | |
parent | 4421a582718ab81608d8486734c18083b822390d (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions