Files
linux/drivers/net
Jiong Wang b2743d8fc0 nfp: bpf: fix ALU32 high bits clearance bug
[ Upstream commit f036ebd9bf ]

NFP BPF JIT compiler is doing a couple of small optimizations when jitting
ALU imm instructions, some of these optimizations could save code-gen, for
example:

  A & -1 =  A
  A |  0 =  A
  A ^  0 =  A

However, for ALU32, high 32-bit of the 64-bit register should still be
cleared according to ISA semantics.

Fixes: cd7df56ed3 ("nfp: add BPF to NFP code translator")
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-03-23 13:19:44 +01:00
..
2016-06-15 22:06:06 -07:00
2017-12-09 22:01:54 +01:00
2016-05-09 00:00:28 -04:00
2019-03-13 14:04:54 -07:00
2018-03-22 09:17:57 +01:00