bpf: fix x86 JIT for immediate loads
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Thu, 8 Nov 2018 12:36:43 +0000 (12:36 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 13 Nov 2018 22:18:53 +0000 (23:18 +0100)
commit95df7307a77de5d28b4c81151a8dcc100be8172c
tree5bed2abeb7b359ff494ef0de8f5bb43602a2cf73
parent31f19a9beb8d88b67be6e469404081eb834d199c
bpf: fix x86 JIT for immediate loads

x86 jit can generate invalid code for (BPF_LD | BPF_IMM | EBPF_DW)
instructions, when immediate value is bigger then INT32_MAX.

Fixes: cc752e43e079 ("bpf: add JIT compilation for x86_64 ISA")
Cc: stable@dpdk.org
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_bpf/bpf_jit_x86.c