diff options
| author | Ilya Leoshkevich <iii@linux.ibm.com> | 2021-09-07 11:58:59 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-22 12:39:33 +0200 |
| commit | a7593244dc31ad0eea70319f6110975f9c738dca (patch) | |
| tree | 5eca683225ba78ee0266c3e38929ce5e7f3b31f6 /ipc | |
| parent | 6a8787093b04057d855822094d63d04a2506444a (diff) | |
| download | linux-a7593244dc31ad0eea70319f6110975f9c738dca.tar.gz linux-a7593244dc31ad0eea70319f6110975f9c738dca.tar.bz2 linux-a7593244dc31ad0eea70319f6110975f9c738dca.zip | |
s390/bpf: Fix branch shortening during codegen pass
commit 1511df6f5e9ef32826f20db2ee81f8527154dc14 upstream.
EMIT6_PCREL() macro assumes that the previous pass generated 6 bytes
of code, which is not the case if branch shortening took place. Fix by
using jit->prg, like all the other EMIT6_PCREL_*() macros.
Reported-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Fixes: 4e9b4a6883dd ("s390/bpf: Use relative long branches")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions
