aboutsummaryrefslogtreecommitdiffstats
path: root/net/xdp/xsk.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2019-02-07 14:54:16 -0500
committerAlexei Starovoitov <ast@kernel.org>2019-02-10 19:57:34 -0800
commitb90efd2258749e04e1b3f71ef0d716f2ac2337e0 (patch)
tree80309f233c9c0c374e9c8b9832f21fc44b8590c4 /net/xdp/xsk.c
parentbpf: Fix narrow load on a bpf_sock returned from sk_lookup() (diff)
downloadlinux-dev-b90efd2258749e04e1b3f71ef0d716f2ac2337e0.tar.xz
linux-dev-b90efd2258749e04e1b3f71ef0d716f2ac2337e0.zip
bpf: only adjust gso_size on bytestream protocols
bpf_skb_change_proto and bpf_skb_adjust_room change skb header length. For GSO packets they adjust gso_size to maintain the same MTU. The gso size can only be safely adjusted on bytestream protocols. Commit d02f51cbcf12 ("bpf: fix bpf_skb_adjust_net/bpf_skb_proto_xlat to deal with gso sctp skbs") excluded SKB_GSO_SCTP. Since then type SKB_GSO_UDP_L4 has been added, whose contents are one gso_size unit per datagram. Also exclude these. Move from a blacklist to a whitelist check to future proof against additional such new GSO types, e.g., for fraglist based GRO. Fixes: bec1f6f69736 ("udp: generate gso with UDP_SEGMENT") Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/xdp/xsk.c')
0 files changed, 0 insertions, 0 deletions