android_kernel_motorola_sm6375/kernel/bpf
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Song Liu b39b5f411d bpf: add cg_skb_is_valid_access for BPF_PROG_TYPE_CGROUP_SKB
BPF programs of BPF_PROG_TYPE_CGROUP_SKB need to access headers in the
skb. This patch enables direct access of skb for these programs.

Two helper functions bpf_compute_and_save_data_end() and
bpf_restore_data_end() are introduced. There are used in
__cgroup_bpf_run_filter_skb(), to compute proper data_end for the
BPF program, and restore original data afterwards.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-10-19 13:49:34 -07:00
..
arraymap.c bpf: return EOPNOTSUPP when map lookup isn't supported 2018-10-09 21:52:20 -07:00
bpf_lru_list.c
bpf_lru_list.h
btf.c bpf: btf: Fix a missing check bug 2018-10-09 21:42:51 -07:00
cgroup.c bpf: add cg_skb_is_valid_access for BPF_PROG_TYPE_CGROUP_SKB 2018-10-19 13:49:34 -07:00
core.c bpf: add queue and stack maps 2018-10-19 13:24:31 -07:00
cpumap.c
devmap.c
disasm.c
disasm.h
hashtab.c
helpers.c bpf: add queue and stack maps 2018-10-19 13:24:31 -07:00
inode.c
local_storage.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2018-10-08 23:42:44 -07:00
lpm_trie.c
Makefile bpf: add queue and stack maps 2018-10-19 13:24:31 -07:00
map_in_map.c
map_in_map.h
offload.c bpf: add verifier callback to get stack usage info for offloaded progs 2018-10-08 10:24:12 +02:00
percpu_freelist.c
percpu_freelist.h
queue_stack_maps.c bpf: add queue and stack maps 2018-10-19 13:24:31 -07:00
reuseport_array.c
stackmap.c bpf: rename stack trace map operations 2018-10-19 13:24:30 -07:00
syscall.c bpf: add MAP_LOOKUP_AND_DELETE_ELEM syscall 2018-10-19 13:24:31 -07:00
tnum.c
verifier.c bpf: add queue and stack maps 2018-10-19 13:24:31 -07:00
xskmap.c bpf: return EOPNOTSUPP when map lookup isn't supported 2018-10-09 21:52:20 -07:00