summaryrefslogtreecommitdiff
path: root/arch/s390/lib
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2021-09-06 15:04:14 +0200
committerVasily Gorbik <gor@linux.ibm.com>2021-09-16 10:39:55 +0200
commitdb7bee653859ef7179be933e7d1384644f795f26 (patch)
tree566fa68b630035ccc491a6aa3ce8fba3366ee31b /arch/s390/lib
parent6e61dc9da0b7a0d91d57c2e20b5ea4fd2d4e7e53 (diff)
s390/bpf: Fix optimizing out zero-extensions
Currently the JIT completely removes things like `reg32 += 0`, however, the BPF_ALU semantics requires the target register to be zero-extended in such cases. Fix by optimizing out only the arithmetic operation, but not the subsequent zero-extension. Reported-by: Johan Almbladh <johan.almbladh@anyfinetworks.com> Fixes: 054623105728 ("s390/bpf: Add s390x eBPF JIT compiler backend") Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/lib')
0 files changed, 0 insertions, 0 deletions