Re: [PATCH net-next] bpf: Need to call bpf_prog_uncharge_memlock from bpf_prog_put

2015-10-16 Thread David Miller
From: Tom Herbert Date: Wed, 14 Oct 2015 14:40:44 -0700 > Currently, is only called from __prog_put_rcu in the bpf_prog_release > path. Need this to call this from bpf_prog_put also to get correct > accounting. > > Fixes: commit aaac3ba95e4c8b49 ("bpf: charge user for creation of BPF maps > and

Re: [PATCH net-next] bpf: Need to call bpf_prog_uncharge_memlock from bpf_prog_put

2015-10-15 Thread Daniel Borkmann
On 10/14/2015 11:40 PM, Tom Herbert wrote: Currently, is only called from __prog_put_rcu in the bpf_prog_release path. Need this to call this from bpf_prog_put also to get correct accounting. Fixes: commit aaac3ba95e4c8b49 ("bpf: charge user for creation of BPF maps and programs") Btw, "commi

Re: [PATCH net-next] bpf: Need to call bpf_prog_uncharge_memlock from bpf_prog_put

2015-10-14 Thread Alexei Starovoitov
On 10/14/15 2:40 PM, Tom Herbert wrote: Currently, is only called from __prog_put_rcu in the bpf_prog_release path. Need this to call this from bpf_prog_put also to get correct accounting. Fixes: commit aaac3ba95e4c8b49 ("bpf: charge user for creation of BPF maps and programs") Signed-off-by: T

[PATCH net-next] bpf: Need to call bpf_prog_uncharge_memlock from bpf_prog_put

2015-10-14 Thread Tom Herbert
Currently, is only called from __prog_put_rcu in the bpf_prog_release path. Need this to call this from bpf_prog_put also to get correct accounting. Fixes: commit aaac3ba95e4c8b49 ("bpf: charge user for creation of BPF maps and programs") Signed-off-by: Tom Herbert --- kernel/bpf/syscall.c | 1