diff options
author | Guillaume Nault <gnault@redhat.com> | 2022-01-10 16:43:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-27 13:05:36 +0300 |
commit | 48a46df6d5428898c9a7abe618168fea185d3bd3 (patch) | |
tree | 4ac67ce90b25120aa36d6481440c857c5f281134 /include/media/v4l2-rect.h | |
parent | 09c0535c768de9429a15c522007dfc8e96a428f8 (diff) | |
download | linux-48a46df6d5428898c9a7abe618168fea185d3bd3.tar.xz |
libcxgb: Don't accidentally set RTO_ONLINK in cxgb_find_route()
commit a915deaa9abe4fb3a440312c954253a6a733608e upstream.
Mask the ECN bits before calling ip_route_output_ports(). The tos
variable might be passed directly from an IPv4 header, so it may have
the last ECN bit set. This interferes with the route lookup process as
ip_route_output_key_hash() interpretes this bit specially (to restrict
the route scope).
Found by code inspection, compile tested only.
Fixes: 804c2f3e36ef ("libcxgb,iw_cxgb4,cxgbit: add cxgb_find_route()")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/media/v4l2-rect.h')
0 files changed, 0 insertions, 0 deletions