vti6: Don't report path MTU below IPV6_MIN_MTU.
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 15 Feb 2017 10:38:58 +0000 (11:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:28:16 +0000 (09:28 +0100)
commitf14f6fabfb54defc4224cc8d8b008af2d45cfd94
tree4126b165f87f66d3c582554c49b0db255a7ccf73
parent5d4d0a95437efc94c3b10a2ea04a81e5e3863dfb
vti6: Don't report path MTU below IPV6_MIN_MTU.

[ Upstream commit e3dc847a5f85b43ee2bfc8eae407a7e383483228 ]

In vti6_xmit(), the check for IPV6_MIN_MTU before we
send a ICMPV6_PKT_TOOBIG message is missing. So we might
report a PMTU below 1280. Fix this by adding the required
check.

Fixes: ccd740cbc6e ("vti6: Add pmtu handling to vti6_xmit.")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_vti.c