Re: [PATCHv4 net-next 07/15] bpf: recognize 64bit immediate loads as consts

2016-09-15 Thread Alexei Starovoitov
On Thu, Sep 15, 2016 at 08:12:27PM +0100, Jakub Kicinski wrote: > When running as parser interpret BPF_LD | BPF_IMM | BPF_DW > instructions as loading CONST_IMM with the value stored > in imm. The verifier will continue not recognizing those > due to concerns about search space/program complexity

[PATCHv4 net-next 07/15] bpf: recognize 64bit immediate loads as consts

2016-09-15 Thread Jakub Kicinski
When running as parser interpret BPF_LD | BPF_IMM | BPF_DW instructions as loading CONST_IMM with the value stored in imm. The verifier will continue not recognizing those due to concerns about search space/program complexity increase. Signed-off-by: Jakub Kicinski --- v3: - limit to parsers. -