diff options
author | Alexei Starovoitov | 2016-09-02 03:37:21 +0200 |
---|---|---|
committer | David S. Miller | 2016-09-02 19:46:44 +0200 |
commit | ea2e7ce5d0fc878463ba39deb46cf2ab20398fd2 (patch) | |
tree | 7b67c9e451afca1b570835bbd75d9be7aebc931e /include/uapi/linux/bpf.h | |
parent | mISDN: mark symbols static where possible (diff) | |
download | kernel-qcow2-linux-ea2e7ce5d0fc878463ba39deb46cf2ab20398fd2.tar.gz kernel-qcow2-linux-ea2e7ce5d0fc878463ba39deb46cf2ab20398fd2.tar.xz kernel-qcow2-linux-ea2e7ce5d0fc878463ba39deb46cf2ab20398fd2.zip |
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>
Diffstat (limited to 'include/uapi/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions