]> git.baikalelectronics.ru Git - kernel.git/commit
s390/bpf: Fix JMP_JGE_X (A > X) and JMP_JGT_X (A >= X)
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Thu, 8 Jan 2015 13:46:18 +0000 (14:46 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 9 Jan 2015 09:10:32 +0000 (10:10 +0100)
commit07d1e460f294ad31e4c7d5437227121193ec5790
tree4011215959e287ebd82bedc3141f312cfbf55c37
parent35a36229d71b0589e60e7ad06bd4819198c09e2d
s390/bpf: Fix JMP_JGE_X (A > X) and JMP_JGT_X (A >= X)

Currently the signed COMPARE (cr) instruction is used to compare "A"
with "X". This is not correct because "A" and "X" are both unsigned.
To fix this use the unsigned COMPARE LOGICAL (clr) instruction instead.

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