s390: use expoline thunks in the BPF JIT

[ Upstream commit de5cb6eb51 ]

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>
This commit is contained in:
Martin Schwidefsky 2018-05-23 18:22:09 +02:00 • committed by Greg Kroah-Hartman
commit c1a35f5ddf
2 changed files with 71 additions and 8 deletions