summaryrefslogtreecommitdiff
path: root/drivers/edac/tile_edac.c
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2018-02-26 16:13:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-11 16:19:46 +0100
commit94522bee72fd4ba2a4f1b6dc3e7439dc8f4ce501 (patch)
treebeec3368255f42ad90ca1d495e7e375ebb767d8e /drivers/edac/tile_edac.c
parent65fe24fdbbe0f5292d3dd5201a49725d7be21d85 (diff)
net: ipv4: don't allow setting net.ipv4.route.min_pmtu below 68
[ Upstream commit c7272c2f1229125f74f22dcdd59de9bbd804f1c8 ] According to RFC 1191 sections 3 and 4, ICMP frag-needed messages indicating an MTU below 68 should be rejected: A host MUST never reduce its estimate of the Path MTU below 68 octets. and (talking about ICMP frag-needed's Next-Hop MTU field): This field will never contain a value less than 68, since every router "must be able to forward a datagram of 68 octets without fragmentation". Furthermore, by letting net.ipv4.route.min_pmtu be set to negative values, we can end up with a very large PMTU when (-1) is cast into u32. Let's also make ip_rt_min_pmtu a u32, since it's only ever compared to unsigned ints. Reported-by: Jianlin Shi <jishi@redhat.com> Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Reviewed-by: Stefano Brivio <sbrivio@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/edac/tile_edac.c')
0 files changed, 0 insertions, 0 deletions