s390: use expoline thunks in the BPF JIT
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 23 May 2018 16:22:09 +0000 (18:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:17:33 +0000 (16:17 +0200)
commitc1a35f5ddf369ed50bd46bf53d1c54697781317f
treec21b8db110fc0f17e41847860d806ad608565760
parent457b944b61e6f192c8a6136451cce5ca0aa92027
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