]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:40:26 +0000 (19:40 +0200)
commit4b84cde61ce9135b9c98641307b8a22f44609914
treeba733b1923ab6c1935ae76ecf14dde2ceaf7bad2
parent073d8f286f34b50058ad8c3929a4421f4b0e449f
bpf: only test gso type on gso packets

[ Upstream commit 4c3024debf62de4c6ac6d3cb4c0063be21d4f652 ]

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: b90efd225874 ("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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
include/linux/skbuff.h
net/core/filter.c