tmp_suning_uos_patched/kernel/bpf
Daniel Borkmann e9d8afa90b bpf: consolidate bpf_prog_put{, _rcu} dismantle paths
We currently have duplicated cleanup code in bpf_prog_put() and
bpf_prog_put_rcu() cleanup paths. Back then we decided that it was
not worth it to make it a common helper called by both, but with
the recent addition of resource charging, we could have avoided
the fix in commit ac00737f4e ("bpf: Need to call bpf_prog_uncharge_memlock
from bpf_prog_put") if we would have had only a single, common path.
We can simplify it further by assigning aux->prog only once during
allocation time.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-11-02 22:48:39 -05:00
..
arraymap.c bpf: fix bpf_perf_event_read() helper 2015-10-26 21:49:26 -07:00
core.c bpf: consolidate bpf_prog_put{, _rcu} dismantle paths 2015-11-02 22:48:39 -05:00
hashtab.c bpf: convert hashtab lock to raw lock 2015-11-02 15:45:43 -05:00
helpers.c bpf: split state from prandom_u32() and consolidate {c, e}BPF prngs 2015-10-08 05:26:39 -07:00
Makefile ebpf: remove kernel test stubs 2015-03-01 14:05:18 -05:00
syscall.c bpf: consolidate bpf_prog_put{, _rcu} dismantle paths 2015-11-02 22:48:39 -05:00
verifier.c bpf: align and clean bpf_{map,prog}_get helpers 2015-11-02 22:48:39 -05:00