diff options
author | John Fastabend | 2017-10-18 16:10:58 +0200 |
---|---|---|
committer | David S. Miller | 2017-10-20 14:01:29 +0200 |
commit | f7e9cb1ecb6d922584abff16db07930162c57155 (patch) | |
tree | 3686d4b38db981a9289725f9c9aed66ed59b7607 /kernel/gcov | |
parent | bpf: avoid preempt enable/disable in sockmap using tcp_skb_cb region (diff) | |
download | kernel-qcow2-linux-f7e9cb1ecb6d922584abff16db07930162c57155.tar.gz kernel-qcow2-linux-f7e9cb1ecb6d922584abff16db07930162c57155.tar.xz kernel-qcow2-linux-f7e9cb1ecb6d922584abff16db07930162c57155.zip |
bpf: remove mark access for SK_SKB program types
The skb->mark field is a union with reserved_tailroom which is used
in the TCP code paths from stream memory allocation. Allowing SK_SKB
programs to set this field creates a conflict with future code
optimizations, such as "gifting" the skb to the egress path instead
of creating a new skb and doing a memcpy.
Because we do not have a released version of SK_SKB yet lets just
remove it for now. A more appropriate scratch pad to use at the
socket layer is dev_scratch, but lets add that in future kernels
when needed.
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/gcov')
0 files changed, 0 insertions, 0 deletions