Re: [PATCH bpf] bpf: reject passing modified ctx to helper functions

2018-06-07 Thread Alexei Starovoitov
On Thu, Jun 07, 2018 at 05:40:03PM +0200, Daniel Borkmann wrote: > As commit 28e33f9d78ee ("bpf: disallow arithmetic operations on > context pointer") already describes, f1174f77b50c ("bpf/verifier: > rework value tracking") removed the specific white-listed cases > we had previously where we would

Re: [PATCH bpf] bpf: reject passing modified ctx to helper functions

2018-06-07 Thread Edward Cree
On 07/06/18 16:40, Daniel Borkmann wrote: > As commit 28e33f9d78ee ("bpf: disallow arithmetic operations on > context pointer") already describes, f1174f77b50c ("bpf/verifier: > rework value tracking") removed the specific white-listed cases > we had previously where we would allow for pointer arit

Re: [PATCH bpf] bpf: reject passing modified ctx to helper functions

2018-06-07 Thread Y Song
On Thu, Jun 7, 2018 at 8:40 AM, Daniel Borkmann wrote: > As commit 28e33f9d78ee ("bpf: disallow arithmetic operations on > context pointer") already describes, f1174f77b50c ("bpf/verifier: > rework value tracking") removed the specific white-listed cases > we had previously where we would allow fo

[PATCH bpf] bpf: reject passing modified ctx to helper functions

2018-06-07 Thread Daniel Borkmann
As commit 28e33f9d78ee ("bpf: disallow arithmetic operations on context pointer") already describes, f1174f77b50c ("bpf/verifier: rework value tracking") removed the specific white-listed cases we had previously where we would allow for pointer arithmetic in order to further generalize it, and allo