diff options
author | Alexei Starovoitov <ast@kernel.org> | 2018-10-19 13:49:35 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-19 13:49:35 -0700 |
commit | d375e344781d099697cdc0fb4ee8b9170558f272 (patch) | |
tree | c8a67095d219b652a8eea067188bff6c599e6881 /kernel/bpf/syscall.c | |
parent | 2929ad29a3015120ab64c86f362fc2a590ceb69c (diff) | |
parent | 2cb494a36c98279c5c6ce8e99cf9776f15449ade (diff) | |
download | linux-d375e344781d099697cdc0fb4ee8b9170558f272.tar.bz2 |
Merge branch 'cg_skb_direct_pkt_access'
Song Liu says:
====================
Changes v7 -> v8:
1. Dynamically allocate the dummy sk to avoid race conditions.
Changes v6 -> v7:
1. Make dummy sk a global variable (test_run_sk).
Changes v5 -> v6:
1. Fixed dummy sk in bpf_prog_test_run_skb() as suggested by Eric Dumazet.
Changes v4 -> v5:
1. Replaced bpf_compute_and_save_data_pointers() with
bpf_compute_and_save_data_end();
Replaced bpf_restore_data_pointers() with bpf_restore_data_end().
2. Fixed indentation in test_verifier.c
Changes v3 -> v4:
1. Fixed crash issue reported by Alexei.
Changes v2 -> v3:
1. Added helper function bpf_compute_and_save_data_pointers() and
bpf_restore_data_pointers().
Changes v1 -> v2:
1. Updated the list of read-only fields, and read-write fields.
2. Added dummy sk to bpf_prog_test_run_skb().
This set enables BPF program of type BPF_PROG_TYPE_CGROUP_SKB to access
some __skb_buff data directly.
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/syscall.c')
0 files changed, 0 insertions, 0 deletions