]> git.baikalelectronics.ru Git - kernel.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)
commit55da76dc659056569df04e43fd21601b921573f5
tree3e5cf028fad5d4c339a94513e23333fdebb3d22f
parentf9dca8230fc53a2fa4695de562e491e5dd83edc0
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: 05ae54179db9 ("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