]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: Clamp MTU to bounds on new link
authorStefano Brivio <sbrivio@redhat.com>
Thu, 15 Mar 2018 16:16:28 +0000 (17:16 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 19 Mar 2018 07:45:50 +0000 (08:45 +0100)
commit84271c03fc0bf0e8f0f038703930ee957b9d52b9
tree8c037f94e733a5a9d1f312c59b7c2c0a1697ac39
parentafc32bd2c5ea70a098f1bb81d67a8e6330b75f6f
ip_tunnel: Clamp MTU to bounds on new link

Otherwise, it's possible to specify invalid MTU values directly
on creation of a link (via 'ip link add'). This is already
prevented on subsequent MTU changes by commit fcce664d91c0
("ipv4/6: use core net MTU range checking").

Fixes: e7ccb3806ba4 ("GRE: Refactor GRE tunneling code.")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Acked-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/ip_tunnel.c