diff options
| author | Andrea Parri <parri.andrea@gmail.com> | 2026-09-17 13:55:42 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-21 17:36:53 -0700 |
| commit | 10de7ed8ef4840da9ca21de4c29578657ac367db (patch) | |
| tree | 34455603940c0da28ba3a4b0b30b5926b2d83fa9 /include | |
| parent | be581d6635579489eadff9cea4caee142ec6d8bc (diff) | |
| download | linux-10de7ed8ef4840da9ca21de4c29578657ac367db.tar.gz linux-10de7ed8ef4840da9ca21de4c29578657ac367db.zip | |
net/mlx5e: fix swapped IPv6 IPsec policy masks
IPv6 XFRM policies may use different source and destination prefix
lengths. mlx5e_ipsec_policy_mask() builds the corresponding masks
independently, but setup_fte_addr6() installs each mask in the opposite
address field.
When the prefix lengths differ, this makes the source match use the
destination prefix and the destination match use the source prefix. The
resulting hardware rule can both miss traffic covered by the policy and
match traffic outside it.
Install each mask in its corresponding match field.
Fixes: ca7992f52c2c ("net/mlx5e: Properly match IPsec subnet addresses")
Cc: stable@vger.kernel.org
Signed-off-by: Andrea Parri <parri.andrea@gmail.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260917115542.177675-1-parri.andrea@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
