Re: [PATCH v2 net] x86: bpf_jit: fix two bugs in eBPF JIT compiler

2014-10-14 Thread David Miller
From: Alexei Starovoitov Date: Fri, 10 Oct 2014 20:30:23 -0700 > 1. > JIT compiler using multi-pass approach to converge to final image size, > since x86 instructions are variable length. It starts with large > gaps between instructions (so some jumps may use imm32 instead of imm8) > and iterates

Re: [PATCH v2 net] x86: bpf_jit: fix two bugs in eBPF JIT compiler

2014-10-13 Thread Darrick J. Wong
On Fri, Oct 10, 2014 at 08:30:23PM -0700, Alexei Starovoitov wrote: > 1. > JIT compiler using multi-pass approach to converge to final image size, > since x86 instructions are variable length. It starts with large > gaps between instructions (so some jumps may use imm32 instead of imm8) > and itera