diff options
author | Ilya Leoshkevich <[email protected]> | 2021-09-06 15:04:14 +0200 |
---|---|---|
committer | Vasily Gorbik <[email protected]> | 2021-09-16 10:39:55 +0200 |
commit | db7bee653859ef7179be933e7d1384644f795f26 (patch) | |
tree | 566fa68b630035ccc491a6aa3ce8fba3366ee31b /drivers/usb/cdns3/cdns3-trace.c | |
parent | 6e61dc9da0b7a0d91d57c2e20b5ea4fd2d4e7e53 (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 <[email protected]>
Fixes: 054623105728 ("s390/bpf: Add s390x eBPF JIT compiler backend")
Reviewed-by: Heiko Carstens <[email protected]>
Signed-off-by: Ilya Leoshkevich <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions