Re: [PATCH bpf-next 1/9] bpf: track spill/fill of constants

2019-06-13 Thread Alexei Starovoitov
On 6/13/19 2:46 PM, Andrii Nakryiko wrote: > On Thu, Jun 13, 2019 at 9:50 AM Alexei Starovoitov wrote: >> >> Compilers often spill induction variables into the stack, >> hence it is necessary for the verifier to track scalar values >> of the registers through stack slots. >> >> Also few bpf progra

Re: [PATCH bpf-next 1/9] bpf: track spill/fill of constants

2019-06-13 Thread Andrii Nakryiko
On Thu, Jun 13, 2019 at 9:50 AM Alexei Starovoitov wrote: > > Compilers often spill induction variables into the stack, > hence it is necessary for the verifier to track scalar values > of the registers through stack slots. > > Also few bpf programs were incorrectly rejected in the past, > since t

[PATCH bpf-next 1/9] bpf: track spill/fill of constants

2019-06-13 Thread Alexei Starovoitov
Compilers often spill induction variables into the stack, hence it is necessary for the verifier to track scalar values of the registers through stack slots. Also few bpf programs were incorrectly rejected in the past, since the verifier was not able to track such constants while they were used to

[PATCH bpf-next 1/9] bpf: track spill/fill of constants

2019-06-13 Thread Alexei Starovoitov
Compilers often spill induction variables into the stack, hence it is necessary for the verifier to track scalar values of the registers through stack slots. Also few bpf programs were incorrectly rejected in the past, since the verifier was not able to track such constants while they were used to