s390: use expoline thunks in the BPF JIT
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 23 May 2018 16:21:52 +0000 (18:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:12:58 +0000 (16:12 +0200)
commit6089a72d44deb251f347a5d4e4e5f1e99245c0cc
tree02e5d15926f6c9e4b39a40a17f96fe2dd68c1211
parent1ace5fcb2263afab21852dd4ac95db70e2bb03cf
s390: use expoline thunks in the BPF JIT

[ Upstream commit de5cb6eb514ebe241e3edeb290cb41deb380b81d ]

The BPF JIT need safe guarding against spectre v2 in the sk_load_xxx
assembler stubs and the indirect branches generated by the JIT itself
need to be converted to expolines.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/net/bpf_jit.S
arch/s390/net/bpf_jit_comp.c