]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: kTLS, Fix crash in RX resync flow
authorTariq Toukan <tariqt@nvidia.com>
Wed, 15 Sep 2021 10:25:31 +0000 (13:25 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Nov 2021 20:20:18 +0000 (12:20 -0800)
commitcc4a9cc03faa6d8db1a6954bb536f2c1e63bdff6
tree3e5cf028fad5d4c339a94513e23333fdebb3d22f
parent848e5d66fa3105b4136c95ddbc5654e9c43ba7d7
net/mlx5e: kTLS, Fix crash in RX resync flow

For the TLS RX resync flow, we maintain a list of TLS contexts
that require some attention, to communicate their resync information
to the HW.
Here we fix list corruptions, by protecting the entries against
movements coming from resync_handle_seq_match(), until their resync
handling in napi is fully completed.

Fixes: e9ce991bce5b ("net/mlx5e: kTLS, Add resiliency to RX resync failures")
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c