Merge branch 'ipv4-handle-tos-and-scope-properly-for-icmp-redirects-and-pmtu-updates'
authorJakub Kicinski <kuba@kernel.org>
Fri, 18 Mar 2022 21:06:58 +0000 (14:06 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Mar 2022 21:06:59 +0000 (14:06 -0700)
commit03e2777c1a01cdc072193b72ff6a96a0147944cd
treeed392f6ddd3fceed9b25794b834a743d34d547b0
parent6bd0c76bd70447aedfeafa9e1fcc249991d6c678
parentec730c3e1f0e3a80612a9be2beb00e2b4f93fe70
Merge branch 'ipv4-handle-tos-and-scope-properly-for-icmp-redirects-and-pmtu-updates'

Guillaume Nault says:

====================
ipv4: Handle TOS and scope properly for ICMP redirects and PMTU updates

ICMPv4 PMTU and redirect handlers didn't properly initialise the
struct flowi4 they used for route lookups:

  * ECN bits sometimes weren't cleared from ->flowi4_tos.
  * The RTO_ONLINK flag wasn't taken into account for ->flowi4_scope.

In some special cases, this resulted in ICMP redirects and PMTU updates
not being taken into account because fib_lookup() couldn't retrieve the
correct route.
====================

Link: https://lore.kernel.org/r/cover.1647519748.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>