summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEmeel Hakim <ehakim@nvidia.com>2022-12-11 13:22:23 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2023-01-09 22:08:37 -0800
commit9828994ac492e8e7de47fe66097b7e665328f348 (patch)
tree2a90f0a53df5f41cab660f5687b678a34e6137b3 /tools
parentf5e1ed04aa2ea665a796f0109091ca3f2b01024a (diff)
downloadlinux-9828994ac492e8e7de47fe66097b7e665328f348.tar.bz2
net/mlx5e: Fix macsec possible null dereference when updating MAC security entity (SecY)
Upon updating MAC security entity (SecY) in hw offload path, the macsec security association (SA) initialization routine is called. In case of extended packet number (epn) is enabled the salt and ssci attributes are retrieved using the MACsec driver rx_sa context which is unavailable when updating a SecY property such as encoding-sa hence the null dereference. Fix by using the provided SA to set those attributes. Fixes: 4411a6c0abd3 ("net/mlx5e: Support MACsec offload extended packet number (EPN)") Signed-off-by: Emeel Hakim <ehakim@nvidia.com> Reviewed-by: Raed Salem <raeds@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions