Re: [PATCH net] bpf: fix ri->map prog pointer on bpf_prog_realloc

2017-09-19 Thread Daniel Borkmann
On 09/19/2017 03:43 AM, Alexei Starovoitov wrote: On Tue, Sep 19, 2017 at 03:16:44AM +0200, Daniel Borkmann wrote: Commit 109980b894e9 ("bpf: don't select potentially stale ri->map from buggy xdp progs") passed the pointer to the prog itself to be loaded into r4 prior on bpf_redirect_map() helpe

Re: [PATCH net] bpf: fix ri->map prog pointer on bpf_prog_realloc

2017-09-18 Thread Alexei Starovoitov
On Tue, Sep 19, 2017 at 03:16:44AM +0200, Daniel Borkmann wrote: > Commit 109980b894e9 ("bpf: don't select potentially stale > ri->map from buggy xdp progs") passed the pointer to the prog > itself to be loaded into r4 prior on bpf_redirect_map() helper > call, so that we can store the owner into r

[PATCH net] bpf: fix ri->map prog pointer on bpf_prog_realloc

2017-09-18 Thread Daniel Borkmann
Commit 109980b894e9 ("bpf: don't select potentially stale ri->map from buggy xdp progs") passed the pointer to the prog itself to be loaded into r4 prior on bpf_redirect_map() helper call, so that we can store the owner into ri->map_owner out of the helper. Issue with that is that the actual addre