]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/bpf_verifier.h
bpf: properly enforce index mask to prevent out-of-bounds speculation
[linux.git] / include / linux / bpf_verifier.h
index 7e61c395fddffea20ed6dfc8a92ad3e2f848a20e..52fb077d3c45b15b96fd3642cee5d393c9e4ca6d 100644 (file)
@@ -142,7 +142,7 @@ struct bpf_verifier_state_list {
 struct bpf_insn_aux_data {
        union {
                enum bpf_reg_type ptr_type;     /* pointer type for load/store insns */
-               struct bpf_map *map_ptr;        /* pointer for call insn into lookup_elem */
+               unsigned long map_state;        /* pointer/poison value for maps */
                s32 call_imm;                   /* saved imm field of call insn */
        };
        int ctx_field_size; /* the ctx field size for load insn, maybe 0 */