Files
linux/drivers
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
..
2019-02-12 19:44:54 +01:00
2019-02-12 19:44:58 +01:00
2018-12-21 14:11:37 +01:00
2018-02-25 11:05:55 +01:00
2017-09-09 17:39:41 +02:00
2018-12-21 14:11:36 +01:00
2018-11-13 11:17:02 -08:00
2018-11-27 16:09:41 +01:00
2019-03-13 14:04:59 -07:00
2018-10-03 17:01:42 -07:00