Re: [PATCH bpf v2] bpf, x64: implement retpoline for tail call

2018-02-22 Thread Alexei Starovoitov
On Thu, Feb 22, 2018 at 03:12:53PM +0100, Daniel Borkmann wrote: > Implement a retpoline [0] for the BPF tail call JIT'ing that converts > the indirect jump via jmp %rax that is used to make the long jump into > another JITed BPF image. Since this is subject to speculative execution, > we need to

[PATCH bpf v2] bpf, x64: implement retpoline for tail call

2018-02-22 Thread Daniel Borkmann
Implement a retpoline [0] for the BPF tail call JIT'ing that converts the indirect jump via jmp %rax that is used to make the long jump into another JITed BPF image. Since this is subject to speculative execution, we need to control the transient instruction sequence here as well when