commit | 758f2046ea040773ae8ea7f72dd3bbd8fa984501 | [log] [tgz] |
---|---|---|
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | Thu Jun 13 00:21:40 2019 +0530 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu Jun 13 23:07:00 2019 +0200 |
tree | 5bc7151508fe910ab38e5ec09a74545abfc63f3a | |
parent | 3e0682695199bad51dd898fe064d1564637ff77a [diff] |
powerpc/bpf: use unsigned division instruction for 64-bit operations BPF_ALU64 div/mod operations are currently using signed division, unlike BPF_ALU32 operations. Fix the same. DIV64 and MOD64 overflow tests pass with this fix. Fixes: 156d0e290e969c ("powerpc/ebpf/jit: Implement JIT compiler for extended BPF") Cc: stable@vger.kernel.org # v4.8+ Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>