diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-10-21 02:09:26 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-20 23:13:32 -0700 |
commit | ad38911dcdb6978a415db65b3e00e0f3fcd9edfc (patch) | |
tree | b897ee6360397d5fb2caf74c31f01f2a63d775a9 /kernel | |
parent | 4b5defdec398491c5b301a6255cdf468eedfb228 (diff) | |
download | linux-ad38911dcdb6978a415db65b3e00e0f3fcd9edfc.tar.bz2 |
bpf, verifier: remove unneeded flow key in check_helper_mem_access
They PTR_TO_FLOW_KEYS is not used today to be passed into a helper
as memory, so it can be removed from check_helper_mem_access().
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/bpf/verifier.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 0450ffcc3de4..4f727c9eb45c 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -2077,8 +2077,6 @@ static int check_helper_mem_access(struct bpf_verifier_env *env, int regno, case PTR_TO_PACKET_META: return check_packet_access(env, regno, reg->off, access_size, zero_size_allowed); - case PTR_TO_FLOW_KEYS: - return check_flow_keys_access(env, reg->off, access_size); case PTR_TO_MAP_VALUE: return check_map_access(env, regno, reg->off, access_size, zero_size_allowed); |