mbox series

[bpf,0/2] nfp: bpf: fix two ALU32 code-gen bugs

Message ID 1550874964-16769-1-git-send-email-jiong.wang@netronome.com
Headers show
Series nfp: bpf: fix two ALU32 code-gen bugs | expand

Message

Jiong Wang Feb. 22, 2019, 10:36 p.m. UTC
code-gen for BPF_ALU | BPF_XOR | BPF_K is wrong when imm is -1, also high
32-bit of 64-bit register should always be cleared.

This set fixed both bugs.

Jiong Wang (2):
  nfp: bpf: fix code-gen bug on BPF_ALU | BPF_XOR | BPF_K
  nfp: bpf: fix ALU32 high bits clearance bug

 drivers/net/ethernet/netronome/nfp/bpf/jit.c | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

Comments

Daniel Borkmann Feb. 22, 2019, 11:09 p.m. UTC | #1
On 02/22/2019 11:36 PM, Jiong Wang wrote:
> code-gen for BPF_ALU | BPF_XOR | BPF_K is wrong when imm is -1, also high
> 32-bit of 64-bit register should always be cleared.
> 
> This set fixed both bugs.
> 
> Jiong Wang (2):
>   nfp: bpf: fix code-gen bug on BPF_ALU | BPF_XOR | BPF_K
>   nfp: bpf: fix ALU32 high bits clearance bug
> 
>  drivers/net/ethernet/netronome/nfp/bpf/jit.c | 17 ++++++-----------
>  1 file changed, 6 insertions(+), 11 deletions(-)
> 

Applied, thanks!