diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-10-20 20:09:26 -0400 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-21 02:13:32 -0400 |
commit | ad38911dcdb6978a415db65b3e00e0f3fcd9edfc (patch) | |
tree | b897ee6360397d5fb2caf74c31f01f2a63d775a9 /kernel/bpf | |
parent | 4b5defdec398491c5b301a6255cdf468eedfb228 (diff) |
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/bpf')
-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, | |||
2077 | case PTR_TO_PACKET_META: | 2077 | case PTR_TO_PACKET_META: |
2078 | return check_packet_access(env, regno, reg->off, access_size, | 2078 | return check_packet_access(env, regno, reg->off, access_size, |
2079 | zero_size_allowed); | 2079 | zero_size_allowed); |
2080 | case PTR_TO_FLOW_KEYS: | ||
2081 | return check_flow_keys_access(env, reg->off, access_size); | ||
2082 | case PTR_TO_MAP_VALUE: | 2080 | case PTR_TO_MAP_VALUE: |
2083 | return check_map_access(env, regno, reg->off, access_size, | 2081 | return check_map_access(env, regno, reg->off, access_size, |
2084 | zero_size_allowed); | 2082 | zero_size_allowed); |