• Martin Schwidefsky's avatar
    s390: fix br_r1_trampoline for machines without exrl · 26f84384
    Martin Schwidefsky authored
    For machines without the exrl instruction the BFP jit generates
    code that uses an "br %r1" instruction located in the lowcore page.
    Unfortunately there is a cut & paste error that puts an additional
    "larl %r1,.+14" instruction in the code that clobbers the branch
    target address in %r1. Remove the larl instruction.
    
    Cc: <stable@vger.kernel.org> # v4.17+
    Fixes: de5cb6eb ("s390: use expoline thunks in the BPF JIT")
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    26f84384
bpf_jit_comp.c 34.5 KB