]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gtp: fix fragmentation needed check with gso
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 22 Oct 2023 20:25:18 +0000 (22:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 16:26:39 +0000 (17:26 +0100)
commitd5c175f4cea65bcb7cadc715390fae690bfe842b
tree987eeea0bd4e7dac7a12358ac79f31628d44a3ad
parentc0dad0c0924cb5e05a138c7fcc3ad56caed3082c
gtp: fix fragmentation needed check with gso

[ Upstream commit 4530e5b8e2dad63dcad2206232dd86e4b1489b6c ]

Call skb_gso_validate_network_len() to check if packet is over PMTU.

Fixes: 459aa660eb1d ("gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/gtp.c