Re: [PATCH bpf] bpf: fix redirect to map under tail calls

2018-08-17 Thread Alexei Starovoitov
On Fri, Aug 17, 2018 at 11:26:14PM +0200, Daniel Borkmann wrote: > Commits 109980b894e9 ("bpf: don't select potentially stale ri->map > from buggy xdp progs") and 7c3001313396 ("bpf: fix ri->map_owner > pointer on bpf_prog_realloc") tried to mitigate that buggy programs > using bpf_redirect_map() h

[PATCH bpf] bpf: fix redirect to map under tail calls

2018-08-17 Thread Daniel Borkmann
Commits 109980b894e9 ("bpf: don't select potentially stale ri->map from buggy xdp progs") and 7c3001313396 ("bpf: fix ri->map_owner pointer on bpf_prog_realloc") tried to mitigate that buggy programs using bpf_redirect_map() helper call do not leave stale maps behind. Idea was to add a map_owner co