]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit771aada9ace7e5dd837a69ef0bca08b5455b2d36
tree761f957eb0d7284e4e3e5b549f8ae4d2c57afc0a
parent3d99e3fe13d473ac4578c37f477a59b829530764
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