]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
bpf, verifier: remove unneeded flow key in check_helper_mem_access
authorDaniel Borkmann <daniel@iogearbox.net>
Sun, 21 Oct 2018 00:09:26 +0000 (02:09 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 21 Oct 2018 06:13:32 +0000 (23:13 -0700)
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>
kernel/bpf/verifier.c

index 0450ffcc3de4ff90325fe8e300b0e7ea79159f9e..4f727c9eb45ca5f93a02a06ac76723bd07236e75 100644 (file)
@@ -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);