diff options
| author | Alexei Starovoitov <ast@fb.com> | 2016-05-05 19:49:12 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:50:25 +0300 |
| commit | 3b03a0c922380f14f8cf380c8d6c6a7e806e83dc (patch) | |
| tree | 642c38e5276986330f01fd0de2b411482c261a3f /kernel/sysctl_binary.c | |
| parent | 84cbe200721a55423300ebb818cd1a54f912f7d1 (diff) | |
bpf: wire in data and data_end for cls_act_bpf
allow cls_bpf and act_bpf programs access skb->data and skb->data_end pointers.
The bpf helpers that change skb->data need to update data_end pointer as well.
The verifier checks that programs always reload data, data_end pointers
after calls to such bpf helpers.
We cannot add 'data_end' pointer to struct qdisc_skb_cb directly,
since it's embedded as-is by infiniband ipoib, so wrapper struct is needed.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
