Re: [PATCH net] bpf: fix bpf_tail_call() x64 JIT

2017-10-03 Thread David Miller
From: Alexei Starovoitov Date: Tue, 3 Oct 2017 15:37:20 -0700 > - bpf prog_array just like all other types of bpf array accepts 32-bit index. > Clarify that in the comment. > - fix x64 JIT of bpf_tail_call which was incorrectly loading 8 instead of 4 > bytes > - tighten corresponding check in

Re: [PATCH net] bpf: fix bpf_tail_call() x64 JIT

2017-10-03 Thread Eric Dumazet
On Tue, 2017-10-03 at 15:37 -0700, Alexei Starovoitov wrote: > - bpf prog_array just like all other types of bpf array accepts 32-bit index. > Clarify that in the comment. > - fix x64 JIT of bpf_tail_call which was incorrectly loading 8 instead of 4 > bytes > - tighten corresponding check in the

[PATCH net] bpf: fix bpf_tail_call() x64 JIT

2017-10-03 Thread Alexei Starovoitov
- bpf prog_array just like all other types of bpf array accepts 32-bit index. Clarify that in the comment. - fix x64 JIT of bpf_tail_call which was incorrectly loading 8 instead of 4 bytes - tighten corresponding check in the interpreter to stay consistent The JIT bug can be triggered after int