• Jiong Wang's avatar
    bpf: verifier support JMP32 · 092ed096
    Jiong Wang authored
    This patch teach verifier about the new BPF_JMP32 instruction class.
    Verifier need to treat it similar as the existing BPF_JMP class.
    A BPF_JMP32 insn needs to go through all checks that have been done on
    BPF_JMP.
    
    Also, verifier is doing runtime optimizations based on the extra info
    conditional jump instruction could offer, especially when the comparison is
    between constant and register that the value range of the register could be
    improved based on the comparison results. These code are updated
    accordingly.
    Acked-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
    Signed-off-by: default avatarJiong Wang <jiong.wang@netronome.com>
    Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    092ed096
verifier.c 220 KB