summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <maximmi@mellanox.com>2019-07-05 17:59:28 +0300
committerSasha Levin <sashal@kernel.org>2019-08-25 10:10:38 -0400
commitbfdbef8aca0339bc8b3428d17790e2e87cb9036a (patch)
tree7077baf8cd44d754ff3a0eb06ce91f42038a6261 /net/ipv4/tcp.c
parent7c682c96051f209c3c2a420c4e086d05c085be22 (diff)
downloadlinux-stable-bfdbef8aca0339bc8b3428d17790e2e87cb9036a.tar.gz
linux-stable-bfdbef8aca0339bc8b3428d17790e2e87cb9036a.tar.bz2
linux-stable-bfdbef8aca0339bc8b3428d17790e2e87cb9036a.zip
net/mlx5e: Use flow keys dissector to parse packets for ARFS
[ Upstream commit 405b93eb764367a670e729da18e54dc42db32620 ] The current ARFS code relies on certain fields to be set in the SKB (e.g. transport_header) and extracts IP addresses and ports by custom code that parses the packet. The necessary SKB fields, however, are not always set at that point, which leads to an out-of-bounds access. Use skb_flow_dissect_flow_keys() to get the necessary information reliably, fix the out-of-bounds access and reuse the code. Fixes: 18c908e477dc ("net/mlx5e: Add accelerated RFS support") Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com> Reviewed-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv4/tcp.c')
0 files changed, 0 insertions, 0 deletions