]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: only test gso type on gso packets
authorWillem de Bruijn <willemb@google.com>
Wed, 6 Mar 2019 19:35:15 +0000 (14:35 -0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 7 Mar 2019 09:32:24 +0000 (10:32 +0100)
commita377566a3e548670a6ef87c276ee5bb3b9d0cd9f
tree0f076dcbe8e620af3420ba60a27ae6a2556897ea
parentb539d1de8704842f290fa011cc39788f9250c8e4
bpf: only test gso type on gso packets

BPF can adjust gso only for tcp bytestreams. Fail on other gso types.

But only on gso packets. It does not touch this field if !gso_size.

Fixes: edec43af39e5 ("bpf: only adjust gso_size on bytestream protocols")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/skbuff.h
net/core/filter.c