summaryrefslogtreecommitdiff
path: root/samples/bpf/sock_example.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@fb.com>2016-09-01 18:37:21 -0700
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:50:31 +0300
commitb103579f6a01b72be1a732a8c80078721e5c4f8d (patch)
tree72202949c35c51fc7d51b14d9aa89fd8d3c9f967 /samples/bpf/sock_example.c
parent54369560a245da099fa715db4675be44088cef4b (diff)
bpf: support 8-byte metafield access
The verifier supported only 4-byte metafields in struct __sk_buff and struct xdp_md. The metafields in upcoming struct bpf_perf_event are 8-byte to match register width in struct pt_regs. Teach verifier to recognize 8-byte metafield access. The patch doesn't affect safety of sockets and xdp programs. They check for 4-byte only ctx access before these conditions are hit. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'samples/bpf/sock_example.c')
0 files changed, 0 insertions, 0 deletions