]> git.baikalelectronics.ru Git - kernel.git/commit
s390/bpf: Adjust ALU64_DIV/MOD to match interpreter change
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Mon, 27 Apr 2015 09:12:25 +0000 (11:12 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 30 Apr 2015 11:50:34 +0000 (13:50 +0200)
commit56dcc243e03c3f8ed0e689aea0f9623289b34b6f
tree761f957eb0d7284e4e3e5b549f8ae4d2c57afc0a
parent1f637a9c8fea2ea7047f114d16e6899c34de183e
s390/bpf: Adjust ALU64_DIV/MOD to match interpreter change

The s390x ALU64_DIV/MOD has been implemented according to the eBPF
interpreter specification that used do_div(). This function does a 64-bit
by 32-bit divide. It turned out that this was wrong and now the interpreter
uses div64_u64_rem() for full 64-bit division.

So fix this and use full 64-bit division in the s390x eBPF backend code.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/net/bpf_jit_comp.c